diff options
author | Gabriel <g2p.code@gmail.com> | 2017-07-07 17:44:26 +0200 |
---|---|---|
committer | Andrew Gallant <jamslam@gmail.com> | 2017-07-07 12:18:44 -0400 |
commit | 9b3921098a6804879a4425716bfb72a8a003a313 (patch) | |
tree | b62fa6f7ddc13b2d0691ff73d767a6d867806796 | |
parent | ad262f114623679f701bb836996977fc57f5dd91 (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.rs | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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> = { |