social-media-news-bot/scrapper/src/cli.rs

18 lines
415 B
Rust
Raw Normal View History

2024-12-23 12:56:58 +00:00
use clap::Parser;
#[derive(Parser, Debug)]
#[command(version, about, long_about = None)]
pub struct CliArgs {
/// Redis host
#[arg(short, long)]
pub redis_connection_string: String,
/// Redis stream name
#[arg(short = 't', long)]
pub redis_stream_name: String,
/// The scraping interval in minutes
#[arg(short, long, default_value_t = 60)]
pub scrape_interval_minutes: u32,
}