google / google/argh

Positional arguments fail with negative numbers

Open
#191 0 comments 5 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
2k
Forks
102
PR merge metrics
No merged PRs in 30d

Description

Because of https://github.com/google/argh/blob/f02f6b44444b340a553ff2db298744721ebc77a7/argh/src/lib.rs#L923

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.