mirror of
https://chromium.googlesource.com/chromium/tools/depot_tools.git
synced 2026-01-11 18:51:29 +00:00
Added hyphen-only options
Some options have words separated by underscores. Added options with same name and underscores replaced by hyphens. BUG=400953 Review URL: https://codereview.chromium.org/436963005 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@288366 0039d316-1c4b-4281-b951-d872f2087c98
This commit is contained in:
@@ -18,7 +18,8 @@ def main(args):
|
||||
)
|
||||
parser.add_argument('branch_name')
|
||||
g = parser.add_mutually_exclusive_group()
|
||||
g.add_argument('--upstream_current', action='store_true',
|
||||
g.add_argument('--upstream-current', '--upstream_current',
|
||||
action='store_true',
|
||||
help='set upstream branch to current branch.')
|
||||
g.add_argument('--upstream', metavar='REF', default=root(),
|
||||
help='upstream branch (or tag) to track.')
|
||||
|
||||
Reference in New Issue
Block a user