Document sahara common auth options

Sahara has a new section "Common auth", handle it when
generating the cli help.

Change-Id: Ia4a62cc634db627928ccfe365b83d37e1de36618
This commit is contained in:
Andreas Jaeger 2014-10-29 19:20:55 +01:00
parent 94a0bd3182
commit 91586ee285
1 changed files with 17 additions and 0 deletions

View File

@ -303,6 +303,23 @@ def generate_command(os_command, os_file):
next_line_screen = True
ignore_next_lines = True
continue
# sahara
if line.startswith('Common auth options'):
if in_screen:
os_file.write("</computeroutput></screen>\n")
in_screen = False
os_file.write(" </section>\n")
os_file.write(" <section ")
os_file.write("xml:id=\"%sclient_command_common_auth\">\n"
% os_command)
os_file.write(" <title>%s common authentication "
"arguments</title>\n"
% os_command)
format_table('', help_lines[line_index + 1:],
os_file)
next_line_screen = True
ignore_next_lines = True
continue
# neutron
if line.startswith('Commands for API v2.0:'):
if in_screen: