Commit 0138faeb authored by sumpfralle's avatar sumpfralle

added a "--debug" option for more verbose output


git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@637 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent 7925c447
......@@ -200,6 +200,9 @@ if __name__ == "__main__":
group_general.add_option("-q", "--quiet", dest="quiet",
default=False, action="store_true", help="show only warnings and " \
+ "errors.")
group_general.add_option("-d", "--debug", dest="debug",
default=False, action="store_true", help="enable output of debug " \
+ "messages.")
group_general.add_option("", "--progress", dest="progress",
default="text", action="store", type="choice",
choices=["none", "text", "bar", "dot"],
......@@ -339,7 +342,9 @@ if __name__ == "__main__":
else:
inputfile = None
if opts.quiet:
if opts.debug:
log.setLevel(logging.DEBUG)
elif opts.quiet:
log.setLevel(logging.WARNING)
# disable the progress bar
opts.progress = "none"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment