Prints help when the user only type revert in command line.

BUG=None
TEST=None

Patch contributed by Thiago Fransosi Farina <thiago.farina@gmail.com>

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@22294 0039d316-1c4b-4281-b951-d872f2087c98
experimental/szager/collated-output
maruel@chromium.org 16 years ago
parent c5e9aec590
commit d659ceaa95

@ -261,6 +261,10 @@ and optionally commit the revert.""")
parser.add_option("-r", "--reviewers", action="append",
help="Reviewers to send the email to. By default, the list "
"of commiters is used.")
if len(argv) < 2:
parser.print_help()
return 1;
options, args = parser.parse_args(argv)
revisions = []
try:

Loading…
Cancel
Save