From 5f82ad29e7a84050db1c66c7fbd53b6f18a21bdc Mon Sep 17 00:00:00 2001 From: Dr-Carlos Date: Wed, 6 Apr 2022 07:28:28 +0930 Subject: [PATCH] Enable -l for log option --- shell/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shell/main.cpp b/shell/main.cpp index a9cf97a..7b4a21d 100644 --- a/shell/main.cpp +++ b/shell/main.cpp @@ -213,7 +213,7 @@ space at ROM and ROM_P2. Options: -e, --execute=CMD execute CMD and exit, can be used multiple times --norc do not execute any fxosrc files - --log=LEVEL set log level (debug, warning, error; default warning) + -l, --log=LEVEL set log level (debug, warning, error; default warning) -h, --help display this help and exit )"; @@ -233,7 +233,7 @@ static void parse_options(int argc, char **argv) { int opt, option_index; while (1) { /* Get the next command-line option */ - opt = getopt_long(argc, argv, "he:", long_options, &option_index); + opt = getopt_long(argc, argv, "he:l:", long_options, &option_index); if (opt == -1) break;