8 Commits

Author SHA1 Message Date
Lucas Possatti
e83b9f1567 Warn the user when an unknown option is provided 2015-06-24 21:01:29 -03:00
Lucas Possatti
640e61366b Fix the bug ignore the user provided message
A bug was introduced in commit 1fc82b6, when word wrapping was
introduced. The script was ignoring the user provided message.
What made it hang waiting for user input.

The bug is fixed now. Who could imagine that just a pair of quote
marks could break the script like that...
2015-06-24 10:56:53 -03:00
Lucas Possatti
e05f1129db Add an option to make the pokémon think
Option:
  -t, --think
    Make the pokémon think the message, instead of saying it.
2015-06-23 16:05:17 -03:00
Lucas Possatti
1fc82b622d Add an option to specify where to wrap the message
The option is:
  -w, --word-wrap COLUMN
    Specify roughly where messages should be wrapped.
2015-06-23 15:53:40 -03:00
Lucas Possatti
a59f1b32e6 Correct typo (avaiable for available) 2015-06-14 03:41:34 -03:00
Lucas Possatti
b72f1c5327 Add an option to list all pokémon available
The option was added like this:
 -l, --list
2015-06-14 03:38:06 -03:00
Lucas Possatti
da15ecfcb7 Add a variety of options to the main script
The options added are:
 -p, --pokemon POKEMON_NAME
 -f, --file COW_FILE
 -n, --no-name
 -h, --help
2015-06-14 02:39:45 -03:00
Lucas Possatti
e28cf1f7fd Create a shell script version of 'pokemonsay'
I didn't like the script written in python. I feel like I didn't do
it quite right. The mess with pipes confuses me. It is so much
simpler to handle pipes using shell script, in my opnion.

The shell script version of 'pokemonsay' is tiny if compared to the
python version. And it does the same thing.
2015-06-11 00:13:01 -03:00