mirror of
https://github.com/librespot-org/librespot.git
synced 2024-12-18 17:11:53 +00: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…
Reference in a new issue