use clap::Parser; use std::path::PathBuf; #[derive(Parser, Debug)] #[command(version, about, long_about = None)] pub struct Config { /// Path to database #[arg(short, long)] pub source: PathBuf, /// Path to export FoF/upload files from /// tips: /// * root should be the path to `flarum/public` dir /// * use rsync instead of this option for longer SSD life #[arg(short, long)] pub upload: Option, /// Path to export markdown #[arg(short, long)] pub target: PathBuf, /// Collect discussions with given tag slug only /// * keep empty to export all #[arg(short, long)] pub filter_tag: Vec, /// Generate index file with given name #[arg(short, long)] pub index: Option, /// Append reference to original source (mirrors) #[arg(short, long)] pub refer: Vec, }