diff options
author | Paul van der Linden <mail@paultjuh.org> | 2011-10-04 16:10:46 +0200 |
---|---|---|
committer | Paul van der Linden <mail@paultjuh.org> | 2011-10-04 16:10:46 +0200 |
commit | 8d67101b6ecc90876ab978c43d1c36cded90cc5e (patch) | |
tree | fbf3ea3a8e1c117b8675bb779afed0080f85fb9a /pip/baseparser.py | |
parent | ac94f606c01d973dedb2cc1b9aa63e60c5bc3f8b (diff) | |
download | pip-8d67101b6ecc90876ab978c43d1c36cded90cc5e.tar.gz |
path exists action
Diffstat (limited to 'pip/baseparser.py')
-rw-r--r-- | pip/baseparser.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/pip/baseparser.py b/pip/baseparser.py index 6af54c7d4..218b87528 100644 --- a/pip/baseparser.py +++ b/pip/baseparser.py @@ -200,4 +200,20 @@ parser.add_option( default='', help=optparse.SUPPRESS_HELP) +parser.add_option( + # Option when path already exist + '--exists-action', + dest='exists_action', + type='choice', + choices=('s', 'i', 'w', 'b'), + default=[], + action='append', + help="Default action when a path already exists." + "Use this option more then one time to specify another action when a certain option is not available, choices: " + "(s)witch," + "(i)gnore," + "(w)ipe," + "(b)ackup" +) + parser.disable_interspersed_args() |