Skip to content

Commit

Permalink
Merge pull request #236 from coursera/cliu_force_option_by_default
Browse files Browse the repository at this point in the history
make -f default,
  • Loading branch information
sb2nov committed Apr 7, 2016
2 parents 9746e12 + 8b403b0 commit 05b81ea
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions dataduct/utils/cli.py
Expand Up @@ -123,13 +123,22 @@ def open_sql_shell(database_type, host_alias=None, **kwargs):
description='Specify actions related to running pipelines',
add_help=False
)
pipeline_run_options.add_argument(

group = pipeline_run_options.add_mutually_exclusive_group(required=False)
group.add_argument(
'-f',
'--force',
action='store_true',
default=False,
help='Destroy previous versions of this pipeline, if they exist',
help='Destroy previous versions of this pipeline, if they exist'
)
group.add_argument(
'-nf',
'--no-force',
action='store_false',
help='Do not destroy previous versions of this pipeline, if they exist'
)
pipeline_run_options.set_defaults(force=True)

pipeline_run_options.add_argument(
'-t',
'--time_delta',
Expand Down

0 comments on commit 05b81ea

Please sign in to comment.