Collin Funk wrote:
>       optc = getopt_long (argc, argv, "+f:s:w", long_options, nullptr);

Note also the first character '+' (or '-') in the 3rd argument to
getopt_long(). This is necessary, because without it, getopt_long()
reorders the arguments so that those that start with '-' all come
before the arguments that do not start with '-'. Which probably leads
to nonsense if some of these arguments are negative numbers.

Bruno




Reply via email to