]> git.tuebingen.mpg.de Git - lopsub.git/commit - lopsub.c
Improve error message of lls_check_arg_count().
authorAndre Noll <maan@tuebingen.mpg.de>
Sun, 13 Feb 2022 19:29:52 +0000 (20:29 +0100)
committerAndre Noll <maan@tuebingen.mpg.de>
Wed, 28 Jun 2023 14:28:06 +0000 (16:28 +0200)
commita927190dc47ea0048a482030dccd2981b6310530
tree1463b567898ea12657c67a98d7c8741115ee7366
parentf2c158bdb336bb5cf8f3bdc57e7155c441200330
Improve error message of lls_check_arg_count().

When min_argc == max_argc, the function checks whether exactly this
many arguments are given. In the error case, it says

exactly N non-option args allowed, M given

which reads a bit weird. With the patch applied the message becomes

exactly N non-option args required, M given
lopsub.c