missing check on number of arguments
This commit is contained in:
parent
f044e81ede
commit
e9625f8240
1 changed files with 2 additions and 0 deletions
2
cli/koji
2
cli/koji
|
|
@ -2308,6 +2308,8 @@ def handle_add_volume(options, session, args):
|
|||
usage += _("\n(Specify the --help global option for a list of other help options)")
|
||||
parser = OptionParser(usage=usage)
|
||||
(options, args) = parser.parse_args(args)
|
||||
if len(args) != 1:
|
||||
parser.error("Command requires exactly one volume-name.")
|
||||
name = args[0]
|
||||
volinfo = session.getVolume(name)
|
||||
if volinfo:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue