diff options
author | Mario Krehl <mkrehl@science-computing.de> | 2016-09-07 11:24:36 +0200 |
---|---|---|
committer | Mario Krehl <mkrehl@science-computing.de> | 2016-09-07 11:24:36 +0200 |
commit | e813ab9e3a58c67e7322dd4c74d8b49ac162a569 (patch) | |
tree | a4e3885b467e681ce272ebcebd130dfd88411858 /bin | |
parent | 12f9175700ce9da71de1c37fa3607b9440bc5828 (diff) |
Pretty output of --versions
Diffstat (limited to 'bin')
-rw-r--r-- | bin/src/main.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/src/main.rs b/bin/src/main.rs index f8259d52..70aaf5d0 100644 --- a/bin/src/main.rs +++ b/bin/src/main.rs @@ -159,7 +159,7 @@ fn main() { let v = Command::new(format!("imag-{}",command)).arg("--version").output(); match v { Ok(v) => match String::from_utf8(v.stdout) { - Ok(s) => format!("{} -> {}", command, s), + Ok(s) => format!("{:10} -> {}", command, s), Err(e) => format!("Failed calling {} -> {:?}", command, e), }, Err(e) => format!("Failed calling {} -> {:?}", command, e), @@ -169,7 +169,7 @@ fn main() { } for versionstring in result.into_iter().map(|handle| handle.join()) { - println!("{}", versionstring); + print!("{}", versionstring); } } |