mirror of
https://github.com/clap-rs/clap
synced 2024-11-10 23:04:23 +00:00
tests(usage): update to smart usage errors
This commit is contained in:
parent
d77048efb1
commit
dd693ab86d
1 changed files with 5 additions and 8 deletions
|
@ -31,19 +31,16 @@ SUBCOMMANDS:
|
|||
help Prints this message
|
||||
subcmd tests subcommands'''
|
||||
|
||||
_excluded = '''The argument --flag cannot be used with one or more of the other specified arguments
|
||||
USAGE:
|
||||
claptests [FLAGS] [OPTIONS] --long-option-2 <option2> [POSITIONAL] [SUBCOMMANDS]
|
||||
_excluded = '''The argument --flag cannot be used with -F
|
||||
USAGE: claptests -F --long-option-2 <option2> [positional2]
|
||||
For more information try --help'''
|
||||
|
||||
_excluded_l = '''The argument -f cannot be used with one or more of the other specified arguments
|
||||
USAGE:
|
||||
claptests [FLAGS] [OPTIONS] --long-option-2 <option2> [POSITIONAL] [SUBCOMMANDS]
|
||||
_excluded_l = '''The argument -f cannot be used -F
|
||||
USAGE: claptests -F --long-option-2 <option2> [positional2]
|
||||
For more information try --help'''
|
||||
|
||||
_required = '''One or more required arguments were not supplied
|
||||
USAGE:
|
||||
claptests [FLAGS] [OPTIONS] --long-option-2 <option2> [POSITIONAL] [SUBCOMMANDS]
|
||||
USAGE: claptests -F --long-option-2 <option2> [positional2]
|
||||
For more information try --help'''
|
||||
|
||||
_fop = '''flag present 1 times
|
||||
|
|
Loading…
Reference in a new issue