[tor-commits] [sbws/master] Standardize new args from --foo_bar to --foo-bar

juga at torproject.org juga at torproject.org
Mon Oct 8 08:14:49 UTC 2018


commit 699c7d69b731e4bf0289b418a2aaa6925c11e656
Author: Matt Traudt <sirmatt at ksu.edu>
Date:   Fri Oct 5 12:43:00 2018 -0400

    Standardize new args from --foo_bar to --foo-bar
---
 sbws/core/generate.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sbws/core/generate.py b/sbws/core/generate.py
index 6d91690..cd3b619 100644
--- a/sbws/core/generate.py
+++ b/sbws/core/generate.py
@@ -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,





More information about the tor-commits mailing list