Skip to content

Commit efba475

Browse files
committed
Fix command indentation
1 parent b8a40d3 commit efba475

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

src/proper_cli/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ def _help_list_command(self, name: str, cmd: t.Callable) -> None:
211211

212212
self._echo(
213213
f"{self._indent(1)}{signature}\n"
214-
f"{self._indent(2)}{cmd_help}"
214+
f"{self._indent(4)}{cmd_help}"
215215
)
216216

217217
def _help_command(self, name: str, cmd: t.Callable) -> None:

tests/test_main.py

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -64,17 +64,17 @@ def test_main_help(get_out_text):
6464
Available Commands:
6565
6666
a
67-
AAA
67+
AAA
6868
b
69-
BBB
69+
BBB
7070
7171
foo bar
72-
BAR
72+
BAR
7373
7474
lorem ipsum x [--y=3]
75-
IPSUM
75+
IPSUM
7676
lorem sit [--meh]
77-
SIT
77+
SIT
7878
7979
"""
8080

@@ -96,17 +96,17 @@ def test_disable_params(get_out_text):
9696
Available Commands:
9797
9898
a
99-
AAA
99+
AAA
100100
b
101-
BBB
101+
BBB
102102
103103
foo bar
104-
BAR
104+
BAR
105105
106106
lorem ipsum
107-
IPSUM
107+
IPSUM
108108
lorem sit
109-
SIT
109+
SIT
110110
111111
"""
112112

@@ -129,9 +129,9 @@ def test_subgroup_help(get_out_text):
129129
Available Commands:
130130
131131
lorem ipsum x [--y=3]
132-
IPSUM
132+
IPSUM
133133
lorem sit [--meh]
134-
SIT
134+
SIT
135135
136136
"""
137137

@@ -154,9 +154,9 @@ def test_disble_params_in_subgroup_help(get_out_text):
154154
Available Commands:
155155
156156
lorem ipsum
157-
IPSUM
157+
IPSUM
158158
lorem sit
159-
SIT
159+
SIT
160160
161161
"""
162162

0 commit comments

Comments
 (0)