Passed proper default value to int-type 'verbosity' option

This commit is contained in:
Jon Dufresne 2016-03-03 20:36:43 +01:00 committed by Claude Paroz
parent d0451e4cad
commit 394b7f90d3
1 changed files with 1 additions and 1 deletions

View File

@ -244,7 +244,7 @@ class BaseCommand(object):
parser = CommandParser(self, prog="%s %s" % (os.path.basename(prog_name), subcommand),
description=self.help or None)
parser.add_argument('--version', action='version', version=self.get_version())
parser.add_argument('-v', '--verbosity', action='store', dest='verbosity', default='1',
parser.add_argument('-v', '--verbosity', action='store', dest='verbosity', default=1,
type=int, choices=[0, 1, 2, 3],
help='Verbosity level; 0=minimal output, 1=normal output, 2=verbose output, 3=very verbose output')
parser.add_argument('--settings',