Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Commit

Permalink
v1.18: ledger-tool: Minor cleanup on --ignore-ulimit-nofile-error fla…
Browse files Browse the repository at this point in the history
…g (backport of #34944) (#35114)

ledger-tool: Minor cleanup on --ignore-ulimit-nofile-error flag (#34944)

This argument is a flag and doesn't take a value; however, it had the
.value_name() modifier set with "FORMAT". This could be confusing so
remove .value_name() and add .takes_value(false)

(cherry picked from commit 89fd6ac)

Co-authored-by: steviez <[email protected]>
  • Loading branch information
mergify[bot] and steviez authored Feb 7, 2024
1 parent e782370 commit 863cfad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ledger-tool/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -843,7 +843,7 @@ fn main() {
.arg(
Arg::with_name("ignore_ulimit_nofile_error")
.long("ignore-ulimit-nofile-error")
.value_name("FORMAT")
.takes_value(false)
.global(true)
.help(
"Allow opening the blockstore to succeed even if the desired open file \
Expand Down

0 comments on commit 863cfad

Please sign in to comment.