Skip to content

Commit

Permalink
Permit --heading to override --no-heading.
Browse files Browse the repository at this point in the history
@kbknapp <3

Fixes #327
  • Loading branch information
BurntSushi committed Feb 18, 2017
1 parent a114b86 commit 16de479
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,8 @@ fn app<F>(next_line_help: bool, doc: F) -> App<'static, 'static>
.arg(flag("files-without-match"))
.arg(flag("with-filename").short("H"))
.arg(flag("no-filename"))
.arg(flag("heading"))
.arg(flag("no-heading"))
.arg(flag("heading").overrides_with("no-heading"))
.arg(flag("no-heading").overrides_with("heading"))
.arg(flag("hidden"))
.arg(flag("ignore-file")
.value_name("FILE").takes_value(true)
Expand Down

0 comments on commit 16de479

Please sign in to comment.