paperoni/src/cli.rs

22 lines
570 B
Rust
Raw Normal View History

use clap::{App, AppSettings, Arg};
2020-05-16 08:09:44 +01:00
pub fn cli_init() -> App<'static, 'static> {
App::new("paperoni")
.settings(&[
AppSettings::ArgRequiredElseHelp,
AppSettings::UnifiedHelpMessage,
])
.version("0.1.0-alpha1")
.about(
"
Paperoni is an article downloader.
It takes a url and downloads the article content from it and saves it to an epub.
",
)
.arg(
Arg::with_name("urls")
.help("Urls of web articles")
.multiple(true),
)
2020-05-16 08:09:44 +01:00
}