Fixed debug appearing twice

This commit is contained in:
geemili 2016-07-19 14:11:36 -05:00
parent b12dbcd75e
commit 805ff69e2b

View file

@ -159,7 +159,7 @@ fn main() {
s => { s => {
let mut subcommand_args = find_args(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")); subcommand_args.push(String::from("--debug"));
} }
match Command::new(format!("imag-{}", s)) match Command::new(format!("imag-{}", s))