Closed jan-cerny closed 8 years ago
Furthermore, "Not expected parameters" is not quite what we wanted to say there, is it? :D
Fixed in 7e38a3df4eaf5745cfff52f8b021d33bacb68586
$ python2 ./oscapd-cli task 1 set-title
Expected 1 parameters, but 0 were provided.
$ python2 ./oscapd-cli task 1 set-title asdf a a a
Expected 1 parameters, but 4 were provided.
$ python3 ./oscapd-cli task 1 set-title
Expected 1 parameters, but 0 were provided.
$ python3 ./oscapd-cli task 1 set-title asdfasdff f f f
Expected 1 parameters, but 4 were provided.
For example here, I forgot to specify the title and I got a traceback:
the same for
oscapd-cli task 1 set-input
,oscapd-cli task 1 set-target
etc.I think that the ValueError exception should be catched and displayed a message to user. I have recent deamon from git on Fedora 23 Python3.