Skip to content

Commit 7dff737

Browse files
sobolevnmliezun
authored andcommitted
pythongh-116991: Improve pygen --help for python subparser (python#116992)
1 parent 4507174 commit 7dff737

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Tools/peg_generator/pegen/__main__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,10 @@ def generate_python_code(
107107
help="Suppress code emission for rule actions",
108108
)
109109

110-
python_parser = subparsers.add_parser("python", help="Generate Python code")
110+
python_parser = subparsers.add_parser(
111+
"python",
112+
help="Generate Python code, needs grammar definition with Python actions",
113+
)
111114
python_parser.set_defaults(func=generate_python_code)
112115
python_parser.add_argument("grammar_filename", help="Grammar description")
113116
python_parser.add_argument(

0 commit comments

Comments
 (0)