You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You're right... Here's the comment in the code that explains this:
if args:
# when we have an argument we move the completion system to arguments-or-options only section,
# this means we DON'T support a script that has a arguments-or-subcommands part like:
# script-name.py (<some-arg> | (a-subcommand <command-arg>))
Since 'mine' can accept an argument 'x', the other subcommands are ignored because I couldn't suggest a subcommand-or-argument.
This is definitely a bad limitation to have. I'll leave this ticket open to deal with this and maybe give it a try later. It should be possible to output the name of the argument along with subcommand suggestions..
Just to make sure: are you using zsh or bash?
Thanks for taking a look. I am using zsh. This isn't causing a big problem for me since it is only for an in house tool but just wanted to let you know of the issue.
Tab completion does not work correctly when presented with the following usage pattern:
Result: The tab completion skips the (set|remove) mutual exclusive parameter.
If I remove the positional parameter "" then tab completion works correctly. i.e.
Result: "set" and "remove" are given as tab completion options.
The text was updated successfully, but these errors were encountered: