From 1e4a96730da70fcfa3b8c153874cbdebad0f9829 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Sun, 27 Jan 2013 19:41:28 +0100 Subject: o Starting on a style guide. app-conf: Adding 'import' command. app-cat-conf: Adding support for multiple -f flags. The default files can be switched off. A file named "-" is the same as /dev/stdin. app: Adding a way to enable debugging. app-install-file: Import any configuration delivered with the package. --- app | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'app') diff --git a/app b/app index a70b026..8fcc585 100755 --- a/app +++ b/app @@ -14,6 +14,7 @@ usage() { echo " operate" >&2 echo "" >&2 echo "Run $0 -h for more help" >&2 + exit 1 } PRG="$0" @@ -32,16 +33,18 @@ APPSH_HOME=`cd "$APPSH_HOME" && pwd` . $APPSH_HOME/lib/common +echo_debug=no while getopts "h" opt do case $opt in h) usage - exit 1 + ;; + D) + echo_debug=yes ;; \?) usage - exit 1 ;; esac done -- cgit v1.2.3