From d502e9fe1cead0b846c670faf9d650e073149444 Mon Sep 17 00:00:00 2001 From: Tomas Kopecek Date: Oct 30 2019 11:23:03 +0000 Subject: --disabled alias for --not-enabled in list-hosts Fixes: https://pagure.io/koji/issue/1737 --- diff --git a/cli/koji_cli/commands.py b/cli/koji_cli/commands.py index efe43e2..09e1314 100644 --- a/cli/koji_cli/commands.py +++ b/cli/koji_cli/commands.py @@ -2863,6 +2863,7 @@ def anon_handle_list_hosts(goptions, session, args): parser.add_option("--not-ready", action="store_false", dest="ready", help=_("Limit to not ready hosts")) parser.add_option("--enabled", action="store_true", help=_("Limit to enabled hosts")) parser.add_option("--not-enabled", action="store_false", dest="enabled", help=_("Limit to not enabled hosts")) + parser.add_option("--disabled", action="store_false", dest="enabled", help=_("Alias for --not-enabled")) parser.add_option("--quiet", action="store_true", default=goptions.quiet, help=_("Do not print header information")) parser.add_option("--show-channels", action="store_true", help=_("Show host's channels"))