diff options
author | geemili <minergeemili@gmail.com> | 2016-07-19 14:11:36 -0500 |
---|---|---|
committer | geemili <minergeemili@gmail.com> | 2016-07-19 14:11:36 -0500 |
commit | 805ff69e2b34c7b57b2a68d52f5d54f4250188ca (patch) | |
tree | 6e88a2c7e68fed3ef4f1cc2886b0f76311e9a4e2 /bin | |
parent | b12dbcd75ef233db08f1e8ff4e8a4a4253fbc02a (diff) |
Fixed debug appearing twice
Diffstat (limited to 'bin')
-rw-r--r-- | bin/src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/src/main.rs b/bin/src/main.rs index 17fdd21e..37f343f5 100644 --- a/bin/src/main.rs +++ b/bin/src/main.rs @@ -159,7 +159,7 @@ fn main() { s => { let mut subcommand_args = find_args(s); - if is_debug { + if is_debug && subcommand_args.filter(|x| x == "debug").count() == 0 { subcommand_args.push(String::from("--debug")); } match Command::new(format!("imag-{}", s)) |