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:
parent
ad262f1146
commit
9b3921098a
10
src/app.rs
10
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> = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user