Skip to content

Commit

Permalink
docs: Fix CLI docs script
Browse files Browse the repository at this point in the history
  • Loading branch information
pawamoy committed Nov 23, 2024
1 parent 407351b commit 23c3e7a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import cappa
from cappa.base import collect
from cappa.help import generate_arg_groups

from insiders.cli import CommandMain
from insiders._internal.cli import CommandMain


def render_parser(command: cappa.Command, title: str, heading_level: int = 3) -> str:
Expand All @@ -24,8 +24,8 @@ def render_parser(command: cappa.Command, title: str, heading_level: int = 3) ->
if command.description:
result.append(f"{command.description}\n")

for group, args in sorted(generate_arg_groups(command)):
result.append(f"*{group.name.title()}*\n")
for (name, _), args in sorted(generate_arg_groups(command)):
result.append(f"*{name.title()}*\n")
for arg in args:
if isinstance(arg, cappa.Subcommand):
for option in arg.options.values():
Expand Down

0 comments on commit 23c3e7a

Please sign in to comment.