muss/src/cli.rs

20 lines
453 B
Rust
Raw Normal View History

use clap::{Parser};
#[derive(Parser)]
#[clap(author, version)]
#[clap(about = "Music playlist scripting language runtime")]
pub struct CliArgs {
/// Script to run
pub file: Option<String>,
/// Generate m3u8 playlist
#[clap(short, long)]
pub playlist: Option<String>,
2022-01-03 22:53:57 +00:00
/// In REPL mode, wait for all music in the queue to complete
#[clap(short, long)]
pub wait: bool,
}
pub fn parse() -> CliArgs {
CliArgs::parse()
}