Skip to content

Commit

Permalink
Tweak long_version features output
Browse files Browse the repository at this point in the history
This reuses the systemd convention of putting flags on a separate line.
All credit to okdana for the implementation.  Addresses #524.
  • Loading branch information
g2p authored and BurntSushi committed Jul 7, 2017
1 parent ad262f1 commit 9b39210
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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> = {
Expand Down

0 comments on commit 9b39210

Please sign in to comment.