Commit 1259da32 authored by André Anjos's avatar André Anjos 💬

Merge branch 'issue_55_fix_version' into 'master'

Add version option

Closes #55

See merge request !58
parents b9ea7a5b 94e81120
Pipeline #26172 passed with stages
in 8 minutes and 10 seconds
......@@ -23,7 +23,6 @@ logging.Logger.extra = _extra
@click.group(cls=AliasedGroup)
@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)
@click.version_option()
@verbosity_option()
@click.pass_context
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
commands."""
ctx.meta['--version'] = version
ctx.meta['--prefix'] = prefix
ctx.meta['--cache'] = cache
ctx.meta['--user'] = user
......
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