cleanup, add volume

This commit is contained in:
jb-alvarado 2022-02-13 21:33:31 +01:00
parent fd1e4f7cf4
commit 532a95960b

View File

@ -7,29 +7,32 @@ pub struct Args {
pub config: Option<String>,
#[clap(short, long, help = "play folder content")]
pub folder: Option<String>,
pub folder: Option<String>,
#[clap(short, long, help = "file path for logfile")]
pub log: Option<String>,
pub log: Option<String>,
#[clap(short = 'i', long, help = "loop playlist infinitely")]
pub r#loop: bool,
#[clap(short, long,
help = "set output mode: desktop, hls, stream")]
pub output: Option<String>,
pub output: Option<String>,
#[clap(short, long, help = "path from playlist")]
pub playlist: Option<String>,
pub playlist: Option<String>,
#[clap(short, long, help = "start time in 'hh:mm:ss', 'now' for start with first")]
pub start: Option<String>,
pub start: Option<String>,
#[clap(short = 't', long, help = "set length in 'hh:mm:ss', 'none' for no length check")]
pub length: Option<String>,
pub length: Option<String>,
#[clap(long, help = "playing mode: folder, playlist, custom...")]
pub play_mode: Option<String>,
pub play_mode: Option<String>,
#[clap(short, long, help = "set audio volume")]
pub volume: Option<String>,
}
pub fn get_args() -> Args {