Fix the option name for gclient setdep.
Bug: 906114
Change-Id: Ib8614086f7c456c04d27f33c73809671ed073bf4
Reviewed-on: https://chromium-review.googlesource.com/c/1341862
Reviewed-by: Eric Boren <borenet@chromium.org>
Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org>
diff --git a/gclient.py b/gclient.py
index e5b1c46..f45ab73 100755
--- a/gclient.py
+++ b/gclient.py
@@ -2881,7 +2881,7 @@
(options, args) = parser.parse_args(args)
if args:
parser.error('Unused arguments: "%s"' % '" "'.join(args))
- if not options.revisions and not options.vars:
+ if not options.setdep_revisions and not options.vars:
parser.error(
'You must specify at least one variable or revision to modify.')