Enable -l for log option

This commit is contained in:
Dr-Carlos 2022-04-06 07:28:28 +09:30
parent 23275d99c7
commit 5f82ad29e7
1 changed files with 2 additions and 2 deletions

View File

@ -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;