From: Andre Noll Date: Mon, 1 Jan 2018 18:52:21 +0000 (+0100) Subject: add paragraph about required X-Git-Tag: v1.0.2~8 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=dd46175731d9d54c7a0707c462db39001a9b4c01;p=lopsub.git add paragraph about required --- diff --git a/lopsub-suite.5.m4 b/lopsub-suite.5.m4 index ff81198..1992b6e 100644 --- a/lopsub-suite.5.m4 +++ b/lopsub-suite.5.m4 @@ -305,6 +305,12 @@ only given in the config file. The recommended way to deal with this situation is to parse command line and config file separately, then merge the two parse results and check in the application if the option is given in the merged parse result. + +There is another disadvantage of this flag: if the parser fails due +to a missing option that was declared required, it is not possible to +detect if other options were given. For example, if the suite defines +the --help option, and the application is executed with this option +only, the parser will still return a parse error. .B .IP ignored This flag indicates that the current option is in fact not a real option.