Commit 94e81120 authored by Samuel GAIST's avatar Samuel GAIST
Browse files

[scripts][main_cli] Add version option

Fixes #55
parent b9ea7a5b
Pipeline #26165 passed with stage
in 9 minutes and 49 seconds
......@@ -23,7 +23,6 @@ logging.Logger.extra = _extra
@click.option('-T', '--test-mode', help='Assume test mode and doesn\'t setup '
'the logging module', default=False, is_flag=True)
@click.option('-V', '--version', help='Show version', is_flag=True)
@click.option('-p', '--prefix',
help='Overrides the prefix of your local data. '
'If not set use the value from your RC file',
......@@ -43,13 +42,13 @@ logging.Logger.extra = _extra
help='Overrides the user editor to edit local files. If not '
'set, use the value from your environment. There are no '
'defaults for this option.', type=click.STRING)
def main(ctx, test_mode, version, prefix, cache, user, token, platform, editor):
def main(ctx, test_mode, prefix, cache, user, token, platform, editor):
"""The main command line interface for beat cmdline. Look below for available
ctx.meta['--version'] = version
ctx.meta['--prefix'] = prefix
ctx.meta['--cache'] = cache
ctx.meta['--user'] = user
Supports Markdown
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