From 7f5c8fb3e17e37a29481de57d4d2ee7716fcbff9 Mon Sep 17 00:00:00 2001 From: Emil Sit Date: Fri, 20 Mar 2009 11:00:53 +0800 Subject: [PATCH] Add a short help message to be called for -h. Put the old help message under a "help" command. The short help message just lists the available commands and should fit on a single screen. Signed-off-by: Gina Trapani --- todo.sh | 41 +++++++++++++++++++++++++++++++++++++++-- 1 file changed, 39 insertions(+), 2 deletions(-) diff --git a/todo.sh b/todo.sh index bd04d5d..0b07b9e 100755 --- a/todo.sh +++ b/todo.sh @@ -27,6 +27,37 @@ EndUsage exit 1 } +shorthelp() +{ + sed -e 's/^ //' <