Hi,
_longopt is no used a lot.
I don't know why as it's very useful.
[insert the rationale about long options,
build time features, less typing, more extensible, ...]
To match the --help where several option are documented
on one line only I wrote a small sed script to be used
in _longopt which addresses the problem [attached].
eg: the --silent option of chown --help|sed -n -f longopt.sed
wish it may help
Raph
: begin
h
: printlong
g
s/.*\(--[-A-Za-z0-9]\{1,\}\).*/\1/p
# if no more match ("T") restart with
# next line
T nextline
g
#keep everything except the pattern
#from the last long option to EOL
s/^\(.*\)--[-A-Za-z0-9].*$/\1/
h
t printlong
: nextline
n
b begin
_______________________________________________
Bash-completion-devel mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/bash-completion-devel