mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
gh-116991: Improve pygen --help
for python
subparser (#116992)
This commit is contained in:
parent
84c3191954
commit
1e5f615086
1 changed files with 4 additions and 1 deletions
|
@ -107,7 +107,10 @@ c_parser.add_argument(
|
|||
help="Suppress code emission for rule actions",
|
||||
)
|
||||
|
||||
python_parser = subparsers.add_parser("python", help="Generate Python code")
|
||||
python_parser = subparsers.add_parser(
|
||||
"python",
|
||||
help="Generate Python code, needs grammar definition with Python actions",
|
||||
)
|
||||
python_parser.set_defaults(func=generate_python_code)
|
||||
python_parser.add_argument("grammar_filename", help="Grammar description")
|
||||
python_parser.add_argument(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue