Commit d659ceaa authored by maruel@chromium.org's avatar maruel@chromium.org

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
parent c5e9aec5
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment