Skip to content

Single dash is parsed as unrecognized argument #164

@alyssais

Description

@alyssais

According to the Fuchsia command line rubric, and general Unix practice, a single dash is not allowed as a key or switch, but that's how argh treats it, because it doesn't have a special case for it like it does for --.

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

This means that to pass a single dash as a positional argument, you have to pass -- -, which is very unintuitive.

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