Finished pretty-formatting of extra info in help message (about version & enabled features.)

Fortune for rematch's current commit: Blessing − 吉
old-interface-extra-help-info
Avril 6 days ago
parent c830b1728b
commit 003986677f
Signed by: flanchan
GPG Key ID: 284488987C31F630

@ -168,14 +168,14 @@ fn main() -> eyre::Result<()>
println!("");
println!("Enabled Features:");
if cfg!(feature="perl") {
println!("{}\t\t\tEnable PCRE2 (extended) regular-expressions.\n\t\t\tNote that PCRE2 regex engine matches on *bytes*, not *characters*; meaning if a match cuts a vlid UTF8 codepoint into an invalid one, the output will replace the invalid characters with U+FFFD REPLACEMENT CHARACTER.", disjoint!["+", "perl"].red());
println!("{}\t\t\tEnable PCRE2 (extended) regular-expressions.\n\t\t\tNote that PCRE2 regex engine matches on *bytes*, not *characters*; meaning if a match cuts a vlid UTF8 codepoint into an invalid one, the output will replace the invalid characters with U+FFFD REPLACEMENT CHARACTER.", disjoint!["+", "perl"].bright_red());
} else {
println!("{}\t\t\tPCRE2 (extended) features are disabled; a faster but less featureful regular expression engine (that matches on UTF8 strings instead of raw bytes) is used instead.", disjoint!["-", "perl"].bright_blue());
println!("{}\t\t\tPCRE2 (extended) features are disabled; a faster but less featureful regular expression engine (that matches on UTF8 strings instead of raw bytes) is used instead.", disjoint!["-", "perl"].blue());
}
if cfg!(feature="unstable") {
println!("+unstable\t\tUnstable optimisations evailable & enabled for build.");
println!("{}\t\tUnstable optimisations evailable & enabled for build.", disjoint!["+", "unstable"].red());
} else {
println!("-unstable\t\tUnstable optimisations disabled / not available for build.");
println!("{}\t\tUnstable optimisations disabled / not available for build.", disjoint!["-", "unstable"].bright_blue());
}
std::process::exit(1)
} else {

Loading…
Cancel
Save