diff --git a/osc/commandline.py b/osc/commandline.py index 67d7e64a..4b01f7d3 100644 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -725,6 +725,8 @@ class Osc(cmdln.Cmdln): fd = urlopen(req, data=None) print(fd.read()) else: + if args and args[0] in ['create', 'delete', 'trigger']: + raise oscerr.WrongArgs("Did you mean --" + args[0] + "?") # just list token for data in streamfile(url, http_GET): sys.stdout.write(data)