module

Argz::Raw

Provide a friendly raw base module to the the raw command-line arguments.

Class methods

add(str : String | Array(String))
Source
all

Direct access to all of the elements in the arguments list.

Source
any?

Detect if there are any arguments. Sometimes you don't have any to mess with.

Source
argument_index_of(flag : String) : Int32

Find the index of the argument to a given flag.

Source
argument_to(flag : String) : String | Nil

Find the argument to a given string in the raw index.

Source
argument_to?(flag : String)

Find out if there's an argument to a given flag.

Source
arguments_to(flag : String, &)

When given a block.

Source
arguments_to(flag : String)

When not given a block.

Source
arguments_to?(flag : String) : Bool

Find out if there's at least one or more arguments to a given flag.

Source
delete(str : String | Array(String))
Source
delete_all
Source
each

Enumerate over each element in the argument list.

Source
empty?
Source
includes?(flag : String)

Check if the raw command-line arguments includes a given string.

Source
index_of(flag : String) : Int32 | Nil

Find the index (relative number) of the argument in the argument list.

Source
index_of?(flag : String) : Bool

Find the index (relative number) of the argument in the argument list.

Source
is_flag?(flag : String)
Source
is_flag_like?(flag : String)
Source
size

The size ( count of elements ) of the argument list.

Source