ouverture-core 0.1.0

A next-generation music player and manager library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use std::path::PathBuf;
use structopt::StructOpt;

#[derive(Debug, StructOpt)]
#[structopt(name = "ouverture", about = "A next-gen music player")]
pub struct Opt {
    /// Log level filter, default to 'info'
    #[structopt(long = "log-level", possible_values(&["trace", "debug", "info", "warn", "error", "off"]))]
    pub log_level: Option<String>,

    /// Log destination, stderr by default
    #[structopt(long = "log-destination")]
    pub log_destination: Option<PathBuf>,

    /// Config path
    #[structopt(short, long)]
    pub config: Option<PathBuf>,
}