From 9c79ab5df791ca60f42bf939102ccca3845daa5f Mon Sep 17 00:00:00 2001 From: Brian Dolbec Date: Sat, 19 Oct 2013 22:18:16 -0700 Subject: Make --debug level settable on the cli --- mirrorselect/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mirrorselect/main.py b/mirrorselect/main.py index 0e41f30..85b0345 100755 --- a/mirrorselect/main.py +++ b/mirrorselect/main.py @@ -224,8 +224,8 @@ class MirrorSelect(object): "to select. this is only valid for download mirrors. " "If this is not specified, a default of 1 is used.") group.add_option( - "-d", "--debug", action="store_const", const=2, dest="verbosity", - default=1, help="debug mode") + "-d", "--debug", action="store", type="int", dest="verbosity", + default=1, help="debug mode, pass in the debug level [1-9]") group.add_option( "-q", "--quiet", action="store_const", const=0, dest="verbosity", help="Quiet mode") -- cgit v1.2.3