-
-
Notifications
You must be signed in to change notification settings - Fork 33k
gh-114576: Add command-line interface for dbm module #137893
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Could you add dbm
to main CLI list Doc/library/cmdline.rst
?
And I think this feature deserves to be in the "What's New" entry.
|
||
|
||
.. _dbm-commandline: | ||
.. program:: dbm |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.. program::
directive should be placed closer to options
.. program:: dbm |
|
||
.. option:: --whichdb file [file ...] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see above
.. option:: --whichdb file [file ...] | |
.. program:: dbm | |
.. option:: --whichdb file [file ...] |
|
||
.. option:: -h, --help | ||
|
||
Show the help message. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure we should add help flag as option because it's not a common practice.
.. option:: -h, --help | |
Show the help message. |
Lib/dbm/__init__.py::__main__
as a script #114576📚 Documentation preview 📚: https://cpython-previews--137893.org.readthedocs.build/