Skip to content

Commit e4975fc

Browse files
pmundkurTimmmm
authored andcommitted
Fix the '--help' option.
It fixes a regression introduced in 17cfdec which resulted in a confusing `No elf file provided.` message before the help text.
1 parent 5872942 commit e4975fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

c_emulator/riscv_sim.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ static struct option options[] = {
102102
#ifdef RVFI_DII
103103
{"rvfi-dii", required_argument, 0, 'r' },
104104
#endif
105-
{"help", no_argument, 0, 1 },
105+
{"help", no_argument, 0, 'h' },
106106
{"config", required_argument, 0, 'c' },
107107
{"print-default-config", no_argument, 0, OPT_PRINT_CONFIG},
108108
{"trace", optional_argument, 0, 'v' },

0 commit comments

Comments
 (0)