Skip to content

Commit

Permalink
argv: fix PATTERN typo
Browse files Browse the repository at this point in the history
When referencing the PATTERN positional argument,
we should use `pattern` and not `PATTERN`. The former
is the clap identifier name while the latter is the argument
value name.
  • Loading branch information
kbknapp authored and BurntSushi committed Feb 5, 2018
1 parent c57d0fb commit 85cd3f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1468,7 +1468,7 @@ Show all supported file types and their corresponding globs.
.help(SHORT).long_help(LONG)
// This also technically conflicts with PATTERN, but the first file
// path will actually be in PATTERN.
.conflicts(&["file", "files", "PATTERN", "regexp"]);
.conflicts(&["file", "files", "pattern", "regexp"]);
args.push(arg);
}

Expand Down

0 comments on commit 85cd3f0

Please sign in to comment.