lib/ronin/cli/commands/hexdump.rb in ronin-2.0.0.beta1 vs lib/ronin/cli/commands/hexdump.rb in ronin-2.0.0.beta2

- old
+ new

@@ -273,12 +273,18 @@ @highlight_index = {} @highlight_numeric = {} @highlight_chars = {} end + # + # Runs the `ronin hexdump` command. + # + # @param [Array<String>] files + # Additional files to hexdump. + # def run(*files) - @hexdump = ::Hexdump::Hexdump.new(**hexdump_options) + @hexdump = ::Hexdump::Hexdump.new(**hexdump_kwargs) super(*files) end # @@ -430,10 +436,10 @@ # Creates a keyword arguments `Hash` of all command `options` that will # be directly passed to `Hexdump.hexdump`. # # @return [Hash{Symbol => Object}] # - def hexdump_options + def hexdump_kwargs kwargs = {} HEXDUMP_OPTIONS.each do |key| kwargs[key] = options[key] if options.has_key?(key) end