1 |
commit: 9c79ab5df791ca60f42bf939102ccca3845daa5f |
2 |
Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Oct 20 05:18:16 2013 +0000 |
4 |
Commit: Brian Dolbec <brian.dolbec <AT> gmail <DOT> com> |
5 |
CommitDate: Sun Oct 20 05:18:16 2013 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/mirrorselect.git;a=commit;h=9c79ab5d |
7 |
|
8 |
Make --debug level settable on the cli |
9 |
|
10 |
--- |
11 |
mirrorselect/main.py | 4 ++-- |
12 |
1 file changed, 2 insertions(+), 2 deletions(-) |
13 |
|
14 |
diff --git a/mirrorselect/main.py b/mirrorselect/main.py |
15 |
index 0e41f30..85b0345 100755 |
16 |
--- a/mirrorselect/main.py |
17 |
+++ b/mirrorselect/main.py |
18 |
@@ -224,8 +224,8 @@ class MirrorSelect(object): |
19 |
"to select. this is only valid for download mirrors. " |
20 |
"If this is not specified, a default of 1 is used.") |
21 |
group.add_option( |
22 |
- "-d", "--debug", action="store_const", const=2, dest="verbosity", |
23 |
- default=1, help="debug mode") |
24 |
+ "-d", "--debug", action="store", type="int", dest="verbosity", |
25 |
+ default=1, help="debug mode, pass in the debug level [1-9]") |
26 |
group.add_option( |
27 |
"-q", "--quiet", action="store_const", const=0, dest="verbosity", |
28 |
help="Quiet mode") |