Skip to content

Commit 7733e4c

Browse files
authored
head: simplify uu_app()
1 parent d868818 commit 7733e4c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/uu/head/src/head.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ pub fn uu_app() -> Command {
7979
.long("bytes")
8080
.value_name("[-]NUM")
8181
.help(translate!("head-help-bytes"))
82-
.overrides_with_all([options::BYTES, options::LINES])
82+
.overrides_with(options::LINES)
8383
.allow_hyphen_values(true),
8484
)
8585
.arg(
@@ -88,7 +88,7 @@ pub fn uu_app() -> Command {
8888
.long("lines")
8989
.value_name("[-]NUM")
9090
.help(translate!("head-help-lines"))
91-
.overrides_with_all([options::LINES, options::BYTES])
91+
.overrides_with(options::BYTES)
9292
.allow_hyphen_values(true),
9393
)
9494
.arg(
@@ -97,15 +97,15 @@ pub fn uu_app() -> Command {
9797
.long("quiet")
9898
.visible_alias("silent")
9999
.help(translate!("head-help-quiet"))
100-
.overrides_with_all([options::VERBOSE, options::QUIET])
100+
.overrides_with(options::VERBOSE)
101101
.action(ArgAction::SetTrue),
102102
)
103103
.arg(
104104
Arg::new(options::VERBOSE)
105105
.short('v')
106106
.long("verbose")
107107
.help(translate!("head-help-verbose"))
108-
.overrides_with_all([options::QUIET, options::VERBOSE])
108+
.overrides_with(options::QUIET)
109109
.action(ArgAction::SetTrue),
110110
)
111111
.arg(

0 commit comments

Comments
 (0)