1
0
mirror of https://github.com/BurntSushi/ripgrep.git synced 2025-04-19 09:02:15 +02:00

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.
This commit is contained in:
Gabriel 2017-07-07 17:44:26 +02:00 committed by Andrew Gallant
parent ad262f1146
commit 9b3921098a

View File

@ -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> = {