module Argz::Raw

Overview

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

Defined in:

argz/raw.cr

Class Method Summary

Class Method Detail

def self.add(str : String | Array(String)) #

[View source]
def self.all #

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


[View source]
def self.any? #

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


[View source]
def self.argument_index_of(flag : String) : Int32 #

Find the index of the argument to a given flag.


[View source]
def self.argument_to(flag : String) : String | Nil #

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


[View source]
def self.argument_to?(flag : String) #

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


[View source]
def self.arguments_to(flag : String, &) #

When given a block.


[View source]
def self.arguments_to(flag : String) #

When not given a block.


[View source]
def self.arguments_to?(flag : String) : Bool #

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


[View source]
def self.delete(str : String | Array(String)) #

[View source]
def self.delete_all #

[View source]
def self.each(&) #

Enumerate over each element in the argument list.


[View source]
def self.empty? #

[View source]
def self.includes?(flag : String) #

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


[View source]
def self.index_of(flag : String) : Int32 | Nil #

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


[View source]
def self.index_of?(flag : String) : Bool #

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


[View source]
def self.is_flag?(flag : String) #

[View source]
def self.is_flag_like?(flag : String) #

[View source]
def self.size #

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


[View source]