diff --git a/gclient.py b/gclient.py index 6b25cbec8..94bb98a42 100644 --- a/gclient.py +++ b/gclient.py @@ -878,6 +878,9 @@ def CMDrecurse(parser, args): parser.add_option('-s', '--scm', action='append', default=[], help='choose scm types to operate upon') options, args = parser.parse_args(args) + if not args: + print >> sys.stderr, 'Need to supply a command!' + return 1 root_and_entries = gclient_utils.GetGClientRootAndEntries() if not root_and_entries: print >> sys.stderr, (