]> git.tuebingen.mpg.de Git - lopsub.git/commitdiff
Improve diagnostics of lls_check_arg_count().
authorAndre Noll <maan@tuebingen.mpg.de>
Wed, 6 Feb 2019 17:49:06 +0000 (18:49 +0100)
committerAndre Noll <maan@tuebingen.mpg.de>
Thu, 28 Mar 2019 09:48:41 +0000 (10:48 +0100)
The old code could return an error message like

at least 1 non-option args required, 0 given

even if exactly 1 arg is required. So check this case and print

exactly 1 non-option args required, 0 given

instead. The check for the upper bound has the same issue. It is
considered a bug in the application if min_argc > max_argc, so check
for this case as well.


No differences found