Skip to content

Commit bbd38f5

Browse files
committed
fix: 🐛 Simplify docstring and printing
1 parent eee5717 commit bbd38f5

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

tools/generate-help-strings.py

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
"""Generate the expected help-output strings used in test_cli.py.
22
33
Run this script after changing a docstring or CLI parameter. Only snippets
4-
whose output differs from the current constants in test_cli.py are printed,
5-
so you can copy-paste just the changed values back into that file.
6-
7-
Usage:
8-
just generate-help-strings
4+
whose output differs from the current constants in test_cli.py are printed.
95
"""
106

117
import sys
@@ -58,12 +54,9 @@ def _as_constant_snippet(name: str, text: str) -> str:
5854
if not changed:
5955
print("No changes detected. All help-output constants are up to date.")
6056
else:
61-
print()
62-
print("Review that the output below looks as expected.")
57+
print("\nReview that the ouput below looks as expected.")
6358
print("Then, copy and paste it into tests/test_cli.py,")
6459
print("replacing the variable(s) with the same name.")
6560
for name, args in changed:
66-
print()
67-
print()
68-
print()
61+
print("\n\n")
6962
print(_as_constant_snippet(name, _capture_help(args)))

0 commit comments

Comments
 (0)