Skip to content

Commit 5302a54

Browse files
Add better help information
1 parent acc141c commit 5302a54

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/program_options.rs

+7
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@ use std::{collections::BTreeMap, num::NonZeroU64};
33
use clap::{Parser, ValueEnum};
44

55
#[derive(Parser, Clone, Debug, Default)]
6+
#[command(
7+
name = "thash",
8+
version = env!("CARGO_PKG_VERSION"),
9+
long_about = "A fast and versatile terminal hashing program that prints the hash digest to stdout, with many hashing algorithms, many output formats, and support to request the number of iterations for hashing.",
10+
author = "TheQuantumPhysicist <https://github.com/TheQuantumPhysicist>",
11+
after_help = r#"Pipe data into thash to calculate their hash digest. Example: echo -n "abc" | thash -a blake3"#
12+
)]
613
pub struct THashOptions {
714
/// The algorithm that will be used to hash the given data.
815
#[arg(long, short('a'), value_name("ALGORITHM"), default_value_t = HashAlgorithm::default())]

0 commit comments

Comments
 (0)