projects
/
grml2usb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix --quiet/--verbose option handling
[grml2usb.git]
/
grml2usb
diff --git
a/grml2usb
b/grml2usb
index
bc58eac
..
06c3c9c
100755
(executable)
--- a/
grml2usb
+++ b/
grml2usb
@@
-1562,6
+1562,9
@@
def handle_compat_warning(device):
def handle_logging():
"""Log handling and configuration"""
def handle_logging():
"""Log handling and configuration"""
+ if options.verbose and options.quiet:
+ parser.error("please use either verbose (--verbose) or quiet (--quiet) option")
+
if options.verbose:
FORMAT = "Debug: %(asctime)-15s %(message)s"
logging.basicConfig(level=logging.DEBUG, format=FORMAT)
if options.verbose:
FORMAT = "Debug: %(asctime)-15s %(message)s"
logging.basicConfig(level=logging.DEBUG, format=FORMAT)