1 Following are tests for the interop examples in this directory.
8 Value of derived via ArgMatches: false
9 Value of derived: DerivedArgs {
16 $ interop_augment_args -b --derived
18 Value of derived via ArgMatches: true
19 Value of derived: DerivedArgs {
26 $ interop_augment_args -d --built
28 Value of derived via ArgMatches: true
29 Value of derived: DerivedArgs {
36 $ interop_augment_args --unknown
38 error: Found argument '--unknown' which wasn't expected, or isn't valid in this context
40 If you tried to supply `--unknown` as a value rather than a flag, use `-- --unknown`
43 interop_augment_args[EXE] [OPTIONS]
45 For more information try --help
49 ## Augment Subcommands
52 $ interop_augment_subcommands
54 error: A subcommand is required but one was not provided.
58 $ interop_augment_subcommands derived
59 Derived subcommands: Derived {
66 $ interop_augment_subcommands derived --derived-flag
67 Derived subcommands: Derived {
74 $ interop_augment_subcommands derived --unknown
76 error: Found argument '--unknown' which wasn't expected, or isn't valid in this context
78 If you tried to supply `--unknown` as a value rather than a flag, use `-- --unknown`
81 interop_augment_subcommands[EXE] derived [OPTIONS]
83 For more information try --help
88 $ interop_augment_subcommands unknown
90 error: Found argument 'unknown' which wasn't expected, or isn't valid in this context
93 interop_augment_subcommands[EXE] [SUBCOMMAND]
95 For more information try --help
99 ## Hand-Implemented Subcommand
102 $ interop_hand_subcommand
104 error: 'interop_hand_subcommand[EXE]' requires a subcommand but one was not provided
107 interop_hand_subcommand[EXE] [OPTIONS] <SUBCOMMAND>
109 For more information try --help
114 $ interop_hand_subcommand add
127 $ interop_hand_subcommand add a b c
144 $ interop_hand_subcommand add --unknown
146 error: Found argument '--unknown' which wasn't expected, or isn't valid in this context
148 If you tried to supply `--unknown` as a value rather than a flag, use `-- --unknown`
151 interop_hand_subcommand[EXE] add [NAME]...
153 For more information try --help
158 $ interop_hand_subcommand remove
172 $ interop_hand_subcommand remove --force a b c
190 $ interop_hand_subcommand unknown
192 error: Found argument 'unknown' which wasn't expected, or isn't valid in this context
195 interop_hand_subcommand[EXE] [OPTIONS] <SUBCOMMAND>
197 For more information try --help
201 ## Flatten Hand-Implemented Args
204 $ interop_flatten_hand_args
217 $ interop_flatten_hand_args -f --bar
230 $ interop_flatten_hand_args --quuz abc
245 $ interop_flatten_hand_args --unknown
247 error: Found argument '--unknown' which wasn't expected, or isn't valid in this context
249 If you tried to supply `--unknown` as a value rather than a flag, use `-- --unknown`
252 interop_flatten_hand_args[EXE] [OPTIONS]
254 For more information try --help