PR#1738: --disabled alias for --not-enabled in list-hosts

Merges #1738
https://pagure.io/koji/pull-request/1738

Fixes: #1737
https://pagure.io/koji/issue/1737
[RFE] --disabled as alias for --not-enabled in list-hosts
This commit is contained in:
Tomas Kopecek 2019-11-07 11:42:33 -05:00
commit d093a596a6

View file

@ -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"))