mirror of
https://github.com/talwat/lowfi
synced 2024-12-26 03:01:55 +00:00
feat: add -d flag
This commit is contained in:
parent
cc73fa5a37
commit
e47ed1da94
@ -17,10 +17,14 @@ struct Args {
|
|||||||
#[clap(long, short)]
|
#[clap(long, short)]
|
||||||
minimalist: bool,
|
minimalist: bool,
|
||||||
|
|
||||||
/// Whether to start lowfi paused
|
/// Whether to start lowfi paused.
|
||||||
#[clap(long, short)]
|
#[clap(long, short)]
|
||||||
paused: bool,
|
paused: bool,
|
||||||
|
|
||||||
|
/// Whether to include ALSA & other logs.
|
||||||
|
#[clap(long, short)]
|
||||||
|
debug: bool,
|
||||||
|
|
||||||
/// The command that was ran.
|
/// The command that was ran.
|
||||||
/// This is [None] if no command was specified.
|
/// This is [None] if no command was specified.
|
||||||
#[command(subcommand)]
|
#[command(subcommand)]
|
||||||
|
@ -148,7 +148,7 @@ impl Player {
|
|||||||
/// but this option is only applicable on Linux, as on MacOS & Windows
|
/// but this option is only applicable on Linux, as on MacOS & Windows
|
||||||
/// it will never be silent.
|
/// it will never be silent.
|
||||||
pub async fn new(silent: bool, args: &Args) -> eyre::Result<Self> {
|
pub async fn new(silent: bool, args: &Args) -> eyre::Result<Self> {
|
||||||
let (_stream, handle) = if silent && cfg!(target_os = "linux") {
|
let (_stream, handle) = if silent && cfg!(target_os = "linux") && !args.debug {
|
||||||
Self::silent_get_output_stream()?
|
Self::silent_get_output_stream()?
|
||||||
} else {
|
} else {
|
||||||
OutputStream::try_default()?
|
OutputStream::try_default()?
|
||||||
|
Loading…
Reference in New Issue
Block a user