Skip to content

Parser customization should be rare #2158

Open
@KathleenDollard

Description

@KathleenDollard

With limitations of the middleware and validation, a variety of things happened in custom parsers.

I was really struck by a comment made in the public chat on our last API review. I cannot it right, but the impact on me was a better appreciation of our responsibility to the ecosystem to nudge the world to common CLI syntax. We can't force this. A huge number of CLIs are in use in scripts and many have quirks that need to be supported. It is not helpful for people to have to write their own parser with more quirks just because we cannot accommodate their needs. So, I believe we should remain flexible and custom parsing should be an option.

I have thought a lot about how we balance the responsibility of encourage a consistent stable ecosystem with few weirdnesses in CLIs and the need for CLI authors to be able to get their job done no matter what that job entails (well almost at least). As a high level goal have nothing but custom parsing in custom parsers. So first some questions:

What do you do in a custom parser other than validation and custom parsing?

If you do custom parsing, what do you do it for? Is it a legacy quirk you need to support? List support? If you are doing non-Posix, non-Windows syntax, why are you doing it?

Do you have any thoughts on the balance we should strive for between encouraging a consistent table ecosystem and helping people get done what they need to get done whyever they need to get it done?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions