Commit 5463868a authored by Theophile GENTILHOMME's avatar Theophile GENTILHOMME
Browse files

[scripts][main_cli] Add --editor option

parent e5daae32
...@@ -38,9 +38,13 @@ logging.Logger.extra = _extra ...@@ -38,9 +38,13 @@ logging.Logger.extra = _extra
type=click.STRING) type=click.STRING)
@click.option('-m', '--platform', help='The URL of the BEAT platform to ' @click.option('-m', '--platform', help='The URL of the BEAT platform to '
'access.', type=click.STRING) 'access.', type=click.STRING)
@click.option('-e', '--editor',
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)
@verbosity_option() @verbosity_option()
@click.pass_context @click.pass_context
def main(ctx, test_mode, version, prefix, cache, user, token, platform): def main(ctx, test_mode, version, prefix, cache, user, token, platform, editor):
"""The main command line interface for beat cmdline. Look below for available """The main command line interface for beat cmdline. Look below for available
commands.""" commands."""
...@@ -50,6 +54,7 @@ def main(ctx, test_mode, version, prefix, cache, user, token, platform): ...@@ -50,6 +54,7 @@ def main(ctx, test_mode, version, prefix, cache, user, token, platform):
ctx.meta['--user'] = user ctx.meta['--user'] = user
ctx.meta['--token'] = token ctx.meta['--token'] = token
ctx.meta['--platform'] = platform ctx.meta['--platform'] = platform
ctx.meta['--editor'] = editor
# Check that we are in a BEAT working folder # Check that we are in a BEAT working folder
config = Configuration(ctx.meta) config = Configuration(ctx.meta)
......
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