From e9625f8240d07aaecf119bffa8e09b0b054e6515 Mon Sep 17 00:00:00 2001 From: Tomas Kopecek Date: Nov 23 2016 17:52:01 +0000 Subject: missing check on number of arguments --- diff --git a/cli/koji b/cli/koji index ee331ec..202175c 100755 --- a/cli/koji +++ b/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: