Tell if exa was compiled with git support or not when using --help

This commit is contained in:
ariasuni 2020-12-10 18:49:11 +01:00
parent a740512014
commit 42bc34f339

View File

@ -31,7 +31,11 @@ impl VersionString {
impl fmt::Display for VersionString {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> Result<(), fmt::Error> {
writeln!(f, "{}", include!(concat!(env!("OUT_DIR"), "/version_string.txt")))
writeln!(
f,
"{} (git support: {})",
include!(concat!(env!("OUT_DIR"), "/version_string.txt")),
if cfg!(feature = "git") { "enabled" } else { "disabled" })
}
}