Merge pull request #966 from michaelherger/fix-params-printout

Only log runtime argument if it starts with a dash "-"
This commit is contained in:
Roderick van Domburg 2022-02-13 20:48:36 +01:00 committed by GitHub
commit cb194cfd3b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)