Fix Document CI error due to command params not being loaded. (#1334)

- Fix error running azhelpgen.py
-- To load the full command table with all parameter values, we iterate over the command table running -h on each command.
This commit is contained in:
Derek Bekoe 2016-11-15 15:26:37 -08:00 коммит произвёл Travis Prescott
Родитель 487f0196fc
Коммит 4fde5fdca2
1 изменённых файлов: 5 добавлений и 4 удалений

Просмотреть файл

@ -14,10 +14,11 @@ from azure.cli.core.application import APPLICATION, Configuration
import azure.cli.core._help as _help
app = APPLICATION
try:
app.execute(['-h'])
except:
pass
for cmd in app.configuration.get_command_table():
try:
app.execute(cmd.split() + ['-h'])
except:
pass
class AzHelpGenDirective(Directive):
def make_rst(self):