diff options
author | Andrew Gallant <jamslam@gmail.com> | 2017-02-18 15:25:08 -0500 |
---|---|---|
committer | Andrew Gallant <jamslam@gmail.com> | 2017-02-18 15:25:08 -0500 |
commit | 16de47920cb14d03a1ed5d851a9f5283472d3d7c (patch) | |
tree | 537743acb8e1ad4b8e87bb0e19f95f1487d02a7f /src | |
parent | a114b860635c98198d53e6ba8ed37c88df2c5cc3 (diff) |
Permit --heading to override --no-heading.
@kbknapp <3
Fixes #327
Diffstat (limited to 'src')
-rw-r--r-- | src/app.rs | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |