(original) (raw)
changeset: 87650:04088790c077 user: Nick Coghlan ncoghlan@gmail.com date: Sat Nov 30 17:45:09 2013 +1000 files: Lib/ensurepip/_uninstall.py description: Issue #19726: actually running 'hg add' helps... diff -r 7dc4bf283857 -r 04088790c077 Lib/ensurepip/_uninstall.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Lib/ensurepip/_uninstall.py Sat Nov 30 17:45:09 2013 +1000 @@ -0,0 +1,30 @@ +"""Basic pip uninstallation support, helper for the Windows uninstaller""" + +import argparse +import ensurepip + + +def main(): + parser = argparse.ArgumentParser(prog="python -m ensurepip._uninstall") + parser.add_argument( + "--version", + action="version", + version="pip {}".format(ensurepip.version()), + help="Show the version of pip this will attempt to uninstall.", + ) + parser.add_argument( + "-v", "--verbose", + action="count", + default=0, + dest="verbosity", + help=("Give more output. Option is additive, and can be used up to 3 " + "times."), + ) + + args = parser.parse_args() + + ensurepip._uninstall(verbosity=args.verbosity) + + +if __name__ == "__main__": + main() /ncoghlan@gmail.com