module Argz::Raw
Overview
Provide a friendly raw base module to the the raw command-line arguments.
Defined in:
argz/raw.crClass Method Summary
- .add(str : String | Array(String))
-
.all
Direct access to all of the elements in the arguments list.
-
.any?
Detect if there are any arguments.
-
.argument_index_of(flag : String) : Int32
Find the index of the argument to a given flag.
-
.argument_to(flag : String) : String | Nil
Find the argument to a given string in the raw index.
-
.argument_to?(flag : String)
Find out if there's an argument to a given flag.
-
.arguments_to(flag : String, &)
When given a block.
-
.arguments_to(flag : String)
When not given a block.
-
.arguments_to?(flag : String) : Bool
Find out if there's at least one or more arguments to a given flag.
- .delete(str : String | Array(String))
- .delete_all
-
.each(&)
Enumerate over each element in the argument list.
- .empty?
-
.includes?(flag : String)
Check if the raw command-line arguments includes a given string.
-
.index_of(flag : String) : Int32 | Nil
Find the index (relative number) of the argument in the argument list.
-
.index_of?(flag : String) : Bool
Find the index (relative number) of the argument in the argument list.
- .is_flag?(flag : String)
- .is_flag_like?(flag : String)
-
.size
The size ( count of elements ) of the argument list.
Class Method Detail
Find the argument to a given string in the raw index.
Find out if there's at least one or more arguments to a given flag.
Check if the raw command-line arguments includes a given string.
Find the index (relative number) of the argument in the argument list.
Find the index (relative number) of the argument in the argument list.