Skip to content

Positional arguments fail with negative numbers #191

@SpecificProtagonist

Description

@SpecificProtagonist

Because of

if next_arg.starts_with('-') && !options_ended {

positional arguments that start with a - get misinterpreted as optionals. This prevents e.g. taking numbers or filenames that start with a dash as required arguments, despite being permitted by Fuchsia's command-line tools rubric.

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