From ce44b1f18f227a7b6bb0d421ddc42255f5d9ae79 Mon Sep 17 00:00:00 2001 From: Rasmus Kaj Date: Tue, 1 Aug 2017 01:40:42 +0200 Subject: [PATCH] Expose version in command line and footer. --- src/rphotosadm.rs | 1 + templates/page_base.rs.html | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/rphotosadm.rs b/src/rphotosadm.rs index b6f4401..f9de295 100644 --- a/src/rphotosadm.rs +++ b/src/rphotosadm.rs @@ -38,6 +38,7 @@ fn main() { dotenv().ok(); env_logger::init().unwrap(); let args = App::new("rphotoadm") + .version(env!("CARGO_PKG_VERSION")) .about("Command line interface for rphotos") .subcommand(SubCommand::with_name("findphotos") .about("Find new photos in the photo directory") diff --git a/templates/page_base.rs.html b/templates/page_base.rs.html index 64514bf..19b6cef 100644 --- a/templates/page_base.rs.html +++ b/templates/page_base.rs.html @@ -20,8 +20,8 @@