summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGabriel <g2p.code@gmail.com>2017-07-07 17:44:26 +0200
committerAndrew Gallant <jamslam@gmail.com>2017-07-07 12:18:44 -0400
commit9b3921098a6804879a4425716bfb72a8a003a313 (patch)
treeb62fa6f7ddc13b2d0691ff73d767a6d867806796
parentad262f114623679f701bb836996977fc57f5dd91 (diff)
Tweak long_version features output
This reuses the systemd convention of putting flags on a separate line. All credit to okdana for the implementation. Addresses #524.
-rw-r--r--src/app.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/app.rs b/src/app.rs
index 52d9d28d..6ca3489c 100644
--- a/src/app.rs
+++ b/src/app.rs
@@ -199,18 +199,18 @@ lazy_static! {
let mut features: Vec<&str> = vec![];
if cfg!(feature = "avx-accel") {
- features.push("+avx-accel");
+ features.push("+AVX");
} else {
- features.push("-avx-accel");
+ features.push("-AVX");
}
if cfg!(feature = "simd-accel") {
- features.push("+simd-accel");
+ features.push("+SIMD");
} else {
- features.push("-simd-accel");
+ features.push("-SIMD");
}
- format!("{}, with features (+/-): {}", crate_version!(), features.join(" "))
+ format!("{}\n{}", crate_version!(), features.join(" "))
};
static ref USAGES: HashMap<&'static str, Usage> = {