Browse Source

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>

Thiago Farina 16 năm trước cách đây
mục cha
commit
840ed0fab7
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  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