|
|
@ -1,3 +1,4 @@
|
|
|
|
|
|
|
|
#[macro_use]
|
|
|
|
extern crate clap;
|
|
|
|
extern crate clap;
|
|
|
|
extern crate monolith;
|
|
|
|
extern crate monolith;
|
|
|
|
|
|
|
|
|
|
|
@ -7,9 +8,9 @@ use monolith::html::{walk_and_embed_assets, html_to_dom, print_dom};
|
|
|
|
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
fn main() {
|
|
|
|
let command = App::new("monolith")
|
|
|
|
let command = App::new("monolith")
|
|
|
|
.version("2.0.4")
|
|
|
|
.version(crate_version!())
|
|
|
|
.author("Sunshine <sunshine@uberspace.net>")
|
|
|
|
.author(crate_authors!())
|
|
|
|
.about("CLI tool to save web pages as single HTML files")
|
|
|
|
.about(crate_description!())
|
|
|
|
.arg(Arg::with_name("url")
|
|
|
|
.arg(Arg::with_name("url")
|
|
|
|
.required(true)
|
|
|
|
.required(true)
|
|
|
|
.takes_value(true)
|
|
|
|
.takes_value(true)
|
|
|
|