Factor out common usage message text.
Signed-off-by: Gina Trapani <ginatrapani@gmail.com>
This commit is contained in:
6
todo.sh
6
todo.sh
@@ -16,10 +16,12 @@ EndVersion
|
|||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
oneline_usage="todo.sh [-fhpantvV] [-d todo_config] action [task_number] [task_description]"
|
||||||
|
|
||||||
usage()
|
usage()
|
||||||
{
|
{
|
||||||
sed -e 's/^ //' <<EndUsage
|
sed -e 's/^ //' <<EndUsage
|
||||||
Usage: todo.sh [-fhpantvV] [-d todo_config] action [task_number] [task_description]
|
Usage: $oneline_usage
|
||||||
Try 'todo.sh -h' for more information.
|
Try 'todo.sh -h' for more information.
|
||||||
EndUsage
|
EndUsage
|
||||||
exit 1
|
exit 1
|
||||||
@@ -29,7 +31,7 @@ EndUsage
|
|||||||
help()
|
help()
|
||||||
{
|
{
|
||||||
sed -e 's/^ //' <<EndHelp
|
sed -e 's/^ //' <<EndHelp
|
||||||
Usage: todo.sh [-fhpantvV] [-d todo_config] action [task_number] [task_description]
|
Usage: $oneline_usage
|
||||||
|
|
||||||
Actions:
|
Actions:
|
||||||
add "THING I NEED TO DO +project @context"
|
add "THING I NEED TO DO +project @context"
|
||||||
|
|||||||
Reference in New Issue
Block a user