lsd-rs / lsd

The next gen ls command
Apache License 2.0
13.16k stars 429 forks source link

Feature request: `-h` should override previous `--size` #880

Open allefeld opened 1 year ago

allefeld commented 1 year ago

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.

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')