muss/mps-m3u8/src/cli.rs
2022-01-31 09:22:36 -05:00

20 lines
365 B
Rust

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()
}