From 60f08c83f977ffd6474c292a10669061b5dcc413 Mon Sep 17 00:00:00 2001 From: Nick Coghlan Date: Sat, 30 Nov 2013 17:45:09 +1000 Subject: Issue #19726: actually running 'hg add' helps... --- Lib/ensurepip/_uninstall.py | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Lib/ensurepip/_uninstall.py diff --git a/Lib/ensurepip/_uninstall.py b/Lib/ensurepip/_uninstall.py new file mode 100644 index 0000000..38c486b --- /dev/null +++ b/Lib/ensurepip/_uninstall.py @@ -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() -- cgit v0.12