Clarify how `new-branch` is different for --help

BUG=

Review URL: https://codereview.chromium.org/1875063002

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@300032 0039d316-1c4b-4281-b951-d872f2087c98
changes/60/343160/1
techtonik@gmail.com 10 years ago
parent 3f0ac2bde4
commit b14fccd608

@ -3,6 +3,10 @@
# Use of this source code is governed by a BSD-style license that can be # Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file. # found in the LICENSE file.
"""
Create new branch tracking origin/master by default.
"""
import argparse import argparse
import sys import sys
@ -14,7 +18,8 @@ from git_common import hash_one
def main(args): def main(args):
parser = argparse.ArgumentParser( parser = argparse.ArgumentParser(
formatter_class=argparse.ArgumentDefaultsHelpFormatter formatter_class=argparse.ArgumentDefaultsHelpFormatter,
description=__doc__,
) )
parser.add_argument('branch_name') parser.add_argument('branch_name')
g = parser.add_mutually_exclusive_group() g = parser.add_mutually_exclusive_group()

Loading…
Cancel
Save