[patch] snp, fix handling of command-line arg -v
Hi,
fix handling of the command-line switch for "verbose".
set initial verbosity level to 1 (only print errors and warnings).
please apply.
diff -ruNp upstream/emdebsys/snp/snp.py emdebsys/snp/snp.py
--- upstream/emdebsys/snp/snp.py 2005-01-13 21:48:08.000000000 +0100
+++ emdebsys/snp/snp.py 2005-01-29 21:09:55.000000000 +0100
@@ -150,7 +150,7 @@ class Options:
# During the development & testing it's better to have it at 2.
- verbose = 2
+ verbose = 1
def __init__(self):
pass
@@ -175,7 +175,7 @@ class Options:
self.help()
sys.exit(0)
elif switch == "-v":
- Options.verbose==Options.verbose + 1
+ Options.verbose = Options.verbose + 1
elif switch == "-s":
Options.snpconf_file = val
elif switch == "-c":
Reply to: