From 73c518e2606d863d457df418ef4e59248704fda7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mattias=20Andr=C3=A9e?= Date: Sat, 25 Aug 2012 20:18:53 +0200 Subject: [PATCH] bash completion recognises --bubble + adding options --symlist (-L), ++symlist (+L) and --bubblelist (-B) --- completion/bash-completion.sh | 2 +- manuals/ponysay.texinfo | 5 +++++ ponysay | 6 +++--- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/completion/bash-completion.sh b/completion/bash-completion.sh index 62e1d407..4f59a4aa 100644 --- a/completion/bash-completion.sh +++ b/completion/bash-completion.sh @@ -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" ) ) diff --git a/manuals/ponysay.texinfo b/manuals/ponysay.texinfo index 8d6f3ff1..d7b7ef22 100644 --- a/manuals/ponysay.texinfo +++ b/manuals/ponysay.texinfo @@ -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 diff --git a/ponysay b/ponysay index b21c57d2..ccdd244a 100755 --- a/ponysay +++ b/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.')