-
Notifications
You must be signed in to change notification settings - Fork 3
Description
Premise
The upstream ArgParser supports not only usageLineLength but also allowTrailingOptions during its construction.
Problem
The current implementation of BetterCommand does not accept the allowTrailingOptions parameter. It limits my ability, as a consumer of this package, to customize the ArgParser in a direct and easy manner without relying on a workaround.
Workaround
As mentioned in the upstream documentation for this matter, I am forced to extend/compose Command yet again from BetterCommand just to override the argParser getter in a new Wrapper. This introduces an avoidable design overhead.
Suggestion
A direct approach to solve this problem, without any breaking change, could be to simply allow the parameter allowTrailingOptions alongside wrapTextColumn in the BetterCommand constructor with a default value corresponding to existing behavior.