Module: Dicey::CLI Private

Defined in:
lib/dicey/cli.rb,
lib/dicey/cli/roller.rb,
lib/dicey/cli/blender.rb,
lib/dicey/cli/options.rb,
lib/dicey/cli/calculator_runner.rb,
lib/dicey/cli/calculator_test_runner.rb,
lib/dicey/cli/formatters/json_formatter.rb,
lib/dicey/cli/formatters/list_formatter.rb,
lib/dicey/cli/formatters/null_formatter.rb,
lib/dicey/cli/formatters/yaml_formatter.rb,
lib/dicey/cli/formatters/gnuplot_formatter.rb,
lib/dicey/cli/formatters/base_map_formatter.rb,
lib/dicey/cli/formatters/base_list_formatter.rb

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Note:

Not loaded by default, use require “dicey/cli” as needed.

Classes pertaining to CLI. These are not intended to be used by API consumers.

If you really need to simulate CLI from inside your code, use CLI.call.

Defined Under Namespace

Modules: Formatters Classes: Blender, CalculatorRunner, CalculatorTestRunner, Options, Roller

Class Method Summary collapse

Class Method Details

.call(argv = ARGV) ⇒ Boolean

Parse options and arguments and run calculations, printing results.

Parameters:

  • argv (Array<String>) (defaults to: ARGV)

    arguments for the program

Returns:

  • (Boolean)

Raises:



19
20
21
# File 'lib/dicey/cli.rb', line 19

def self.call(argv = ARGV)
  Blender.new.call(argv)
end