This adds bash completions for whois and mkpasswd. They're standalone and have quite basic functionality, some more could be added but in that case I'd suggest making them dependent on https://github.com/scop/bash-completion. In particular, option arguments split with the equals sign are not supported; whitespace separated are.
The mkpasswd completion does not offer short completions where long ones exist. The reasoning for this is outlined in https://github.com/scop/bash-completion/blob/5927d5733be672268ae15e78fd3b1a5d91cfbc2d/CONTRIBUTING.md?plain=1#L128-L145
Note that this is only about the option names; completing arguments to short ones, if given by user, are supported where available.
The whois completion does offer the short ones even for the few that have long ones, because almost all options to it are short ones anyway.
This adds bash completions for whois and mkpasswd. They're standalone and have quite basic functionality, some more could be added but in that case I'd suggest making them dependent on https://github.com/scop/bash-completion. In particular, option arguments split with the equals sign are not supported; whitespace separated are.
The mkpasswd completion does not offer short completions where long ones exist. The reasoning for this is outlined in https://github.com/scop/bash-completion/blob/5927d5733be672268ae15e78fd3b1a5d91cfbc2d/CONTRIBUTING.md?plain=1#L128-L145 Note that this is only about the option names; completing arguments to short ones, if given by user, are supported where available. The whois completion does offer the short ones even for the few that have long ones, because almost all options to it are short ones anyway.