On Wed, Jul 22, 2026 at 12:22:06PM +0800, Japin Li wrote: > On Wed, 22 Jul 2026 at 12:17, Japin Li <[email protected]> wrote: >> With v2‑0002 applied, the output is: >> >> $ ./getopt_long_test --log-filename >> option '--log-filename' requires an argument >> $ ./getopt_long_test -f >> option '-f' requires an argument
Thanks, that saves time. I have been also checking how libc behaves, debugging more information with optind, argv, optarg, opterr and optopt with the short and long cases. One side note: optopt still remains inconsistent compared to our port version. Not sure if this is worth caring about.. Mentioning in passing. > Sorry, I forgot to include the patches in my previous email. No problem. That happens. Adjusted on HEAD. -- Michael
signature.asc
Description: PGP signature
