use clap::Parser; use url::Url; /// Traverse records from Tap, saving to a PostgreSQL DB. #[derive(Debug, Parser)] pub struct Arguments { /// URL for the PostgreSQL database. #[arg(long, short = 'd', env = "TAP_DUMP_DATABASE_URL")] pub db: Url, /// URL for the Tap service. #[arg( long, short = 'H', env = "TAP_DUMP_TAP_URL", default_value = "http://localhost:2480" )] pub tap: Url, /// Admin password for the Tap service. #[arg(long, short = 'p', env = "TAP_DUMP_TAP_PASSWORD")] pub tap_password: Option, /// DIDs to seed from. #[arg(long, value_delimiter = ',', env = "TAP_DUMP_SEED")] pub seed: Vec, } pub fn parse() -> Arguments { Arguments::parse() }