From 54fdd890f9f5be4c34b679ecc9279588a0562fe2 Mon Sep 17 00:00:00 2001 From: Vincent Flyson Date: Fri, 23 Aug 2019 05:49:14 -0400 Subject: [PATCH] Parse Cargo.toml for strings --- Cargo.toml | 1 + src/main.rs | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 8e54a1d..4bf94f2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,6 +2,7 @@ name = "monolith" version = "2.0.4" authors = ["Sunshine "] +description = "CLI tool to save webpages as a single HTML file" [dependencies] base64 = "0.10.1" diff --git a/src/main.rs b/src/main.rs index 6087ca3..bf75801 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,3 +1,4 @@ +#[macro_use] extern crate clap; extern crate monolith; @@ -7,9 +8,9 @@ use monolith::html::{walk_and_embed_assets, html_to_dom, print_dom}; fn main() { let command = App::new("monolith") - .version("2.0.4") - .author("Sunshine ") - .about("CLI tool to save web pages as single HTML files") + .version(crate_version!()) + .author(crate_authors!()) + .about(crate_description!()) .arg(Arg::with_name("url") .required(true) .takes_value(true)