diff options
Diffstat (limited to 'ipalib/plugable.py')
-rw-r--r-- | ipalib/plugable.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ipalib/plugable.py b/ipalib/plugable.py index ded762d19..397004eb1 100644 --- a/ipalib/plugable.py +++ b/ipalib/plugable.py @@ -397,7 +397,7 @@ class API(DictProxy): stderr = logging.StreamHandler() if self.env.debug: stderr.setLevel(logging.DEBUG) - elif self.env.verbose: + elif self.env.verbose > 0: stderr.setLevel(logging.INFO) else: stderr.setLevel(logging.WARNING) @@ -444,8 +444,8 @@ class API(DictProxy): parser.add_option('-d', '--debug', action='store_true', help='Produce full debuging output', ) - parser.add_option('-v', '--verbose', action='store_true', - help='Produce more verbose output', + parser.add_option('-v', '--verbose', action='count', + help='Produce more verbose output. A second -v displays the XML-RPC request', ) if context == 'cli': parser.add_option('-a', '--prompt-all', action='store_true', |