Class: KXI::CLI::FlagArgument

Inherits:
ExplicitArgument show all
Defined in:
lib/kxi/cli/flag_argument.rb

Overview

Represents the flag argument (eg.: -f, –flag)

Instance Method Summary collapse

Methods inherited from ExplicitArgument

#headline, #shortcut, #syntax

Methods inherited from Argument

#description, #headline, #name, #order, #required?, #syntax

Constructor Details

#initialize(nm, desc, sh = nil) ⇒ FlagArgument

Instantiates the KXI::CLI::FlagArgument class

Parameters:

  • nm (String)

    Name of argument

  • desc (String)

    Description of argument

  • sh (String) (defaults to: nil)

    Shortcut of argument



11
12
13
# File 'lib/kxi/cli/flag_argument.rb', line 11

def initialize(nm, desc, sh = nil)
	super(nm, desc, sh)
end