Skip to content

Validate option names contain only alphanumeric characters plus _ and - #518

@drewburlingame

Description

@drewburlingame

Add validation to ensure option names are alphanumeric plus underscore and hyphen characters.

Current behavior: No validation

Desired behavior: Return false if the resulting name is not valid, forcing the value to be treated as an operand instead of throwing a not-found option error.

Location: CommandDotNet/Parsing/CommandParser.cs:331-332

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions