From 73f2f9f31ba8983a5892a4673a3a95f26923cd6f Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Fri, 28 Jun 2013 13:56:18 +0200 Subject: [PATCH] Add some comments --- src/bin/dotify | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/bin/dotify b/src/bin/dotify index 35e9432..07342f6 100755 --- a/src/bin/dotify +++ b/src/bin/dotify @@ -86,16 +86,19 @@ for arg in "$@"; do fi done +# Show help and exit if help arguments or command are given. if [ -n "$HELP" ] || [ "$command" == "help" ]; then dotify-help exit fi +# Show version info and exit if version arguments or command are given. if [ -n "$VERSION" ] || [ "$command" == "version" ]; then dotify-help | head -1 exit fi +# Deal with the commands. case "$command" in "info" ) dotify-info