Faster here document outputs. (Help/Usage messages)
This commit is contained in:
9
todo.sh
9
todo.sh
@@ -4,7 +4,8 @@
|
|||||||
# Place the .todo/config file in your home directory or use the -d option for a custom location.
|
# Place the .todo/config file in your home directory or use the -d option for a custom location.
|
||||||
|
|
||||||
[ -f VERSION-FILE ] && . VERSION-FILE || VERSION="@DEV_VERSION@"
|
[ -f VERSION-FILE ] && . VERSION-FILE || VERSION="@DEV_VERSION@"
|
||||||
version() { sed -e 's/^ //' <<EndVersion
|
version() {
|
||||||
|
cat <<-EndVersion
|
||||||
TODO.TXT Command Line Interface v$VERSION
|
TODO.TXT Command Line Interface v$VERSION
|
||||||
|
|
||||||
First release: 5/11/2006
|
First release: 5/11/2006
|
||||||
@@ -26,7 +27,7 @@ oneline_usage="$TODO_SH [-fhpantvV] [-d todo_config] action [task_number] [task_
|
|||||||
|
|
||||||
usage()
|
usage()
|
||||||
{
|
{
|
||||||
sed -e 's/^ //' <<EndUsage
|
cat <<-EndUsage
|
||||||
Usage: $oneline_usage
|
Usage: $oneline_usage
|
||||||
Try '$TODO_SH -h' for more information.
|
Try '$TODO_SH -h' for more information.
|
||||||
EndUsage
|
EndUsage
|
||||||
@@ -35,7 +36,7 @@ EndUsage
|
|||||||
|
|
||||||
shorthelp()
|
shorthelp()
|
||||||
{
|
{
|
||||||
sed -e 's/^ //' <<EndHelp
|
cat <<-EndHelp
|
||||||
Usage: $oneline_usage
|
Usage: $oneline_usage
|
||||||
|
|
||||||
Actions:
|
Actions:
|
||||||
@@ -69,7 +70,7 @@ EndHelp
|
|||||||
|
|
||||||
help()
|
help()
|
||||||
{
|
{
|
||||||
sed -e 's/^ //' <<EndHelp
|
cat <<-EndHelp
|
||||||
Usage: $oneline_usage
|
Usage: $oneline_usage
|
||||||
|
|
||||||
Actions:
|
Actions:
|
||||||
|
|||||||
Reference in New Issue
Block a user