Skip to content

Commit

Permalink
cksum: trigger an error on--check
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvestre committed Apr 28, 2024
1 parent cdf959d commit e7e1727
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/uu/cksum/src/cksum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ struct Options {
length: Option<usize>,
output_format: OutputFormat,
binary: bool,
check: bool,
}

/// Calculate checksum
Expand Down Expand Up @@ -267,6 +268,10 @@ where
}
}

if options.check {
unimplemented!();
}

Ok(())
}

Expand Down Expand Up @@ -407,6 +412,7 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> {
untagged,
output_format,
binary,
check,
};

match matches.get_many::<String>(options::FILE) {
Expand Down

0 comments on commit e7e1727

Please sign in to comment.