From 7c269b67397da6c2f3ec666f7c16ba52f726435c Mon Sep 17 00:00:00 2001 From: Emile Date: Sat, 22 Feb 2020 16:04:32 +0100 Subject: print r2 command in verbose mode only --- src/cmd.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/cmd.go') diff --git a/src/cmd.go b/src/cmd.go index 3a488e7..9e75478 100644 --- a/src/cmd.go +++ b/src/cmd.go @@ -8,8 +8,10 @@ import ( func r2cmd(r2p *r2pipe.Pipe, input string) string { - // print the command for debugging purposes - log.Printf("> %s", input) + if *verbose == true { + // print the command for debugging purposes + log.Printf("> %s", input) + } // send a command buf1, err := r2p.Cmd(input) -- cgit 1.4.1