From 785682065c25d6006c9196b7ccf0ba1c3bfd20e4 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 9 Dec 2024 05:37:50 +0100 Subject: Merging upstream version 1.14~rc1. Signed-off-by: Daniel Baumann --- arg_parser.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'arg_parser.h') 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 '-' - (without whitespace), or '--='. + The syntax of options with an optional argument is + '-' (without whitespace), or + '--='. + + The syntax of options with an empty argument is '- ""', + '-- ""', or '--=""'. */ class Arg_parser { public: - enum Has_arg { no, yes, maybe }; + enum Has_arg { no, yes, maybe, yme }; // yme = yes but maybe empty struct Option { -- cgit v1.2.3