summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main.sh b/src/main.sh
index 6c31959..c4b7491 100644
--- a/src/main.sh
+++ b/src/main.sh
@@ -31,6 +31,7 @@ Options:
-V Display version information
-i {cli|tui} Select either a textual user interface or a command line
interface (default: cli)
+ -o <file> Log output to <file>
EOF
}
@@ -51,7 +52,7 @@ main()
local ui='cli'
unset OPTARG
- while getopts 'hVi:' opt; do
+ while getopts 'hVi:o:' opt; do
case "${opt}" in
'h')
help
@@ -64,6 +65,9 @@ main()
'i')
ui="${OPTARG}"
;;
+ 'o')
+ log_init "${OPTARG}"
+ ;;
esac
unset OPTARG
done