Commit 77f11de1 authored by Theophile GENTILHOMME's avatar Theophile GENTILHOMME

shortcut for legend: -ls-> -l

parent 0fc6e809
......@@ -362,7 +362,7 @@ def legends_option(**kwargs):
ctx.meta['legends'] = value
return value
return click.option(
'-ls', '--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)
......
......@@ -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, '-ls',
commands.metrics, ['-l', 'tmp', dev1, test1, dev2, test2, '-l',
'A,B']
)
assert result.exit_code == 0, (result.exit_code, result.output)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment