about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEmile <hanemile@protonmail.com>2020-02-22 16:04:32 +0100
committerEmile <hanemile@protonmail.com>2020-02-22 16:04:32 +0100
commit7c269b67397da6c2f3ec666f7c16ba52f726435c (patch)
treefa48135995722439691d001fc885109d49f20086
parent9705b67a12bbfcd0706843a0e24ec8eed19a7a79 (diff)
print r2 command in verbose mode only
-rw-r--r--src/cmd.go6
1 files changed, 4 insertions, 2 deletions
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)