use clap::Parser; #[derive(Parser)] #[clap(author, version)] #[clap(about = "MPS m3u8 generator")] pub struct CliArgs { /// Input MPS file pub input: String, /// Output m3u8 playlist pub playlist: String, /// Parse input as MPS instead of as filename #[clap(long)] pub raw: bool, } pub fn parse() -> CliArgs { CliArgs::parse() }