actube -h shows some help about debug levels

This commit is contained in:
2022-09-04 12:30:08 +02:00
parent 0eb3e16932
commit 6f4ba62080
3 changed files with 89 additions and 54 deletions

View File

@ -124,10 +124,21 @@ static int parse_args (int argc, char *argv[], struct bootcfg * bootcfg)
case '?':
exit(EXIT_FAILURE);
default:
case 'h':
printf("%s: -vcmh\n",argv[0]);
case 'h':
{
FILE *out = stdout;
fprintf(out, "Usage:");
fprintf(out, "%s [ options ] ",argv[0]);
fprintf(out, "\nOptions are:\n");
fprintf(out, " -c <file>: specify a config file\n");
fprintf(out, " -p <path>: specify a ipath where to search for modules\n");
fprintf(out, " -v: print version information\n");
fprintf(out, " -d <level>: set debug level, multiple -d's are possible\n");
fprintf(out, " <level> can be one of these:\n");
cw_dbg_print_help(out," ");
exit(EXIT_SUCCESS);
break;
}
}
}
return 0;