diff options
-rwxr-xr-x | functions/arguments.sh | 2 | ||||
-rwxr-xr-x | functions/man.sh | 17 | ||||
-rwxr-xr-x | helpers/lh | 2 |
3 files changed, 19 insertions, 2 deletions
diff --git a/functions/arguments.sh b/functions/arguments.sh index b2e4c92..bbc439c 100755 --- a/functions/arguments.sh +++ b/functions/arguments.sh @@ -43,7 +43,7 @@ Arguments () ;; -h|--help) - Help + Man shift ;; diff --git a/functions/man.sh b/functions/man.sh new file mode 100755 index 0000000..72213e2 --- /dev/null +++ b/functions/man.sh @@ -0,0 +1,17 @@ +#!/bin/sh + +# man.sh - print man information +# Copyright (C) 2006-2009 Daniel Baumann <daniel@debian.org> +# +# live-helper comes with ABSOLUTELY NO WARRANTY; for details see COPYING. +# This is free software, and you are welcome to redistribute it +# under certain conditions; see COPYING for details. + +Man () +{ + if [ -x "$(which man 2>/dev/null)" ] + then + man $(basename ${0}) + exit 0 + fi +} @@ -31,7 +31,7 @@ USAGE="FIXME" case "${1}" in -h|--help) - Help + Man ;; -u|--usage) |