mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-26 18:06:13 +01:00
print usage info if 'co' is called without arguments
This commit is contained in:
parent
a94364d95b
commit
cf852ae5db
@ -339,10 +339,15 @@ usage: osc co Apache # entire project
|
||||
elif package:
|
||||
checkout_package(project, package)
|
||||
|
||||
else:
|
||||
elif project:
|
||||
# all packages
|
||||
for package in meta_get_packagelist(project):
|
||||
checkout_package(project, package)
|
||||
else:
|
||||
print 'missing argument'
|
||||
print
|
||||
print checkout.func_doc
|
||||
sys.exit(1)
|
||||
|
||||
|
||||
def status(args):
|
||||
|
Loading…
Reference in New Issue
Block a user