Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.measure
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
bob
bob.measure
Commits
64bed1b7
Commit
64bed1b7
authored
6 years ago
by
Theophile GENTILHOMME
Browse files
Options
Downloads
Patches
Plain Diff
[script][common_options] Add an option
parent
2d77f682
No related branches found
No related tags found
1 merge request
!72
Various improvements
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bob/measure/script/common_options.py
+12
-0
12 additions, 0 deletions
bob/measure/script/common_options.py
with
12 additions
and
0 deletions
bob/measure/script/common_options.py
+
12
−
0
View file @
64bed1b7
...
@@ -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
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment