change the option name from '-H' to '-L'

This commit is contained in:
t-mangoe 2023-02-11 13:39:46 +09:00
parent 0e2bed11ad
commit cbad7578a9
2 changed files with 3 additions and 3 deletions

View file

@ -218,7 +218,7 @@ module ColorLS
end end
def get_long_style_symlink_options(options, long_style_options) def get_long_style_symlink_options(options, long_style_options)
options.on('-H', 'show information on the destination of symbolic links') do options.on('-L', 'show information on the destination of symbolic links') do
long_style_options[:show_symbol_dest] = true long_style_options[:show_symbol_dest] = true
end end
long_style_options long_style_options

View file

@ -614,8 +614,8 @@ RSpec.describe ColorLS::Flags do
end end
end end
context 'with -H flag in a listing format' do context 'with -L flag in a listing format' do
let(:args) { ['-l', '-H', "#{FIXTURES}/a.txt"] } let(:args) { ['-l', '-L', "#{FIXTURES}/a.txt"] }
before do before do
file_info = instance_double( file_info = instance_double(