Debug flag is now inserted at the beginning of the arguments.
This commit is contained in:
parent
d60c558cda
commit
06c344c9d0
1 changed files with 1 additions and 1 deletions
|
@ -166,7 +166,7 @@ fn main() {
|
||||||
s => {
|
s => {
|
||||||
let mut subcommand_args = find_args(s);
|
let mut subcommand_args = find_args(s);
|
||||||
if is_debug && subcommand_args.iter().find(is_debug_flag).is_none() {
|
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))
|
match Command::new(format!("imag-{}", s))
|
||||||
.stdin(Stdio::inherit())
|
.stdin(Stdio::inherit())
|
||||||
|
|
Loading…
Reference in a new issue