(Thanks to Ralf Gross for the report and relevant information.)
* Also add specified bootoptions to default entry in configuration
file of grub version 1. (Thanks to Ralf Gross for the bugreport.)
+ * Make sure that options "--quiet" and "--verbose" aren't accepted
+ at the same time in the command line. Thanks for bugreport and
+ code example, Karl Voit!
- -- Michael Prokop <mika@grml.org> Tue, 24 Mar 2009 17:45:45 +0100
+ -- Michael Prokop <mika@grml.org> Tue, 24 Mar 2009 22:32:05 +0100
grml2usb (0.9.2) unstable; urgency=low
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)