Merge pull request 'Enable -l for log option' (#2) from Dr-Carlos/fxos:master into master

Reviewed-on: https://gitea.planet-casio.com/Lephenixnoir/fxos/pulls/2
This commit is contained in:
Lephenixnoir 2022-04-06 10:36:19 +02:00
commit 9e37c2685c
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;