Open hemna opened 5 years ago
The bash completion that is not working is a bug, it is expected to work.
The help message request is a duplicate of #76.
So the completion now works only for optional arguments, positional arguments (s.a. your example) don't have the completion implemented. This is not trivial, as the completion functionality would generally have to understand what argument is being completed. This is easy for optional args (it is enough just to look at the previous word on the command-line), but it is more complicated for positional arguments - is it the first one, second one, ...?
I have an script that has a list of string values that are acceptable as a command.
It would be nice if the help output included the list of possible values for that specific command. Currently, this is all you get...
You can't find out what the possible values are unless you give the generated script a bogus value.
Also, The bash completion doesn't support showing those list when you try tab for the command.