muss/m3u8/src/cli.rs

20 lines
371 B
Rust

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