summaryrefslogtreecommitdiff
path: root/etckeeper
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2012-01-02 12:15:09 -0400
committerJoey Hess <joey@kitenet.net>2012-01-02 12:15:09 -0400
commit20668f6626825b752dcb7b11ae3c90372cc20fb7 (patch)
treeeed2012eb20074c809423447cffeaffaffb7ba22 /etckeeper
parent394ce91be87faae95d66baaf4cdb486970df719f (diff)
Support -h and --help. Closes: #654188
Diffstat (limited to 'etckeeper')
-rwxr-xr-xetckeeper3
1 files changed, 3 insertions, 0 deletions
diff --git a/etckeeper b/etckeeper
index 89656b7..22e3fed 100755
--- a/etckeeper
+++ b/etckeeper
@@ -56,6 +56,9 @@ fi
if [ -z "$1" ]; then
usage
+elif [ "x$1" = "x-h" ] || [ "x$1" = "x--help" ]; then
+ man etceeper || echo "Usage: etckeeper command [-d directory]" >&2
+ exit 0
fi
command="$1"
shift 1