diff options
author | thegeorg <[email protected]> | 2025-09-04 00:36:43 +0300 |
---|---|---|
committer | thegeorg <[email protected]> | 2025-09-04 00:56:46 +0300 |
commit | 76db84e05fa0cd826fae55327cfaa6eaab3981d1 (patch) | |
tree | cd24252df3d90763e1cd0d5466ce81410ae734b8 /library/cpp/getopt/last_getopt_demo/demo.cpp | |
parent | 6e1d6d9b8c79129bbb490819d57a1ef5d896c586 (diff) |
Make reset modes mutually exclusive
* Support variadic configuration of MutuallyExclusive
* Use it to forbid passing conflicting modes to `arc reset`
commit_hash:cf056645a91fde017d33cbfffe461229c9c3fc39
Diffstat (limited to 'library/cpp/getopt/last_getopt_demo/demo.cpp')
-rw-r--r-- | library/cpp/getopt/last_getopt_demo/demo.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/cpp/getopt/last_getopt_demo/demo.cpp b/library/cpp/getopt/last_getopt_demo/demo.cpp index a0e82a936cd..3e98db97d4f 100644 --- a/library/cpp/getopt/last_getopt_demo/demo.cpp +++ b/library/cpp/getopt/last_getopt_demo/demo.cpp @@ -121,8 +121,8 @@ protected: }) .Completer(NLastGetopt::NComp::File()); - // These two options can't be together. - opts.MutuallyExclusive("post-file", "post-data"); + // These options can not appear together. + opts.MutuallyExclusive("method", "post-file", "post-data"); opts.AddLongOption("header") .RequiredArgument("header-line") |