Enumerate window layout choices in help

This commit is contained in:
Kovid Goyal 2017-11-29 00:05:17 +05:30
parent 6352f585e8
commit d1df5ad4e2
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -57,7 +57,7 @@ Detach from the controlling terminal, if any
--window-layout
type=choices
choices={window_layout_choices}
The window layout to use on startup
The window layout to use on startup. Choices are: {window_layout_choices}
--session
@ -405,7 +405,7 @@ def options_spec():
if not hasattr(options_spec, 'ans'):
options_spec.ans = OPTIONS.format(
appname=appname, config_path=defconf,
window_layout_choices=','.join(all_layouts)
window_layout_choices=', '.join(all_layouts)
)
return options_spec.ans