+while getopts ":hH:m:" options; do
+ case $options in
+ H) HELPER=$OPTARG;;
+ m) MODE=$OPTARG;;
+ h) usage;
+ exit 0;;
+ \?) usage
+ exit 1;;
+ *) usage
+ exit 1;;
+ esac
+done
+shift $(($OPTIND - 1))
+
+for trace in $@;
+do
+ TRACEFILE="$TRACEFILE -t $trace "
+done
+
+if [ "$MODE" = "text" ]; then
+ ARGS="-L lttv/modules/text/.libs -m textDump"
+else
+ ARGS="-L lttv/modules/gui/lttvwindow/lttvwindow/.libs -m lttvwindow "\
+"-L lttv/modules/gui/controlflow/.libs -m guicontrolflow "\
+"-L lttv/modules/gui/detailedevents/.libs -m guievents "\
+"-L lttv/modules/gui/tracecontrol/.libs -m guitracecontrol "\
+"-L lttv/modules/gui/statistics/.libs -m guistatistics "\
+"-L lttv/modules/gui/resourceview/.libs -m resourceview "\
+"-L lttv/modules/gui/filter/.libs -m guifilter "\
+"-L lttv/modules/gui/interrupts/.libs -m interrupts "\
+"-L lttv/modules/gui/histogram/.libs -m guihistogram"
+fi
+