Skip to content

Commit efee7ab

Browse files
committed
main.rs bug fixed related with -R
1 parent bc7aca1 commit efee7ab

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/mwemu/src/main.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ fn main() {
9191
.arg(clap_arg!("flags", "", "flags", "trace the flags hex value in every instruction."))
9292
.arg(clap_arg!("maps", "M", "maps", "select the memory maps folder", "PATH"))
9393
.arg(clap_arg!("trace_registers", "r", "trace_registers", "print the register values in every step."))
94-
.arg(clap_arg!("trace_register", "R", "trace_register", "trace a specific register in every step, value and content", "REGISTER1,REGISTER2"))
94+
.arg(clap_arg!("register", "R", "trace_register", "trace a specific register in every step, value and content", "REGISTER1,REGISTER2"))
9595
.arg(clap_arg!("console", "c", "console", "select in which moment will spawn the console to inspect.", "NUMBER"))
9696
.arg(clap_arg!("loops", "l", "loops", "show loop interations, it is slow."))
9797
.arg(clap_arg!("nocolors", "n", "nocolors", "print without colors for redirecting to a file >out"))
@@ -187,6 +187,7 @@ fn main() {
187187
.to_string();
188188
emu.cfg.reg_names = regs.split(',').map(|x| x.to_string()).collect();
189189
}
190+
190191
if matches.is_present("string") {
191192
emu.cfg.trace_string = true;
192193
emu.cfg.string_addr = u64::from_str_radix(

0 commit comments

Comments
 (0)