瀏覽代碼

Fix to display the usage message of the command download when the user
don't provide any arguments to 'repo download'.

Signed-off-by: Thiago Farina <thiago.farina@gmail.com>
(cherry picked from commit 840ed0fab7cb4c2ab296c7d7d45f13e2523bae1c)

Thiago Farina 16 年之前
父節點
當前提交
de8b2c4276
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      subcmds/download.py

+ 3 - 0
subcmds/download.py

@@ -36,6 +36,9 @@ makes it available in your project's local working directory.
     pass
 
   def _ParseChangeIds(self, args):
+    if not args:
+      self.Usage()
+
     to_get = []
     project = None