module Ark::CLI

A library for handling options and arguments from the command line.

Call report to define a new interface and parse the command line. See README.md or example/hello.rb for more information.

Public Class Methods

report(input=ARGV) { |spec| ... } → Report click to toggle source

Convenience method for interface declarations. Yields a Spec instance and returns a Report instance for inspection.

args is an array of strings, which defaults to ARGV

# File lib/ark/cli.rb, line 42
def self.report(args=ARGV, &block)
  i = Interface.new(args, &block)
  return i.report
end