From b14fccd60872e8787f4203ab110a0ba2df0f2a40 Mon Sep 17 00:00:00 2001 From: "techtonik@gmail.com" Date: Wed, 20 Apr 2016 04:10:09 +0000 Subject: [PATCH] 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 --- git_new_branch.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/git_new_branch.py b/git_new_branch.py index 03b0fcc484..ed1225dc40 100755 --- a/git_new_branch.py +++ b/git_new_branch.py @@ -3,6 +3,10 @@ # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. +""" +Create new branch tracking origin/master by default. +""" + import argparse import sys @@ -14,7 +18,8 @@ from git_common import hash_one def main(args): parser = argparse.ArgumentParser( - formatter_class=argparse.ArgumentDefaultsHelpFormatter + formatter_class=argparse.ArgumentDefaultsHelpFormatter, + description=__doc__, ) parser.add_argument('branch_name') g = parser.add_mutually_exclusive_group()