Skip to content
Snippets Groups Projects
Commit 64bed1b7 authored by Theophile GENTILHOMME's avatar Theophile GENTILHOMME
Browse files

[script][common_options] Add an option

parent 2d77f682
No related branches found
No related tags found
1 merge request!72Various improvements
...@@ -79,6 +79,18 @@ def eval_option(**kwargs): ...@@ -79,6 +79,18 @@ def eval_option(**kwargs):
return custom_eval_option return custom_eval_option
def hide_dev_option(dflt=False, **kwargs):
'''Get option flag to say if dev plot should be hidden'''
def custom_hide_dev_option(func):
def callback(ctx, param, value):
ctx.meta['hide_dev'] = value
return value
return click.option(
'--hide-dev', is_flag=True, default=dflt,
show_default=True,
help='If set, hide dev related plots',
callback=callback, **kwargs)(func)
return custom_hide_dev_option
def sep_dev_eval_option(dflt=True, **kwargs): def sep_dev_eval_option(dflt=True, **kwargs):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment