From: W. Trevor King Date: Wed, 17 Oct 2012 18:38:46 +0000 (-0400) Subject: pycomedi_demo_args: comment on what happens with lots of verbose args. X-Git-Tag: 0.6~22 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=dd4ce1996cbb55e23abf14f38e7aa2e4d0c6d575;p=pycomedi.git pycomedi_demo_args: comment on what happens with lots of verbose args. For example, if you call cmd.py -vvvvvvv This will set pycomedi.LOG to DEBUG. WARN -> INFO INFO -> DEBUG no-op no-op etc. The new comment makes this clearer, because it took me a minute to understand the implementation ;). --- diff --git a/doc/demo/pycomedi_demo_args.py b/doc/demo/pycomedi_demo_args.py index 4bd5a89..9e09e4a 100644 --- a/doc/demo/pycomedi_demo_args.py +++ b/doc/demo/pycomedi_demo_args.py @@ -33,6 +33,7 @@ class _IncrementVerbosityAction (_argparse.Action): level -= 10 # e.g. logging.INFO -> logging.DEBUG if level >= _logging.DEBUG: _LOG.setLevel(level) + # otherwise we're already at DEBUG, so don't do anything # name -> (args, kwargs)