mirror of
https://github.com/librespot-org/librespot.git
synced 2025-10-03 17:59:24 +02:00
Merge pull request #966 from michaelherger/fix-params-printout
Only log runtime argument if it starts with a dash "-"
This commit is contained in:
commit
cb194cfd3b
1 changed files with 1 additions and 0 deletions
|
@ -661,6 +661,7 @@ fn get_setup() -> Setup {
|
||||||
let opt = key.trim_start_matches('-');
|
let opt = key.trim_start_matches('-');
|
||||||
|
|
||||||
if index > 0
|
if index > 0
|
||||||
|
&& key.starts_with('-')
|
||||||
&& &args[index - 1] != key
|
&& &args[index - 1] != key
|
||||||
&& matches.opt_defined(opt)
|
&& matches.opt_defined(opt)
|
||||||
&& matches.opt_present(opt)
|
&& matches.opt_present(opt)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue