Skip to content

Commit d6c3ed5

Browse files
committed
imp(Colors): implements more structured colored output
Closes #129
1 parent 92fcec8 commit d6c3ed5

File tree

6 files changed

+203
-134
lines changed

6 files changed

+203
-134
lines changed

clap-tests/run_tests.py

+13-12
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,18 @@
2727
--multvalsmo <one> <two> Tests mutliple values, not mult occs
2828
-o, --option <opt>... tests options
2929
--long-option-2 <option2> tests long options with exclusions
30-
-O, --Option <option3> tests options with specific value sets [values: fast slow]
30+
-O, --Option <option3> tests options with specific value sets [values: fast, slow]
3131
3232
POSITIONAL ARGUMENTS:
3333
positional tests positionals
3434
positional2 tests positionals with exclusions
35-
positional3... tests positionals with specific values [values: emacs vi]
35+
positional3... tests positionals with specific values [values: emacs, vi]
3636
3737
SUBCOMMANDS:
3838
help Prints this message
3939
subcmd tests subcommands'''
4040

41-
_sc_dym_usage = '''The subcommand 'subcm' isn't valid
41+
_sc_dym_usage = '''error: The subcommand 'subcm' isn't valid
4242
Did you mean 'subcmd' ?
4343
4444
If you received this message in error, try re-running with 'claptests -- subcm'
@@ -48,38 +48,39 @@
4848
4949
For more information try --help'''
5050

51-
_arg_dym_usage = '''The argument --optio isn't valid
51+
_arg_dym_usage = '''error: The argument '--optio' isn't valid
5252
Did you mean --option ?
5353
5454
USAGE:
5555
claptests --option <opt>...
5656
5757
For more information try --help'''
5858

59-
_pv_dym_usage = '''"slo" isn't a valid value for '--Option <option3>'
59+
_pv_dym_usage = '''error: 'slo' isn't a valid value for '--Option <option3>'
6060
[valid values: fast slow]
61+
6162
Did you mean 'slow' ?
6263
6364
USAGE:
6465
claptests --Option <option3>
6566
6667
For more information try --help'''
6768

68-
_excluded = '''The argument '--flag' cannot be used with '-F'
69+
_excluded = '''error: The argument '--flag' cannot be used with '-F'
6970
7071
USAGE:
7172
\tclaptests [positional2] -F --long-option-2 <option2>
7273
7374
For more information try --help'''
7475

75-
_excluded_l = '''The argument -f cannot be used '-F'
76+
_excluded_l = '''error: The argument '-f' cannot be used '-F'
7677
7778
USAGE:
7879
claptests [positional2] -F --long-option-2 <option2>
7980
8081
For more information try --help'''
8182

82-
_required = '''The following required arguments were not supplied:
83+
_required = '''error: The following required arguments were not supplied:
8384
\t'[positional2]'
8485
\t'--long-option-2 <option2>'
8586
@@ -182,7 +183,7 @@
182183
An scoption: some
183184
scpositional present with value: value'''
184185

185-
_min_vals_few = '''The argument '--minvals2 <minvals>...' requires at least 2 values, but 1 was provided
186+
_min_vals_few = '''error: The argument '--minvals2 <minvals>...' requires at least 2 values, but 1 was provided
186187
187188
USAGE:
188189
\tclaptests --minvals2 <minvals>...
@@ -213,21 +214,21 @@
213214
positional present with value: too
214215
subcmd NOT present'''
215216

216-
_mult_vals_more = '''The argument --multvals was supplied more than once, but does not support multiple values
217+
_mult_vals_more = '''error: The argument '--multvals' was supplied more than once, but does not support multiple values
217218
218219
USAGE:
219220
\tclaptests --multvals <one> <two>
220221
221222
For more information try --help'''
222223

223-
_mult_vals_few = '''The argument '--multvals <one> <two>' requires a value but none was supplied
224+
_mult_vals_few = '''error: The argument '--multvals <one> <two>' requires a value but none was supplied
224225
225226
USAGE:
226227
\tclaptests --multvals <one> <two>
227228
228229
For more information try --help'''
229230

230-
_mult_vals_2m1 = '''The argument '--multvalsmo <one> <two>' requires 2 values, but 1 was provided
231+
_mult_vals_2m1 = '''error: The argument '--multvalsmo <one> <two>' requires 2 values, but 1 was provided
231232
232233
USAGE:
233234
claptests --multvalsmo <one> <two>

0 commit comments

Comments
 (0)