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(); dotenv().ok();
env_logger::init().unwrap(); env_logger::init().unwrap();
let args = App::new("rphotoadm") let args = App::new("rphotoadm")
.version(env!("CARGO_PKG_VERSION"))
.about("Command line interface for rphotos") .about("Command line interface for rphotos")
.subcommand(SubCommand::with_name("findphotos") .subcommand(SubCommand::with_name("findphotos")
.about("Find new photos in the photo directory") .about("Find new photos in the photo directory")

View File

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