diff options
Diffstat (limited to 'subcmds/upload.py')
-rw-r--r-- | subcmds/upload.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/subcmds/upload.py b/subcmds/upload.py index 0dd0b7da..57434b18 100644 --- a/subcmds/upload.py +++ b/subcmds/upload.py | |||
@@ -14,6 +14,7 @@ | |||
14 | 14 | ||
15 | import copy | 15 | import copy |
16 | import functools | 16 | import functools |
17 | import optparse | ||
17 | import re | 18 | import re |
18 | import sys | 19 | import sys |
19 | 20 | ||
@@ -170,9 +171,13 @@ Gerrit Code Review: https://www.gerritcodereview.com/ | |||
170 | p.add_option('--br', '--branch', | 171 | p.add_option('--br', '--branch', |
171 | type='string', action='store', dest='branch', | 172 | type='string', action='store', dest='branch', |
172 | help='(Local) branch to upload.') | 173 | help='(Local) branch to upload.') |
173 | p.add_option('--cbr', '--current-branch', | 174 | p.add_option('-c', '--current-branch', |
174 | dest='current_branch', action='store_true', | 175 | dest='current_branch', action='store_true', |
175 | help='Upload current git branch.') | 176 | help='Upload current git branch.') |
177 | # Turn this into a warning & remove this someday. | ||
178 | p.add_option('--cbr', | ||
179 | dest='current_branch', action='store_true', | ||
180 | help=optparse.SUPPRESS_HELP) | ||
176 | p.add_option('--ne', '--no-emails', | 181 | p.add_option('--ne', '--no-emails', |
177 | action='store_false', dest='notify', default=True, | 182 | action='store_false', dest='notify', default=True, |
178 | help='If specified, do not send emails on upload.') | 183 | help='If specified, do not send emails on upload.') |