diff --git a/src/app.rs b/src/app.rs index e8ceeb56..9ead9c5b 100644 --- a/src/app.rs +++ b/src/app.rs @@ -135,8 +135,8 @@ fn app(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)