Skip to content

[BetterCommand] lacks support for allowTrailingOptions #89

@indraneel12

Description

@indraneel12

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions