Skip to content

Commit cb194cf

Browse files
authored
Merge pull request #966 from michaelherger/fix-params-printout
Only log runtime argument if it starts with a dash "-"
2 parents c49415c + 6f6d330 commit cb194cf

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -661,6 +661,7 @@ fn get_setup() -> Setup {
661661
let opt = key.trim_start_matches('-');
662662

663663
if index > 0
664+
&& key.starts_with('-')
664665
&& &args[index - 1] != key
665666
&& matches.opt_defined(opt)
666667
&& matches.opt_present(opt)

0 commit comments

Comments
 (0)