-usage()
-{
- echo "fortune -- a simple awk/POSIX sh implementation of fortune"
- echo ""
- echo "\t-h --help show this help message"
- echo "\t--file=\$FILE specify path to cookie file"
+usage() {
+ echo 'Usage: fortune [OPTIONS]
+a simple POSIX sh/awk implementation of fortune
+
+ -h, --help show this help message
+ -l, --list list installed cookie files
+ -c FILE, --cookie FILE specify cookie file
+ -n LENGTH, --min LENGTH specify min fortune length
+ -N LENGTH, --max LENGTH specify max fortune length
+
+ fortune looks for fortunes in $FORTUNEDIR, which defaults to
+ /usr/share/fortune.
+
+Exit codes:
+ 0 success
+ 1 generic error
+ 2 argument parsing error'