Readorder::Cli

Public Class Methods

params_to_hash( params ) click to toggle source

Convert the Parameters::List that exists as the parameter from Main

# File lib/readorder/cli.rb, line 163
  def Cli.params_to_hash( params )
    (hash = params.to_hash ).keys.each do |key| 
      v = hash[key].values
      v = v.first if v.size <= 1
      hash[key] = v
    end
    return hash
  end
run_command_with_params( command, params ) click to toggle source

(Not documented)

# File lib/readorder/cli.rb, line 172
  def Cli.run_command_with_params( command, params )
    ::Readorder::Runner.new( Cli.params_to_hash( params ) ).run( command )
  end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.