Commit 8aa5da92 authored by juga's avatar juga
Browse files

Add type to cli args that are not str

parent 435aa7e4
...@@ -49,14 +49,14 @@ def gen_parser(sub): ...@@ -49,14 +49,14 @@ def gen_parser(sub):
type=int, type=int,
help="Number of most significant digits to round bw " help="Number of most significant digits to round bw "
"when scaling as Torflow. (Default: 3)") "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 " help="How many secs in the past are results being "
"still considered. Note this value will supersede " "still considered. Note this value will supersede "
"data_period in the configuration. (Default: None)") "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 " help="How many secs results have to be away from each "
"other. (Default: 86400 - one day -)") "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." help="Mininum number of a results to consider them."
"(Default: 2)") "(Default: 2)")
......
Supports Markdown
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