mirror of
https://github.com/openSUSE/osc.git
synced 2025-02-26 20:22:13 +01:00
Merge branch 'token_syntax_verify' of https://github.com/lethliel/osc
Bail in some cases if wrong args were supplied
This commit is contained in:
commit
e324a36b41
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user