-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
Improve platform
CLI
#131524
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
Comments
I am open to adding the missing documentation/ updating the CLI to use argparse for a help section. I came across this while looking into #131178, so it might be possible to add tests and update the CLI at the same time if this proposal is acceptable. |
In my opinion, this is a good idea. I also think that we can add better CLI tools for arg parsing (like CC @hugovk |
we also don't have help messages for many other CLI modules that parse flags themselves or use legacy modules to implement cli I wrote about it here: #93096 (comment) as already said (in comment) this makes the behavior implicit maybe it's worth opening a new issue to add help flags to each module |
Interestingly, the CLI has been part of the module since it was added in 2003 for Python 2.3 and hasn't changed (beyond
Fine by me too. @Harry-Lees Would you like to open a PR? |
Feature or enhancement
Proposal:
Currently, the
platform
module's CLI is fairly hidden and inaccessible. I think there are two main issues with the module CLI.--terse
and--nonaliased
, which I could only find from looking at the source in Lib/platform.py.Has this already been discussed elsewhere?
No response given
Links to previous discussion of this feature:
No response
Linked PRs
The text was updated successfully, but these errors were encountered: