X-Git-Url: https://git.r.bdr.sh/rbdr/blog/blobdiff_plain/442ebaf901a8ca686ce769325054e1f393d43b7c..5f81d796fed4e4efbaf6dbed7d3c69481afddeb3:/src/command/version.rs diff --git a/src/command/version.rs b/src/command/version.rs index fae7596..a8b970b 100644 --- a/src/command/version.rs +++ b/src/command/version.rs @@ -13,8 +13,9 @@ impl super::Command for Version { vec![] } - fn execute(&self, input: Option<&String>) -> Result<()> { - println!("Version: {:?}!", input); + fn execute(&self, _: Option<&String>) -> Result<()> { + let version = env!("CARGO_PKG_VERSION"); + println!("{}", version); return Ok(()) }