Upgrade urfave dependency which now supports DisableSliceFlagSeparato… #10950
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Context
In #10761 we added a new RPC benchmarking tool which parses options from terminal to build up RPC requests. However, our current urfave version does not support parsing cli options if they have a comma (
,
) in them. This was however added by urfave a few months ago by introducing a new flagDisableSliceFlagSeparator
.Unfortunately, upgrading the urfave dependency introduced regressions in how it generated --help output, especially for commands with subcategories, where the subcategory was not included in the help output.
NOTE that are have been some changes still in how urfave generates --help output from our previous version (2.16.3) but these look ok to me
Test plan
Observed that lotus-bench rpc now works when passing it options with comma: