diff options
author | Emile <hanemile@protonmail.com> | 2020-02-22 16:04:32 +0100 |
---|---|---|
committer | Emile <hanemile@protonmail.com> | 2020-02-22 16:04:32 +0100 |
commit | 7c269b67397da6c2f3ec666f7c16ba52f726435c (patch) | |
tree | fa48135995722439691d001fc885109d49f20086 | |
parent | 9705b67a12bbfcd0706843a0e24ec8eed19a7a79 (diff) |
print r2 command in verbose mode only
-rw-r--r-- | src/cmd.go | 6 |
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) |