[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



commit 699c7d69b731e4bf0289b418a2aaa6925c11e656
Author: Matt Traudt <sirmatt@xxxxxxx>
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,



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits