Elektrine lite

← Feed

@cks@mastodon.social

Post #2383503

2026-04-30 20:55 UTC

@gnomon@mastodon.social My first reaction was "my gods, that works?" (Well, for long options. For short options you have other issues. But now I'm wondering about nested getopts and other terrible hacks.)

Replies (1)

  • @gnomon@mastodon.social 2026-04-30 20:57

    @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

    Open ##2383504