summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErich Gubler <erichdongubler@gmail.com>2020-06-10 17:01:01 -0600
committerDavid Peter <sharkdp@users.noreply.github.com>2020-06-17 18:05:42 +0200
commite0da7b3f82dc4ca916f1cb68b6df8dc179c1b663 (patch)
treea0771e7e8b43ec7e5659f347f70a9d76d0ab1d67
parente29a63358d5f234c24c2af3a6cdc4f9896de55d2 (diff)
style: normalize indentation of doc strings literals for args help
-rw-r--r--src/bin/hexyl.rs19
1 files changed, 12 insertions, 7 deletions
diff --git a/src/bin/hexyl.rs b/src/bin/hexyl.rs
index 269598d..cdb7a00 100644
--- a/src/bin/hexyl.rs
+++ b/src/bin/hexyl.rs
@@ -34,8 +34,8 @@ fn run() -> Result<(), AnyhowError> {
.value_name("N")
.help(
"Only read N bytes from the input. The N argument can also include a \
- unit with a decimal prefix (kB, MB, ..) or binary prefix (kiB, MiB, ..).\n\
- Examples: --length=64, --length=4KiB",
+ unit with a decimal prefix (kB, MB, ..) or binary prefix (kiB, MiB, ..).\n\
+ Examples: --length=64, --length=4KiB",
),
)
.arg(
@@ -54,7 +54,7 @@ fn run() -> Result<(), AnyhowError> {
.value_name("N")
.help(
"Skip the first N bytes of the input. The N argument can also include \
- a unit (see `--length` for details)",
+ a unit (see `--length` for details)",
),
)
.arg(
@@ -64,7 +64,7 @@ fn run() -> Result<(), AnyhowError> {
.value_name("SIZE")
.help(
"Sets the size of the `block` unit to SIZE.\n\
- Examples: --block-size=1024, --block-size=4kB",
+ Examples: --block-size=1024, --block-size=4kB",
),
)
.arg(
@@ -96,7 +96,10 @@ fn run() -> Result<(), AnyhowError> {
.value_name("STYLE")
.possible_values(&["unicode", "ascii", "none"])
.default_value("unicode")
- .help("Whether to draw a border with Unicode characters, ASCII characters, or none at all"),
+ .help(
+ "Whether to draw a border with Unicode characters, ASCII characters, \
+ or none at all",
+ ),
)
.arg(
Arg::with_name("display_offset")
@@ -104,8 +107,10 @@ fn run() -> Result<(), AnyhowError> {
.long("display-offset")
.takes_value(true)
.value_name("N")
- .help("Add N bytes to the displayed file position. The N argument can also include \
- a unit (see `--length` for details)"),
+ .help(
+ "Add N bytes to the displayed file position. The N argument can also \
+ include a unit (see `--length` for details)",
+ ),
);
let matches = app.get_matches_safe()?;