Skip to content

Commit 1e5f615

Browse files
authored
gh-116991: Improve pygen --help for python subparser (#116992)
1 parent 84c3191 commit 1e5f615

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)