Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bob
bob.measure
Commits
77f11de1
Commit
77f11de1
authored
May 01, 2018
by
Theophile GENTILHOMME
Browse files
shortcut for legend: -ls-> -l
parent
0fc6e809
Changes
2
Hide whitespace changes
Inline
Side-by-side
bob/measure/script/common_options.py
View file @
77f11de1
...
...
@@ -362,7 +362,7 @@ def legends_option(**kwargs):
ctx
.
meta
[
'legends'
]
=
value
return
value
return
click
.
option
(
'-l
s
'
,
'--legends'
,
type
=
click
.
STRING
,
default
=
None
,
'-l'
,
'--legends'
,
type
=
click
.
STRING
,
default
=
None
,
help
=
'The title for each system comma separated. '
'Example: --legends ISV,CNN'
,
callback
=
callback
,
**
kwargs
)(
func
)
...
...
bob/measure/test_script.py
View file @
77f11de1
...
...
@@ -30,7 +30,7 @@ def test_metrics():
assert
result
.
exit_code
==
0
with
runner
.
isolated_filesystem
():
result
=
runner
.
invoke
(
commands
.
metrics
,
[
'-l'
,
'tmp'
,
dev1
,
test1
,
dev2
,
test2
,
'-l
s
'
,
commands
.
metrics
,
[
'-l'
,
'tmp'
,
dev1
,
test1
,
dev2
,
test2
,
'-l'
,
'A,B'
]
)
assert
result
.
exit_code
==
0
,
(
result
.
exit_code
,
result
.
output
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment