From dd4ce1996cbb55e23abf14f38e7aa2e4d0c6d575 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Wed, 17 Oct 2012 14:38:46 -0400 Subject: [PATCH] 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 ;). --- doc/demo/pycomedi_demo_args.py | 1 + 1 file changed, 1 insertion(+) 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) -- 2.26.2