diff --git a/lib/colorls/flags.rb b/lib/colorls/flags.rb index 1d2b332..4f5f536 100644 --- a/lib/colorls/flags.rb +++ b/lib/colorls/flags.rb @@ -218,7 +218,7 @@ module ColorLS end 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 end long_style_options diff --git a/spec/color_ls/flags_spec.rb b/spec/color_ls/flags_spec.rb index 326e489..0677953 100644 --- a/spec/color_ls/flags_spec.rb +++ b/spec/color_ls/flags_spec.rb @@ -614,8 +614,8 @@ RSpec.describe ColorLS::Flags do end end - context 'with -H flag in a listing format' do - let(:args) { ['-l', '-H', "#{FIXTURES}/a.txt"] } + context 'with -L flag in a listing format' do + let(:args) { ['-l', '-L', "#{FIXTURES}/a.txt"] } before do file_info = instance_double(