aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/app-conf15
1 files changed, 14 insertions, 1 deletions
diff --git a/bin/app-conf b/bin/app-conf
index cd127a2..96e52cf 100755
--- a/bin/app-conf
+++ b/bin/app-conf
@@ -151,9 +151,22 @@ case "$command" in
app-cat-conf -l "$location" | format_conf
;;
set)
+ while getopts "f:" opt
+ do
+ case $opt in
+ f)
+ file="$OPTARG"
+ shift 2;
+ ;;
+ *)
+ usage "Unknown argument: $OPTARG"
+ ;;
+ esac
+ done
+
if [ $# -ne 2 ]
then
- usage "Expected exactly two arguments"
+ usage "Expected exactly two arguments."
fi
conf_set "$file" "$1" "$2"