Class Argument
Argument
Ein Argument kann beim aufruf einer Komandozeilenanwendung nach dem Dateinamen angegeben werden.
$arg = new \Alvine\Application\Console\Argument('myCommand'); $arg->onMatch = function($obj, $cmd, $options) { // ... mache etwas mit $cmd und $options }; $arg->setDescription('Mein Befehl');
- Alvine\Core\Alvine
- Alvine\Application\Console\Argument
Namespace: Alvine\Application\Console
Package: Alvine\Application
Category: Alvine
License: Alvine Nutzungslizenz
Author: schukai GmbH info@schukai.de
Version: $Revision: 216 $
Since: 20140420
Link: alvine.io
Link: http://wiki.bash-hackers.org/scripting/terminalcodes
Located at console/Argument.class.php
Package: Alvine\Application
Category: Alvine
License: Alvine Nutzungslizenz
Author: schukai GmbH info@schukai.de
Version: $Revision: 216 $
Since: 20140420
Link: alvine.io
Link: http://wiki.bash-hackers.org/scripting/terminalcodes
Located at console/Argument.class.php
public
|
|
public
|
|
public
boolean
|
|
public
|
|
public
integer
|
|
public
|
#
execute( Alvine\Types\StringList $options = null, Alvine\Types\StringList $global = null )
Execute |
public
|
|
public
string
|
|
public
string
|
|
public
|
|
public
boolean
|
|
public
string
|
|
public
string
|
string |
GLOBALKEY
Name für globale Optionen |
#
'globalargument'
|
protected
string
|
$name
Name des Arguments. Für globale Argumente muss der Name Argument::GLOBALKEY sein. |
|
protected
boolean
|
$required
Argument muss angegeben werden |
|
protected
string
|
$description
Beschreibung für Hilfe |
|
protected
type
|
$option
Optionen |
|
protected
type
|
$position
|