please find my ebuild for app-shells/compleat: a very easy to use and customize shell completion tool.
Generate tab completion for any shell command by specifying its usage in a familiar manpage-like format. For example, a usage specification for top(1):
top [-b | -c | -H | -i | -s | -S | -d <delay> | -n <num> | -p <pid> ...] ... ;
The only supported shells at the moment are bash and zsh.
Steps to Reproduce:
Created attachment 256408 [details]