class Cry::Command::Options

Overview

The dedicated Cli::OptionModel subclass for the Command class.

This class is automatically defined by the Crystal CLI library.

Defined in:

cry/command.cr:5
cry/command.cr:10

Instance Method Summary

Instance Method Detail

def b #

Returns the -b option value.

This method is automatically defined by the optarg library.


def b? #

Returns the -b option value.

Returns nil, if the value is undefined.

This method is automatically defined by the optarg library.


def back #

Returns the -b option value.

This method is automatically defined by the optarg library.


def back? #

Returns the -b option value.

Returns nil, if the value is undefined.

This method is automatically defined by the optarg library.


def code #

Returns the CODE argument value.

This method is automatically defined by the optarg library.


def code? #

Returns the CODE argument value.

Returns nil, if the value is undefined.

This method is automatically defined by the optarg library.


def d? #

Returns the -d option value.

This method is automatically defined by the optarg library.


def destructive? #

Returns the -d option value.

This method is automatically defined by the optarg library.


def e #

Returns the -e option value.

This method is automatically defined by the optarg library.


def e? #

Returns the -e option value.

Returns nil, if the value is undefined.

This method is automatically defined by the optarg library.


def editor #

Returns the -e option value.

This method is automatically defined by the optarg library.


def editor? #

Returns the -e option value.

Returns nil, if the value is undefined.

This method is automatically defined by the optarg library.


def l? #

Returns the -l option value.

This method is automatically defined by the optarg library.


def log? #

Returns the -l option value.

This method is automatically defined by the optarg library.


def r? #

Returns the -r option value.

This method is automatically defined by the optarg library.


def repeat? #

Returns the -r option value.

This method is automatically defined by the optarg library.