From 0b1bfacfd3a99c6c2856d17d4973f50a6574e02b Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Sat, 19 May 2018 08:02:40 +0200 Subject: [PATCH] Add note for set custom option --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 589f8e5e..4ba70d4a 100644 --- a/README.md +++ b/README.md @@ -180,6 +180,7 @@ The add commands return a pointer to an internally stored `Option`. If you set t * `->required()`: The program will quit if this option is not present. This is `mandatory` in Plumbum, but required options seems to be a more standard term. For compatibility, `->mandatory()` also works. * `->expected(N)`: Take `N` values instead of as many as possible, only for vector args. If negative, require at least `-N`; end with `--` or another recognized option. +* `->set_custom_option(typename, N)`: Set the name and intrinsic size of an option. The parser will require multiples of this number. * `->needs(opt)`: This option requires another option to also be present, opt is an `Option` pointer. * `->excludes(opt)`: This option cannot be given with `opt` present, opt is an `Option` pointer. * `->envname(name)`: Gets the value from the environment if present and not passed on the command line.