From 06c344c9d0f1f9afb86febee1cc00bdca19dcc8e Mon Sep 17 00:00:00 2001 From: LeRoyce Pearson Date: Thu, 21 Jul 2016 22:26:22 +0000 Subject: [PATCH] Debug flag is now inserted at the beginning of the arguments. --- bin/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/src/main.rs b/bin/src/main.rs index 838b132a..c3847e65 100644 --- a/bin/src/main.rs +++ b/bin/src/main.rs @@ -166,7 +166,7 @@ fn main() { s => { let mut subcommand_args = find_args(s); if is_debug && subcommand_args.iter().find(is_debug_flag).is_none() { - subcommand_args.push(String::from(DBG_FLAG)); + subcommand_args.insert(0, String::from(DBG_FLAG)); } match Command::new(format!("imag-{}", s)) .stdin(Stdio::inherit())