Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions src/uu/hashsum/src/hashsum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ pub fn uumain(mut args: impl uucore::Args) -> UResult<()> {
mod options {
//pub const ALGORITHM: &str = "algorithm";
pub const FILE: &str = "file";
//pub const UNTAGGED: &str = "untagged";
pub const UNTAGGED: &str = "untagged"; //We have this only for supporting --text --tag
pub const TAG: &str = "tag";
pub const LENGTH: &str = "length";
//pub const RAW: &str = "raw";
Expand All @@ -238,6 +238,12 @@ pub fn uu_app_common() -> Command {
.override_usage(format_usage(&translate!("hashsum-usage")))
.infer_long_args(true)
.args_override_self(true)
.arg(
Arg::new(options::UNTAGGED)
.long(options::UNTAGGED)
.hide(true)
.action(ArgAction::SetTrue),
)
.arg(
Arg::new(options::BINARY)
.short('b')
Expand Down Expand Up @@ -267,7 +273,7 @@ pub fn uu_app_common() -> Command {
.long("tag")
.help(translate!("hashsum-help-tag"))
.action(ArgAction::SetTrue)
.conflicts_with("text"),
.overrides_with(options::TEXT),
)
.arg(
Arg::new(options::TEXT)
Expand All @@ -284,6 +290,7 @@ pub fn uu_app_common() -> Command {
}
})
.conflicts_with("binary")
.requires(options::UNTAGGED)
.action(ArgAction::SetTrue),
)
.arg(
Expand Down
Loading