Add --base/-b argument

This commit is contained in:
Sharif Haason committed 2022-11-27 17:16:48 -05:00
1 parent 7de17c4f35
commit 7bb6343d2a
1 file changed
+11
+11
View File
@@ -177,6 +177,17 @@ fn run() -> Result<(), AnyhowError> {
The possible options are 1, 2, 4, 8. The default is 1",
),
)
.arg(
Arg::new("base")
.short('b')
.long("base")
.num_args(1)
.value_name("B")
.help(
"Sets the base used for the bytes. The possible options are \
binary, octal, decimal, and hexadecimal."
)
)
.arg(
Arg::new("terminal_width")
.long("terminal-width")