Debug flag is now inserted at the beginning of the arguments.

This commit is contained in:
LeRoyce Pearson 2016-07-21 22:26:22 +00:00
parent d60c558cda
commit 06c344c9d0

View file

@ -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())