mirror of
https://github.com/BurntSushi/ripgrep.git
synced 2025-12-23 06:30:57 +00: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
1 changed files with 5 additions and 5 deletions
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…
Add table
Add a link
Reference in a new issue