Hi, I was wondering if there is any common recipe for adding completion for commands with arguments, e.g. say my format is:
cmd [ -f | --file ] [ -o | --output ] [ -v | --verbose ] if I do: cmd -<TAB> I'd like to generate: -f --file -o --output -v --verbose but if I do: cmd -f foo -<TAB> or: cmd --file foo -<TAB> I'd like to see: -o --output -v --verbose I could cook something up, but I'm thinking this is a very common task, and wondering if it's been done already. Hmm, I guess this is some kind of getopts style... thanks, A. -- Alun Evans _______________________________________________ Bash-completion-devel mailing list Bash-completion-devel@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/bash-completion-devel