Fixes 'choices referenced before assignment' error on line #287.

pull/17202/head
chouseknecht 8 years ago
parent a695e18615
commit fdb5ecd7d1
No known key found for this signature in database
GPG Key ID: 78F1698C5705A81B

@ -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…
Cancel
Save