Feature request: `-h` should override previous `--size`
- Dominant language
- Rust
- Stars
- 16.2k
- Forks
- 510
- PR merge metrics
- No merged PRs in 30d
Description
The `-h` flag should not do nothing, but be equivalent to `--size default`.
The reason is that if an alias sets e.g. `--size bytes`, to emulate the default behavior of `ls`, an option to the alias invocation `-h` is naturally expected to override that.
```bash
ls # shows size in bytes
ls -h # shows size human-readable
alias ls='lsd --size bytes'
ls # shows size in bytes (= 'lsd --size bytes')
ls -h # should show size human-readable but doesn't (= 'lsd --size bytes -h')
````
- os: Debian GNU/Linux 12 'bookworm'
- `lsd --version`: 0.23.1
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by locating the Rust option-parsing and size-formatting entry points for `-h` and `--size`. Reproduce the documented alias scenario with `--size bytes -h`, then verify that the completed change makes `-h` restore human-readable sizing without changing ordinary `--size` behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100