mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Merge pull request #17202 from chouseknecht/devel
Local variable *choices* referenced before assignment
This commit is contained in:
commit
f717786949
1 changed files with 1 additions and 0 deletions
|
@ -280,6 +280,7 @@ class DocCLI(CLI):
|
|||
else:
|
||||
text.append(textwrap.fill(CLI.tty_ify(opt['description']), limit, initial_indent=opt_indent, subsequent_indent=opt_indent))
|
||||
|
||||
choices = ''
|
||||
if 'choices' in opt:
|
||||
choices = "(Choices: " + ", ".join(str(i) for i in opt['choices']) + ")"
|
||||
if 'default' in opt or not required:
|
||||
|
|
Loading…
Reference in a new issue