'Command Options' for the uninstall command

This commit is contained in:
Georgi Valkov 2012-12-10 03:29:35 +02:00
parent 8f00079a4b
commit 8b1836b401
1 changed files with 4 additions and 2 deletions

View File

@ -10,7 +10,7 @@ class UninstallCommand(Command):
def __init__(self, *args, **kw):
super(UninstallCommand, self).__init__(*args, **kw)
self.parser.add_option(
self.cmd_opts.add_option(
'-r', '--requirement',
dest='requirements',
action='append',
@ -18,12 +18,14 @@ class UninstallCommand(Command):
metavar='FILENAME',
help='Uninstall all the packages listed in the given requirements file. '
'This option can be used multiple times.')
self.parser.add_option(
self.cmd_opts.add_option(
'-y', '--yes',
dest='yes',
action='store_true',
help="Don't ask for confirmation of uninstall deletions.")
self.parser.add_option_group(self.cmd_opts)
def run(self, options, args):
requirement_set = RequirementSet(
build_dir=None,