Home | History | Annotate | Download | only in tools

Lines Matching refs:parser

62   parser = optparse.OptionParser(usage='%prog [options] <project> <new rev>',
64 parser.add_option('-v', '--verbose', action='count', default=0)
65 parser.add_option('--dry-run', action='store_true')
66 parser.add_option('-f', '--force', action='store_true',
69 parser.add_option('--commit', action='store_true', default=True,
71 parser.add_option('--no-commit', action='store_false', dest='commit',
73 parser.add_option('-r', '--reviewers', default='',
76 parser.add_option('--upstream', default='origin/master',
80 parser.add_option('--cc', help='CC email addresses for issue.')
81 parser.add_option('-m', '--message', help='Custom commit message.')
83 options, args = parser.parse_args()
89 parser.print_help()
109 parser.error('Cannot set %s as its own upstream.' % new_branch)
117 parser.error('Please delete the branch %s and move to a different branch'