mirror of
https://github.com/erkin/ponysay
synced 2024-11-16 00:17:59 +00:00
bash completion recognises --bubble + adding options --symlist (-L), ++symlist (+L) and --bubblelist (-B)
This commit is contained in:
parent
a201c8de73
commit
73c518e260
3 changed files with 9 additions and 4 deletions
|
@ -20,7 +20,7 @@ _ponysay()
|
|||
quoters=$('/usr/bin/ponysay' --quoters)
|
||||
COMPREPLY=( $( compgen -W "$quoters" -- "$cur" ) )
|
||||
|
||||
elif [ $prev = "-b" ] || [ $prev = "--balloon" ]; then
|
||||
elif [ $prev = "-b" ] || [ $prev = "--balloon" ] || [ $prev = "--bubble" ]; then
|
||||
balloons=$('/usr/bin/ponysay' --balloonlist)
|
||||
COMPREPLY=( $( compgen -W "$balloons" -- "$cur" ) )
|
||||
|
||||
|
|
|
@ -227,7 +227,9 @@ on the terminal.)
|
|||
|
||||
@item -L
|
||||
@itemx --altlist
|
||||
@itemx --symlist
|
||||
@cindex @option{-L}
|
||||
@cindex @option{--symlist}
|
||||
@cindex @option{--altlist}
|
||||
Lists all installed ponies. The ponies which have quotes, i.e. can be used with
|
||||
the @option{-q} option, will be marked by being printed in bold or bright (depending
|
||||
|
@ -242,8 +244,10 @@ Just as @option{-l}, except it lists extra (non-MLP:FiM) ponies instead of stand
|
|||
(MLP:FiM) ponies.
|
||||
|
||||
@item +L
|
||||
@itemx ++symlist
|
||||
@itemx ++altlist
|
||||
@cindex @option{+L}
|
||||
@cindex @option{++symlist}
|
||||
@cindex @option{++altlist}
|
||||
Just as @option{-L}, except it lists extra (non-MLP:FiM) ponies instead of standard
|
||||
(MLP:FiM) ponies.
|
||||
|
@ -251,6 +255,7 @@ Just as @option{-L}, except it lists extra (non-MLP:FiM) ponies instead of stand
|
|||
@item -B
|
||||
@itemx --balloonlist
|
||||
@cindex @option{-B}
|
||||
@cindex @option{--bubblelist}
|
||||
@cindex @option{--balloonlist}
|
||||
Prints a list of all balloon styles.
|
||||
@end table
|
||||
|
|
6
ponysay
6
ponysay
|
@ -1721,10 +1721,10 @@ opts.add_argumentless(['++onelist'])
|
|||
opts.add_argumentless(['-h', '--help'], help = 'Print this help message.')
|
||||
opts.add_argumentless(['-v', '--version'], help = 'Print the version of the program.')
|
||||
opts.add_argumentless(['-l', '--list'], help = 'List pony names.')
|
||||
opts.add_argumentless(['-L', '--altlist'], help = 'List pony names with alternatives.')
|
||||
opts.add_argumentless(['-L', '--symlist', '--altlist'], help = 'List pony names with alternatives.')
|
||||
opts.add_argumentless(['+l', '++list'], help = 'List non-MLP:FiM pony names.')
|
||||
opts.add_argumentless(['+L', '++altlist'], help = 'List non-MLP:FiM pony names with alternatives.')
|
||||
opts.add_argumentless(['-B', '--balloonlist'], help = 'List balloon styles.')
|
||||
opts.add_argumentless(['+L', '++symlist', '++altlist'], help = 'List non-MLP:FiM pony names with alternatives.')
|
||||
opts.add_argumentless(['-B', '--bubblelist', '--balloonlist'], help = 'List balloon styles.')
|
||||
opts.add_argumentless(['-c', '--compact'], help = 'Compress messages.')
|
||||
opts.add_argumented( ['-W', '--wrap'], arg = 'COLUMN', help = 'Specify the column when the message should be wrapped.')
|
||||
opts.add_argumented( ['-b', '--bubble', '--balloon'], arg = 'STYLE', help = 'Select a balloon style.')
|
||||
|
|
Loading…
Reference in a new issue