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
699c7d69
Commit
699c7d69
authored
Oct 05, 2018
by
Matt Traudt
Browse files
Standardize new args from --foo_bar to --foo-bar
parent
0e6aa33c
Changes
1
Hide whitespace changes
Inline
Side-by-side
sbws/core/generate.py
View file @
699c7d69
...
...
@@ -33,12 +33,12 @@ def gen_parser(sub):
p
.
add_argument
(
'--scale-constant'
,
default
=
SBWS_SCALE_CONSTANT
,
type
=
int
,
help
=
'When scaling bw weights, scale them using this const '
'multiplied by the number of measured relays'
)
p
.
add_argument
(
'--scale
_
sbws'
,
action
=
'store_true'
,
p
.
add_argument
(
'--scale
-
sbws'
,
action
=
'store_true'
,
help
=
'If specified, do not use bandwidth values as they '
'are, but scale them such that we have a budget of '
'scale_constant * num_measured_relays = bandwidth to give '
'out, and we do so proportionally'
)
p
.
add_argument
(
'-t'
,
'--scale
_
torflow'
,
action
=
'store_true'
,
p
.
add_argument
(
'-t'
,
'--scale
-
torflow'
,
action
=
'store_true'
,
help
=
'If specified, do not use bandwidth values as they '
'are, but scale them in the way Torflow does.'
)
p
.
add_argument
(
'-m'
,
'--torflow-bw-margin'
,
default
=
TORFLOW_BW_MARGIN
,
...
...
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