Skip to content

Commit

Permalink
Fix command indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
jpsca committed Feb 12, 2024
1 parent b8a40d3 commit efba475
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion src/proper_cli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ def _help_list_command(self, name: str, cmd: t.Callable) -> None:

self._echo(
f"{self._indent(1)}{signature}\n"
f"{self._indent(2)}{cmd_help}"
f"{self._indent(4)}{cmd_help}"
)

def _help_command(self, name: str, cmd: t.Callable) -> None:
Expand Down
28 changes: 14 additions & 14 deletions tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,17 +64,17 @@ def test_main_help(get_out_text):
Available Commands:
a
AAA
AAA
b
BBB
BBB
foo bar
BAR
BAR
lorem ipsum x [--y=3]
IPSUM
IPSUM
lorem sit [--meh]
SIT
SIT
"""

Expand All @@ -96,17 +96,17 @@ def test_disable_params(get_out_text):
Available Commands:
a
AAA
AAA
b
BBB
BBB
foo bar
BAR
BAR
lorem ipsum
IPSUM
IPSUM
lorem sit
SIT
SIT
"""

Expand All @@ -129,9 +129,9 @@ def test_subgroup_help(get_out_text):
Available Commands:
lorem ipsum x [--y=3]
IPSUM
IPSUM
lorem sit [--meh]
SIT
SIT
"""

Expand All @@ -154,9 +154,9 @@ def test_disble_params_in_subgroup_help(get_out_text):
Available Commands:
lorem ipsum
IPSUM
IPSUM
lorem sit
SIT
SIT
"""

Expand Down

0 comments on commit efba475

Please sign in to comment.