-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Unexpected Completion Behavior #148
Comments
Good point about the order, thanks for bringing this up. |
Thanks for input. Ah, yes, something like
shows
and should actually not show P.S. |
Yes! We now support just ./add.py --help as well (and as of a few commits ago, ./add.py -h as well). Now the only time this won't work is if the function has a parameter named |
Found another minor one: when using classes, the completion should not suggest the |
I think this issue is resolved |
Consider the following simple example (from the docs)
The first command completion shows
add
and the second immediately--x --y
.This is confusing, since I would expect to see
X
and after I entered the first number I would expectY
or or evenX Y
at the very beginning so I know I have to enter 2 numbers, especially since the Usage showsAs far as I can see it is also not possible to distinguish mandatory from optional arguments. In the case above
X
andY
are mandatory and I would not expect to see--x
and--y
. An optional argument could e.g. be--modulo
, which would have a default value if not used, but how to distinguish that in the Python code from the other arguments?The text was updated successfully, but these errors were encountered: