muss/mps-m3u8/src/cli.rs

21 lines
364 B
Rust
Raw Normal View History

2022-01-28 19:32:52 +00:00
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()
}