Populate clap with information from Cargo.toml
This commit is contained in:
parent
551c4dc52b
commit
548555c45e
2 changed files with 4 additions and 2 deletions
|
@ -1,6 +1,7 @@
|
|||
[package]
|
||||
name = "sausagewiki"
|
||||
version = "0.1.0"
|
||||
description = "A wiki engine"
|
||||
authors = ["Magnus Hoff <maghoff@gmail.com>"]
|
||||
license = "GPL-3.0"
|
||||
|
||||
|
|
|
@ -45,8 +45,9 @@ const PORT: &str = "port";
|
|||
fn args<'a>() -> clap::ArgMatches<'a> {
|
||||
use clap::{App, Arg};
|
||||
|
||||
App::new("sausagewiki")
|
||||
.about("A wiki engine")
|
||||
App::new(env!("CARGO_PKG_NAME"))
|
||||
.version(env!("CARGO_PKG_VERSION"))
|
||||
.about(env!("CARGO_PKG_DESCRIPTION"))
|
||||
.arg(Arg::with_name(DATABASE)
|
||||
.help("Sets the database file to use")
|
||||
.required(true))
|
||||
|
|
Loading…
Reference in a new issue