From dd46175731d9d54c7a0707c462db39001a9b4c01 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Mon, 1 Jan 2018 19:52:21 +0100 Subject: [PATCH] add paragraph about required --- lopsub-suite.5.m4 | 6 ++++++ 1 file changed, 6 insertions(+) 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. -- 2.39.5