diff options
author | 2013-10-19 22:18:16 -0700 | |
---|---|---|
committer | 2013-10-19 22:18:16 -0700 | |
commit | 9c79ab5df791ca60f42bf939102ccca3845daa5f (patch) | |
tree | 7aca67f0a3df42ee269c1e0f72aff346b907984c | |
parent | Add new urls for api.gentoo.org (diff) | |
download | mirrorselect-9c79ab5df791ca60f42bf939102ccca3845daa5f.tar.gz mirrorselect-9c79ab5df791ca60f42bf939102ccca3845daa5f.tar.bz2 mirrorselect-9c79ab5df791ca60f42bf939102ccca3845daa5f.zip |
Make --debug level settable on the cli
-rwxr-xr-x | mirrorselect/main.py | 4 |
1 files 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") |