mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 12:07:46 +00:00
Merge pull request #4563 from miles170/hashsum-move-help-strings-to-md-file
hashsum: move help strings to markdown file
This commit is contained in:
commit
7b1d49b0bc
2 changed files with 12 additions and 1 deletions
7
src/uu/hashsum/hashsum.md
Normal file
7
src/uu/hashsum/hashsum.md
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
# hashsum
|
||||||
|
|
||||||
|
```
|
||||||
|
hashsum [OPTIONS] [FILE]...
|
||||||
|
```
|
||||||
|
|
||||||
|
Compute and check message digests.
|
|
@ -29,8 +29,11 @@ use uucore::sum::{
|
||||||
Sha3_384, Sha3_512, Sha512, Shake128, Shake256,
|
Sha3_384, Sha3_512, Sha512, Shake128, Shake256,
|
||||||
};
|
};
|
||||||
use uucore::{crash, display::Quotable, show_warning};
|
use uucore::{crash, display::Quotable, show_warning};
|
||||||
|
use uucore::{format_usage, help_about, help_usage};
|
||||||
|
|
||||||
const NAME: &str = "hashsum";
|
const NAME: &str = "hashsum";
|
||||||
|
const ABOUT: &str = help_about!("hashsum.md");
|
||||||
|
const USAGE: &str = help_usage!("hashsum.md");
|
||||||
|
|
||||||
struct Options {
|
struct Options {
|
||||||
algoname: &'static str,
|
algoname: &'static str,
|
||||||
|
@ -298,7 +301,8 @@ pub fn uu_app_common() -> Command {
|
||||||
const TEXT_HELP: &str = "read in text mode (default)";
|
const TEXT_HELP: &str = "read in text mode (default)";
|
||||||
Command::new(uucore::util_name())
|
Command::new(uucore::util_name())
|
||||||
.version(crate_version!())
|
.version(crate_version!())
|
||||||
.about("Compute and check message digests.")
|
.about(ABOUT)
|
||||||
|
.override_usage(format_usage(USAGE))
|
||||||
.infer_long_args(true)
|
.infer_long_args(true)
|
||||||
.arg(
|
.arg(
|
||||||
Arg::new("binary")
|
Arg::new("binary")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue