diff options
author | julien | 2009-07-07 16:38:54 +0200 |
---|---|---|
committer | julien | 2009-07-07 16:38:54 +0200 |
commit | 24e26c2b661c603c07e50bb1160ce0e0519e41c3 (patch) | |
tree | 5daa564c3a71c5e09461a1d4dcfa00ce95543ac1 /shhelp.sh | |
parent | Made a working trains script. (diff) | |
download | shbot-24e26c2b661c603c07e50bb1160ce0e0519e41c3.tar.gz shbot-24e26c2b661c603c07e50bb1160ce0e0519e41c3.tar.bz2 shbot-24e26c2b661c603c07e50bb1160ce0e0519e41c3.zip |
Fixed the trains script to handle canceled trains and wrote the help command.
Diffstat (limited to 'shhelp.sh')
-rwxr-xr-x | shhelp.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/shhelp.sh b/shhelp.sh new file mode 100755 index 0000000..27d1b8f --- /dev/null +++ b/shhelp.sh @@ -0,0 +1,14 @@ +#!/bin/bash -ex + +case "$1" in + "help") echo "help <TOPIC> : Prints help about TOPIC." + ;; + "trains") echo "trains [STATION] : Prints the next trains that will stop at Courbevoie's station." + echo " When provided, only results that concerns STATION are advertised." + ;; + *) echo "The following commands are available : help trains" + ;; +esac + +exit 0 + |