forked from extern/httpie-cli
Display all choices on --help
This commit is contained in:
parent
79a8ecd84b
commit
977f97d070
@ -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 = [
|
||||||
|
Loading…
Reference in New Issue
Block a user