diff --git a/cli/koji_cli/commands.py b/cli/koji_cli/commands.py index 51668d10..0b66be7a 100644 --- a/cli/koji_cli/commands.py +++ b/cli/koji_cli/commands.py @@ -2379,7 +2379,7 @@ def anon_handle_list_tagged(goptions, session, args): usage = _("usage: %prog list-tagged [options] tag [package]") usage += _("\n(Specify the --help global option for a list of other help options)") parser = OptionParser(usage=usage) - parser.add_option("--arch", help=_("List rpms for this arch")) + parser.add_option("--arch", action="append", default=[], help=_("List rpms for this arch")) parser.add_option("--rpms", action="store_true", help=_("Show rpms instead of builds")) parser.add_option("--inherit", action="store_true", help=_("Follow inheritance")) parser.add_option("--latest", action="store_true", help=_("Only show the latest builds/rpms")) diff --git a/tests/test_cli/test_list_tagged.py b/tests/test_cli/test_list_tagged.py index 3e178f7f..f8fc91eb 100644 --- a/tests/test_cli/test_list_tagged.py +++ b/tests/test_cli/test_list_tagged.py @@ -88,7 +88,7 @@ class TestCliListTagged(utils.CliTestCase): def test_list_tagged_rpms(self, activate_session_mock, event_from_opts_mock): args = ['tag', 'pkg', '--latest-n=3', '--rpms', '--sigs', - '--arch=x86_64'] + '--arch=x86_64', '--arch=noarch'] anon_handle_list_tagged(self.options, self.session, args) activate_session_mock.assert_called_once_with(self.session, @@ -99,7 +99,8 @@ class TestCliListTagged(utils.CliTestCase): inherit=None, latest=3, rpmsigs=True, - arch='x86_64') + arch=['x86_64', + 'noarch']) self.session.listTagged.assert_not_called() self.assert_console_message(sys.stdout, 'sigkey rpmA-0.0.1-1.el6.noarch\n'