diff options
Diffstat (limited to 'subcmds')
-rw-r--r-- | subcmds/upload.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/subcmds/upload.py b/subcmds/upload.py index 633ddc81..6ef4955e 100644 --- a/subcmds/upload.py +++ b/subcmds/upload.py | |||
@@ -181,6 +181,9 @@ Gerrit Code Review: https://www.gerritcodereview.com/ | |||
181 | type='string', action='store', dest='dest_branch', | 181 | type='string', action='store', dest='dest_branch', |
182 | metavar='BRANCH', | 182 | metavar='BRANCH', |
183 | help='Submit for review on this target branch.') | 183 | help='Submit for review on this target branch.') |
184 | p.add_option('-n', '--dry-run', | ||
185 | dest='dryrun', default=False, action='store_true', | ||
186 | help='Do everything except actually upload the CL.') | ||
184 | p.add_option('--no-cert-checks', | 187 | p.add_option('--no-cert-checks', |
185 | dest='validate_certs', action='store_false', default=True, | 188 | dest='validate_certs', action='store_false', default=True, |
186 | help='Disable verifying ssl certs (unsafe).') | 189 | help='Disable verifying ssl certs (unsafe).') |
@@ -423,6 +426,7 @@ Gerrit Code Review: https://www.gerritcodereview.com/ | |||
423 | continue | 426 | continue |
424 | 427 | ||
425 | branch.UploadForReview(people, | 428 | branch.UploadForReview(people, |
429 | dryrun=opt.dryrun, | ||
426 | auto_topic=opt.auto_topic, | 430 | auto_topic=opt.auto_topic, |
427 | hashtags=hashtags, | 431 | hashtags=hashtags, |
428 | draft=opt.draft, | 432 | draft=opt.draft, |