Post #2383504
2026-04-30 20:57 UTC
@cks@mastodon.social yep
Oh but I'm missing one crucial longopt example: when a longopt accepts a value (e.g. `... --use-url 'https://example.com' ...`), the longopt processor needs to manually increment $OPTIND
Replies (1)
-
@cks@mastodon.social 2026-04-30 20:59
@gnomon@mastodon.social Long options are where I start thinking "maybe this shell script can be a Python program instead, how hard is it to run some commands?" (But the last time I came close, I wound up with a shell script version and no long options.)