mirror of
https://github.com/openSUSE/osc.git
synced 2025-08-23 22:58:53 +02:00
added syntax check if no token opt is set
This commit is contained in:
@@ -725,6 +725,8 @@ class Osc(cmdln.Cmdln):
|
|||||||
fd = urlopen(req, data=None)
|
fd = urlopen(req, data=None)
|
||||||
print(fd.read())
|
print(fd.read())
|
||||||
else:
|
else:
|
||||||
|
if args and args[0] in ['create', 'delete', 'trigger']:
|
||||||
|
raise oscerr.WrongArgs("Did you mean --" + args[0] + "?")
|
||||||
# just list token
|
# just list token
|
||||||
for data in streamfile(url, http_GET):
|
for data in streamfile(url, http_GET):
|
||||||
sys.stdout.write(data)
|
sys.stdout.write(data)
|
||||||
|
Reference in New Issue
Block a user