From 4c1a94e2734aed9eeab14b2c9ea105f6e5a811c7 Mon Sep 17 00:00:00 2001 From: Scott Johnson Date: Tue, 17 Sep 2019 15:02:03 -0700 Subject: Expand getopt_long option string to multiple lines This will make future diffs easier to read and merge, since adding and removing options will show up as entire lines that change instead of a few characters in the middle of the line. --- c_emulator/riscv_sim.c | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/c_emulator/riscv_sim.c b/c_emulator/riscv_sim.c index 6188e96..f8f0820 100644 --- a/c_emulator/riscv_sim.c +++ b/c_emulator/riscv_sim.c @@ -196,7 +196,25 @@ char *process_args(int argc, char **argv) int c, idx = 1; uint64_t ram_size = 0; while(true) { - c = getopt_long(argc, argv, "admCIispz:b:t:hr:T:V::v::l:", options, &idx); + c = getopt_long(argc, argv, + "a" + "d" + "m" + "C" + "I" + "i" + "s" + "p" + "z:" + "b:" + "t:" + "h" + "r:" + "T:" + "V::" + "v::" + "l:" + , options, &idx); if (c == -1) break; switch (c) { case 'a': -- cgit v1.1