Skip to content

Commit

Permalink
Tell if exa was compiled with suppport or not when using --help
Browse files Browse the repository at this point in the history
  • Loading branch information
ariasuni committed Dec 10, 2020
1 parent a740512 commit 9f803b3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/options/version.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 enabled: {})",
include!(concat!(env!("OUT_DIR"), "/version_string.txt")),
if cfg!(feature = "git") { "yes" } else { "no" })
}
}

Expand Down

0 comments on commit 9f803b3

Please sign in to comment.