Skip to content

Commit a4f6e1a

Browse files
authored
Merge pull request #10057 from oech3/patch-5
cksum.rs: Simple default tag variable
2 parents f0e0de7 + ce00c0b commit a4f6e1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/uu/cksum/src/cksum.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> {
164164
// Set the default algorithm to CRC when not '--check'ing.
165165
let algo_kind = algo_cli.unwrap_or(AlgoKind::Crc);
166166

167-
let tag = matches.get_flag(options::TAG) || !matches.get_flag(options::UNTAGGED);
167+
let tag = !matches.get_flag(options::UNTAGGED); // Making TAG default at clap blocks --untagged
168168
let binary = matches.get_flag(options::BINARY);
169169

170170
let algo = SizedAlgoKind::from_unsized(algo_kind, length)?;

0 commit comments

Comments
 (0)