2022-01-28 14:32:52 -05:00
|
|
|
use clap::Parser;
|
|
|
|
|
|
|
|
#[derive(Parser)]
|
|
|
|
#[clap(author, version)]
|
|
|
|
#[clap(about = "MPS m3u8 generator")]
|
|
|
|
pub struct CliArgs {
|
2022-07-01 16:20:52 -04:00
|
|
|
/// Input script file
|
2022-01-28 14:32:52 -05:00
|
|
|
pub input: String,
|
|
|
|
|
|
|
|
/// Output m3u8 playlist
|
|
|
|
pub playlist: String,
|
|
|
|
|
2022-07-01 16:20:52 -04:00
|
|
|
/// Parse input as script instead of as filename
|
2022-01-28 14:32:52 -05:00
|
|
|
#[clap(long)]
|
2022-01-31 09:22:36 -05:00
|
|
|
pub raw: bool,
|
2022-01-28 14:32:52 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
pub fn parse() -> CliArgs {
|
|
|
|
CliArgs::parse()
|
|
|
|
}
|