Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
juga
sbws
Commits
8aa5da92
Commit
8aa5da92
authored
Oct 03, 2018
by
juga
Browse files
Add type to cli args that are not str
parent
435aa7e4
Changes
1
Hide whitespace changes
Inline
Side-by-side
sbws/core/generate.py
View file @
8aa5da92
...
...
@@ -49,14 +49,14 @@ def gen_parser(sub):
type
=
int
,
help
=
"Number of most significant digits to round bw "
"when scaling as Torflow. (Default: 3)"
)
p
.
add_argument
(
'-p'
,
'--secs-recent'
,
default
=
None
,
p
.
add_argument
(
'-p'
,
'--secs-recent'
,
default
=
None
,
type
=
int
,
help
=
"How many secs in the past are results being "
"still considered. Note this value will supersede "
"data_period in the configuration. (Default: None)"
)
p
.
add_argument
(
'-a'
,
'--secs-away'
,
default
=
DAY_SECS
,
p
.
add_argument
(
'-a'
,
'--secs-away'
,
default
=
DAY_SECS
,
type
=
int
,
help
=
"How many secs results have to be away from each "
"other. (Default: 86400 - one day -)"
)
p
.
add_argument
(
'-n'
,
'--min-num'
,
default
=
NUM_MIN_RESULTS
,
p
.
add_argument
(
'-n'
,
'--min-num'
,
default
=
NUM_MIN_RESULTS
,
type
=
int
,
help
=
"Mininum number of a results to consider them."
"(Default: 2)"
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment