mirror of
https://github.com/nelsbrock/fingerprunk.git
synced 2026-08-15 00:16:47 +02:00
make small improvements to CLI
- set meaningful value names for options - add backticks around CLI options in user-facing messages
This commit is contained in:
+4
-4
@@ -31,7 +31,7 @@ struct Args {
|
|||||||
status: StatusEnabled,
|
status: StatusEnabled,
|
||||||
|
|
||||||
/// Stop once the specified number of matching keys has been found.
|
/// Stop once the specified number of matching keys has been found.
|
||||||
#[arg(long)]
|
#[arg(long, value_name = "NUM")]
|
||||||
stop_after: Option<NonZero<u64>>,
|
stop_after: Option<NonZero<u64>>,
|
||||||
|
|
||||||
/// Prompt for a password and use it to encrypt matching keys.
|
/// Prompt for a password and use it to encrypt matching keys.
|
||||||
@@ -55,7 +55,7 @@ struct Args {
|
|||||||
///
|
///
|
||||||
/// If not specified, the amount of worker threads will be set to the amount of the machine's
|
/// If not specified, the amount of worker threads will be set to the amount of the machine's
|
||||||
/// available parallelism.
|
/// available parallelism.
|
||||||
#[arg(long)]
|
#[arg(long, value_name = "NUM")]
|
||||||
workers: Option<NonZero<usize>>,
|
workers: Option<NonZero<usize>>,
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -84,7 +84,7 @@ fn main() -> anyhow::Result<()> {
|
|||||||
eprintln!(
|
eprintln!(
|
||||||
"WARNING: No user ID was provided.\n\
|
"WARNING: No user ID was provided.\n\
|
||||||
You may experience problems importing generated keys into GnuPG.\n\
|
You may experience problems importing generated keys into GnuPG.\n\
|
||||||
Use the --userid option to add a user ID.\n"
|
Use `--userid <USERID>` to add a user ID.\n"
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -112,7 +112,7 @@ fn main() -> anyhow::Result<()> {
|
|||||||
Some(workers) => workers,
|
Some(workers) => workers,
|
||||||
None => std::thread::available_parallelism().context(
|
None => std::thread::available_parallelism().context(
|
||||||
"unable to determine available parallelism, \
|
"unable to determine available parallelism, \
|
||||||
use --workers to specify amount of worker threads",
|
use `--workers <NUM>` to specify amount of worker threads",
|
||||||
)?,
|
)?,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user