Mercurial > cpython-lru_cache-weakref
changeset 87650:04088790c077
Issue #19726: actually running 'hg add' helps...
| author | Nick Coghlan <ncoghlan@gmail.com> |
|---|---|
| date | Sat, 30 Nov 2013 17:45:09 +1000 |
| parents | 7dc4bf283857 |
| children | a0ec33efa743 |
| files | Lib/ensurepip/_uninstall.py |
| diffstat | 1 files changed, 30 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /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()
