summaryrefslogtreecommitdiff
path: root/src/aif.sh
diff options
context:
space:
mode:
authorDieter Plaetinck <dieter@plaetinck.be>2010-03-10 22:24:49 +0100
committerDieter Plaetinck <dieter@plaetinck.be>2010-03-10 22:24:49 +0100
commit05e95cfbcad5965df5dc2c7e98784ebb03ceed61 (patch)
treedbbcbbc521ed760692ede91124fda5c29d77c468 /src/aif.sh
parentec6b9a0968877cd904488c2770bf893df9997481 (diff)
migrate everything to new approach where lib-ui.sh contains just some aif-specific things. all the generic UI stuff is now a separate project called libui-sh
Diffstat (limited to 'src/aif.sh')
-rwxr-xr-xsrc/aif.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/aif.sh b/src/aif.sh
index 45399ae..2f9d31b 100755
--- a/src/aif.sh
+++ b/src/aif.sh
@@ -17,6 +17,7 @@ export LC_COLLATE=C # for consistent sorting behavior
# load the lib-ui, it is one we need everywhere so we must load it early.
source $LIB_CORE/libs/lib-ui.sh || ( echo "Something went wrong while sourcing library $LIB_CORE/libs/lib-ui.sh" >&2 && exit 2)
+ui_init
# load the lib-flowcontrol. we also need some of it's functions early (like usage()).
source $LIB_CORE/libs/lib-flowcontrol.sh || ( echo "Something went wrong while sourcing library $LIB_CORE/libs/lib-flowcontrol.sh" >&2 && exit 2)
# lib-misc. we need it early, at least for check_is_in whis is used by the debug function.
@@ -106,6 +107,7 @@ do
[ -z "$OPTARG" ] && usage && exit 1 #TODO: check if it's necessary to do this. the ':' in $var_OPTS_STRING might be enough
[ "$OPTARG" != cli -a "$OPTARG" = !dia ] && die_error "-i must be dia or cli"
arg_ui_type=$OPTARG
+ ui_init
;;
d)
export DEBUG=1