-
-
Notifications
You must be signed in to change notification settings - Fork 25
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
Make it an error to specify other flags with --help
or --list
#80
Comments
Sorry to comment here but #77 is locked, so can't do it there,
I understand, this is highly unexpected for me at least. No other tool I know does this, so I wasn't aware. Doesn't rust has some form of |
Unfortunately the flag for the Launcher is dynamic since you could literally say any Python version (else I would have used an argument parsing library and simplified my life 😉). Unless I do a complete version search upfront and then construct the possible completions I can't know ahead of time what the possible flags are. And doing that seems unnecessarily costly just for this use-case. |
I meant parse known args from the python-launcher POV 👍🏻 We can forward everything else to the resolved interpreter. |
Right, but there is no "known args from the Python Launcher POV" without knowing what all potential Python versions are. E.g. the Launcher doesn't know if |
As far as I understand currently known args are --help, --list and any -x.y where x and y are 1+ digit. That's seems fairly simple to parse and handle, no? |
Yep, hence this project exists and functions at all. 😉 My point is it will take more time and effort to support what you're asking for and I don't think it's worth it. Doing As such, I'm not planning to make any more changes around this beyond what I have already done. I understand your suggestion and I appreciate the input, but it isn't worth it to me to implement this idea and/or the support cost of the resulting code. |
I mean I understand your point, but if just 1000 users run into this and 1000 times you have to tell them to not do it, it will be cheaper to just support it IMHO. |
I've locked the conversation as I consider this topic resolved. |
From #77
The text was updated successfully, but these errors were encountered: