mirror of
https://github.com/sharkdp/hexyl.git
synced 2026-10-30 09:05:54 +00:00
style: normalize indentation of doc strings literals for args help
This commit is contained in:
1 parent
e29a63358d
commit
e0da7b3f82
1 file changed
+12
-7
+12
-7
@@ -34,8 +34,8 @@ fn run() -> Result<(), AnyhowError> {
|
|||||||
.value_name("N")
|
.value_name("N")
|
||||||
.help(
|
.help(
|
||||||
"Only read N bytes from the input. The N argument can also include a \
|
"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\
|
unit with a decimal prefix (kB, MB, ..) or binary prefix (kiB, MiB, ..).\n\
|
||||||
Examples: --length=64, --length=4KiB",
|
Examples: --length=64, --length=4KiB",
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
.arg(
|
.arg(
|
||||||
@@ -54,7 +54,7 @@ fn run() -> Result<(), AnyhowError> {
|
|||||||
.value_name("N")
|
.value_name("N")
|
||||||
.help(
|
.help(
|
||||||
"Skip the first N bytes of the input. The N argument can also include \
|
"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(
|
.arg(
|
||||||
@@ -64,7 +64,7 @@ fn run() -> Result<(), AnyhowError> {
|
|||||||
.value_name("SIZE")
|
.value_name("SIZE")
|
||||||
.help(
|
.help(
|
||||||
"Sets the size of the `block` unit to SIZE.\n\
|
"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(
|
.arg(
|
||||||
@@ -96,7 +96,10 @@ fn run() -> Result<(), AnyhowError> {
|
|||||||
.value_name("STYLE")
|
.value_name("STYLE")
|
||||||
.possible_values(&["unicode", "ascii", "none"])
|
.possible_values(&["unicode", "ascii", "none"])
|
||||||
.default_value("unicode")
|
.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(
|
||||||
Arg::with_name("display_offset")
|
Arg::with_name("display_offset")
|
||||||
@@ -104,8 +107,10 @@ fn run() -> Result<(), AnyhowError> {
|
|||||||
.long("display-offset")
|
.long("display-offset")
|
||||||
.takes_value(true)
|
.takes_value(true)
|
||||||
.value_name("N")
|
.value_name("N")
|
||||||
.help("Add N bytes to the displayed file position. The N argument can also include \
|
.help(
|
||||||
a unit (see `--length` for details)"),
|
"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()?;
|
let matches = app.get_matches_safe()?;
|
||||||
|
|||||||
Reference in new issue
Block a user