aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2012-08-25 20:18:53 +0200
committerMattias Andrée <maandree@operamail.com>2012-08-25 20:18:53 +0200
commit73c518e2606d863d457df418ef4e59248704fda7 (patch)
treea5017738feff16e49c08495c418fdcc24b49ab83
parenta201c8de73fdbc78fbbb42ee1f99a311e257eacc (diff)
downloadponysay-73c518e2606d863d457df418ef4e59248704fda7.tar.gz
ponysay-73c518e2606d863d457df418ef4e59248704fda7.tar.bz2
ponysay-73c518e2606d863d457df418ef4e59248704fda7.zip
bash completion recognises --bubble + adding options --symlist (-L), ++symlist (+L) and --bubblelist (-B)
-rw-r--r--completion/bash-completion.sh2
-rw-r--r--manuals/ponysay.texinfo5
-rwxr-xr-xponysay6
3 files changed, 9 insertions, 4 deletions
diff --git a/completion/bash-completion.sh b/completion/bash-completion.sh
index 62e1d40..4f59a4a 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 8d6f3ff..d7b7ef2 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 b21c57d..ccdd244 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.')