diff --git a/nemu/src/monitor/monitor.c b/nemu/src/monitor/monitor.c index bb5cea1..69d938b 100644 --- a/nemu/src/monitor/monitor.c +++ b/nemu/src/monitor/monitor.c @@ -73,8 +73,8 @@ static int parse_args(int argc, char *argv[]) { {"log" , required_argument, NULL, 'l'}, {"diff" , required_argument, NULL, 'd'}, {"port" , required_argument, NULL, 'p'}, - {"help" , no_argument , NULL, 'h'}, {"elf" , required_argument, NULL, 'f'}, + {"help" , no_argument , NULL, 'h'}, {0 , 0 , NULL, 0 }, }; int o; @@ -92,7 +92,7 @@ static int parse_args(int argc, char *argv[]) { printf("\t-l,--log=FILE output log to FILE\n"); printf("\t-d,--diff=REF_SO run DiffTest with reference REF_SO\n"); printf("\t-p,--port=PORT run DiffTest with port PORT\n"); - printf("\t-f,--elf=PORT elf file with debug info\n"); + printf("\t-f,--elf=FILE elf file with debug info\n"); printf("\n"); exit(0); }