From 78ee8e43bbf556da382b233d7b9fcae49f9935ed Mon Sep 17 00:00:00 2001 From: k-nasa Date: Tue, 25 Dec 2018 21:10:07 +0900 Subject: [PATCH] Fix duplication with Cargo.toml --- src/main.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index dec89cf3..485560f7 100644 --- a/src/main.rs +++ b/src/main.rs @@ -20,15 +20,14 @@ use std::path::{Path, PathBuf}; mod cmd; -const NAME: &str = "mdBook"; const VERSION: &str = concat!("v", crate_version!()); fn main() { init_logger(); // Create a list of valid arguments and sub-commands - let app = App::new(NAME) - .about("Creates a book from markdown files") + let app = App::new(crate_name!()) + .about(crate_description!()) .author("Mathieu David ") .version(VERSION) .setting(AppSettings::GlobalVersion)