muss/m3u8/src/cli.rs

21 lines
371 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 {
2022-07-01 21:20:52 +01:00
/// Input script file
2022-01-28 19:32:52 +00:00
pub input: String,
/// Output m3u8 playlist
pub playlist: String,
2022-07-01 21:20:52 +01:00
/// Parse input as script instead of as filename
2022-01-28 19:32:52 +00:00
#[clap(long)]
2022-01-31 14:22:36 +00:00
pub raw: bool,
2022-01-28 19:32:52 +00:00
}
pub fn parse() -> CliArgs {
CliArgs::parse()
}