remove export choices on export argument (#3655)

* remove export choices

* Error message
This commit is contained in:
James Maslek
2022-11-29 13:22:22 -05:00
committed by GitHub
parent 72aac683a1
commit a12b788ea9
2 changed files with 2 additions and 2 deletions

View File

@@ -1243,7 +1243,8 @@ def check_file_type_saved(valid_types: List[str] = None):
valid_filenames.append(filename)
else:
console.print(
f"[red]Filename '{filename}' provided is not valid![/red]"
f"[red]Filename '{filename}' provided is not valid!\nPlease use one of the following file types:"
f"{','.join(valid_types)}[/red]\n"
)
return ",".join(valid_filenames)

View File

@@ -747,7 +747,6 @@ class BaseController(metaclass=ABCMeta):
type=check_file_type_saved(choices_export),
dest="export",
help=help_export,
choices=choices_export,
)
if raw: