remove --nh flag

This commit is contained in:
Ayush Poddar 2023-04-26 18:28:03 +05:30
parent d4fdd94d97
commit 93fa6872c9
2 changed files with 3 additions and 3 deletions

View file

@ -113,10 +113,10 @@ Man pages have been added. Checkout `man colorls`.
![image](https://user-images.githubusercontent.com/17109060/32149084-9eb2a416-bd25-11e7-8fb7-a9d336c6e038.png)
- Using `--nh` with `-l` :
- Using `--non-human-readable` with `-l` :
- This will print the file sizes in bytes (non-human readable format)
![image](https://user-images.githubusercontent.com/19269206/233062206-caf4e31e-dea3-4874-8b2b-eb5d494873be.png)
![image](https://user-images.githubusercontent.com/19269206/234581461-1e1fdd90-a362-4cea-ab82-5ca360746be8.png)
# Installation

View file

@ -200,7 +200,7 @@ module ColorLS
long_style_options[:hard_links_count] = false
end
long_style_options = get_long_style_symlink_options(options, long_style_options)
options.on('--nh', '--non-human-readable', 'show file sizes in bytes only') do
options.on('--non-human-readable', 'show file sizes in bytes only') do
long_style_options[:human_readable_size] = false
end
@opts[:long_style_options] = long_style_options