od: `-w` option mistakens positional argument for value
Open
Nobody has claimed this yet.
U - od
- Dominant language
- Rust
- Stars
- 24.1k
- Forks
- 2k
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 365
Description
For the width option, default missing value alone is not enough, we need require_equals for the long option, but this causes the short form to be inconsistent.
GNU:
$ od -w test
0000000 061141 000143
0000004
uutils:
$ od -w test
od: invalid -w argument '/home/my4ng/test'
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the Rust implementation of od's width option and inspect how the short -w form parses a following positional argument. Compare its behavior with the GNU examples in the issue. Done means od -w test treats test as the input file and produces output rather than reporting an invalid width argument.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100