summaryrefslogtreecommitdiffstats
path: root/arg_parser.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-10-07 08:15:01 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-10-07 08:15:01 +0000
commit1dde52eb2bcedeced2ba3b13d0a07b3d591fc7c2 (patch)
treef653cba159a2e0f729d70ec026272882cd8ca123 /arg_parser.h
parentReleasing debian version 1.24-2. (diff)
downloadlziprecover-1dde52eb2bcedeced2ba3b13d0a07b3d591fc7c2.tar.xz
lziprecover-1dde52eb2bcedeced2ba3b13d0a07b3d591fc7c2.zip
Merging upstream version 1.25~pre1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'arg_parser.h')
-rw-r--r--arg_parser.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/arg_parser.h b/arg_parser.h
index 1eeec9a..ab77fc5 100644
--- a/arg_parser.h
+++ b/arg_parser.h
@@ -36,14 +36,18 @@
The argument '--' terminates all options; any following arguments are
treated as non-option arguments, even if they begin with a hyphen.
- The syntax for optional option arguments is '-<short_option><argument>'
- (without whitespace), or '--<long_option>=<argument>'.
+ The syntax of options with an optional argument is
+ '-<short_option><argument>' (without whitespace), or
+ '--<long_option>=<argument>'.
+
+ The syntax of options with an empty argument is '-<short_option> ""',
+ '--<long_option> ""', or '--<long_option>=""'.
*/
class Arg_parser
{
public:
- enum Has_arg { no, yes, maybe };
+ enum Has_arg { no, yes, maybe, yme }; // yme = yes but maybe empty
struct Option
{