diff --git a/src/manage/list_command.py b/src/manage/list_command.py index e1c2869..3431c66 100644 --- a/src/manage/list_command.py +++ b/src/manage/list_command.py @@ -251,8 +251,9 @@ def execute(cmd): LOGGER.debug("Get formatter %s", cmd.format) formatter = FORMATTERS[cmd.format] except LookupError: - expect = ", ".join(sorted(FORMATTERS)) - raise ArgumentError(f"'{cmd.format}' is not a valid format; expect one of: {expect}") from None + formatters = FORMATTERS.keys() - {"legacy", "legacy-paths"} + expect = ", ".join(sorted(formatters)) + raise ArgumentError(f"'{cmd.format}' is not a valid format; expected one of: {expect}") from None from .tagutils import tag_or_range, install_matches_any tags = []