Display all choices on --help

This commit is contained in:
Batuhan Taskaya 2022-04-29 13:01:23 +03:00
parent 79a8ecd84b
commit 977f97d070

View File

@ -154,10 +154,7 @@ def to_help_message(
desc = raw_form.get('short_description', '') desc = raw_form.get('short_description', '')
if raw_form.get('choices'): if raw_form.get('choices'):
desc += ' (choices: ' desc += ' (choices: '
desc += textwrap.shorten( desc += ', '.join(raw_form.get('choices'))
', '.join(raw_form.get('choices')),
MAX_CHOICE_CHARS,
)
desc += ')' desc += ')'
rows = [ rows = [