Use store_true instead of const here

This commit is contained in:
Joshua Harlow
2012-03-12 15:36:13 -07:00
parent 06b5f214f6
commit 0cacee8bc8

View File

@@ -49,12 +49,11 @@ def parse():
dest="verbosity",
default=[1],
help="increase the verbose level")
parser.add_option("", "--dryrun",
action="store_const",
const=1,
parser.add_option("--dryrun",
action="store_true",
dest="dryrun",
default=0,
help="log actions without actually doing any of them")
default=False,
help="perform actions without actually doing any of them and/or attempt to do this: (default: %default)")
base_group = OptionGroup(parser, "Install & uninstall & start & stop specific options")
base_group.add_option("-a", "--action",