From 411048976915c498ff4477ff2ffb7eaa1029affd Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Wed, 28 Oct 2015 13:17:53 -0400 Subject: src/main.sh: Add -o option --- 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 Log output to 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 -- cgit v0.9.1