B #4974: remove CLI extra columns (#951)

This commit is contained in:
Alejandro Huertas Herrero authored and GitHub committed 2021-03-11 16:47:31 +01:00
1 parent ebb91e5789
commit c6e97cf8d5
1 file changed
+2 -2
+2 -2
View File
@@ -357,14 +357,14 @@ module CLIHelper
# @param options [Hash] Object with CLI user options
# @param top [Boolean] True to not update columns again
def show(data, options = {}, top = false)
update_columns(options) unless top
if options[:list]
@cli_columns = options[:list].collect {|o| o.upcase.to_sym }
else
@cli_columns = @default_columns
end
update_columns(options) unless top
if data.is_a? Hash
@data = data