Namespace global variables

This commit is contained in:
2014-08-21 03:02:35 +01:00
parent 6bddccd199
commit 264e362872
6 changed files with 23 additions and 23 deletions

View File

@@ -1,18 +1,18 @@
dotify-main-dispatcher() {
# Show help and exit if help arguments or command are given.
if [ -n "$ARG_HELP" ] || [ "$COMMAND" == "help" ]; then
if [ -n "$DOTIFY_ARG_HELP" ] || [ "$DOTIFY_COMMAND" == "help" ]; then
dotify-command-help
exit
fi
# Show version info and exit if version arguments or command are given.
if [ -n "$ARG_VERSION" ] || [ "$COMMAND" == "version" ]; then
if [ -n "$DOTIFY_ARG_VERSION" ] || [ "$DOTIFY_COMMAND" == "version" ]; then
dotify-command-help | head -1
exit
fi
# Deal with the commands.
case "$COMMAND" in
case "$DOTIFY_COMMAND" in
"info" )
dotify-command-info
;;