Index: tools/bots/dart_sdk.py |
diff --git a/tools/bots/dart_sdk.py b/tools/bots/dart_sdk.py |
index f449293726b955c8f4f0b45f17bbc9abeebbfbb1..1fbd7e1efc647d022ba9d76a15b23483f07a700c 100644 |
--- a/tools/bots/dart_sdk.py |
+++ b/tools/bots/dart_sdk.py |
@@ -224,7 +224,7 @@ def Run(command, env=None): |
return bot.RunProcess(command, env=env) |
if __name__ == '__main__': |
- if len(sys.argv) > 1 and sys.argv[2] == 'api_docs': |
+ if len(sys.argv) > 1 and sys.argv[1] == 'api_docs': |
if BUILD_OS == 'linux': |
CreateUploadAPIDocs() |
else: |