Skip to content

Commit d0a069a

Browse files
committed
Update azhelpgen.py
1 parent 273e7cc commit d0a069a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

doc/sphinx/azhelpgen/azhelpgen.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
from sphinx.util.compat import Directive
1111
from sphinx.util.nodes import nested_parse_with_titles
1212

13-
from azure.cli.core.application import APPLICATION, Configuration
13+
from azure.cli.core.application import Application, Configuration
1414
import azure.cli.core._help as _help
1515

16-
app = APPLICATION
16+
app = Application(Configuration())
1717
for cmd in app.configuration.get_command_table():
1818
try:
1919
app.execute(cmd.split() + ['-h'])
@@ -30,7 +30,7 @@ def make_rst(self):
3030

3131
help_files = []
3232
for cmd, parser in parser_dict.items():
33-
help_file = _help.GroupHelpFile(cmd, parser) if _is_group(parser) else _help.CommandHelpFile(cmd, parser)
33+
help_file = _help.GroupHelpFile(cmd, parser) if _is_group(parser) else _help.CommandHelpFile(cmd, parser)
3434
help_file.load(parser)
3535
help_files.append(help_file)
3636
help_files = sorted(help_files, key=lambda x: x.command)
@@ -42,7 +42,7 @@ def make_rst(self):
4242
yield '{}:summary: {}'.format(INDENT, help_file.short_summary)
4343
yield '{}:description: {}'.format(INDENT, help_file.long_summary)
4444
if not is_command:
45-
top_group_name = help_file.command.split()[0] if help_file.command else 'az'
45+
top_group_name = help_file.command.split()[0] if help_file.command else 'az'
4646
yield '{}:docsource: {}'.format(INDENT, doc_source_map[top_group_name] if top_group_name in doc_source_map else '')
4747
else:
4848
top_command_name = help_file.command.split()[0] if help_file.command else ''
@@ -52,7 +52,7 @@ def make_rst(self):
5252

5353
if is_command and help_file.parameters:
5454
group_registry = _help.ArgumentGroupRegistry(
55-
[p.group_name for p in help_file.parameters if p.group_name])
55+
[p.group_name for p in help_file.parameters if p.group_name])
5656

5757
for arg in sorted(help_file.parameters,
5858
key=lambda p: group_registry.get_group_priority(p.group_name)

0 commit comments

Comments
 (0)