mirror of https://github.com/pypa/pip
'Command Options' for the uninstall command
This commit is contained in:
parent
8f00079a4b
commit
8b1836b401
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue