Expose version in command line and footer.

This commit is contained in:
Rasmus Kaj 2017-08-01 01:40:42 +02:00
parent c9f024b205
commit ce44b1f18f
2 changed files with 3 additions and 2 deletions

View File

@ -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")

View File

@ -20,8 +20,8 @@
</main>
<footer>
<p>Managed by
<a href="https://github.com/kaj/rphotos">rphotos, which is
open source</a>.</p>
<a href="https://github.com/kaj/rphotos">rphotos
@env!("CARGO_PKG_VERSION"), which is open source</a>.</p>
</footer>
</body>
</html>