From 2c7a659b8a8d0d7a082aed01ab44e5710841412b Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Sun, 14 Oct 2012 11:26:54 +0200 Subject: o Adjusting app-conf and app-operate after refactoring. --- .app/lib/app-conf | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to '.app/lib/app-conf') diff --git a/.app/lib/app-conf b/.app/lib/app-conf index fa705e4..29b74dd 100644 --- a/.app/lib/app-conf +++ b/.app/lib/app-conf @@ -111,19 +111,13 @@ method_conf_usage() { } method_conf() { - local name - local instance + local name="$1"; shift + local instance="$1"; shift local mode="list" - while getopts "n:i:s:d:" opt + while getopts "s:d:" opt do case $opt in - n) - name="$OPTARG" - ;; - i) - instance="$OPTARG" - ;; d) mode="delete" key="$OPTARG" -- cgit v1.2.3