Fix duplication with Cargo.toml

This commit is contained in:
k-nasa 2018-12-25 21:10:07 +09:00
parent 1052ee92e1
commit 78ee8e43bb
1 changed files with 2 additions and 3 deletions

View File

@ -20,15 +20,14 @@ use std::path::{Path, PathBuf};
mod cmd; mod cmd;
const NAME: &str = "mdBook";
const VERSION: &str = concat!("v", crate_version!()); const VERSION: &str = concat!("v", crate_version!());
fn main() { fn main() {
init_logger(); init_logger();
// Create a list of valid arguments and sub-commands // Create a list of valid arguments and sub-commands
let app = App::new(NAME) let app = App::new(crate_name!())
.about("Creates a book from markdown files") .about(crate_description!())
.author("Mathieu David <mathieudavid@mathieudavid.org>") .author("Mathieu David <mathieudavid@mathieudavid.org>")
.version(VERSION) .version(VERSION)
.setting(AppSettings::GlobalVersion) .setting(AppSettings::GlobalVersion)