Class Arguments
Static class for getting options and argumets from command-line.
public static
array
|
#
options(
)
Return array of options with their values in command-line. Options are prepared
for better work. <pre> --abc="xxx" => ('abc' => 'xxx') --abc ="xxx"
=> ('abc' => 'xxx') --abc "xxx" => ('abc' => 'xxx') -abc="xxx" =>
('a' => TRUE, 'b' => TRUE, 'c' => 'xxx') -abc "xxx" => ('a' =>
TRUE, 'b' => TRUE, 'c' => 'xxx') -abc ="xxx" => ('a' => TRUE, 'b'
=> TRUE, 'c' => 'xxx') -a -bc ="xxx" => ('a' => TRUE, 'b' =>
TRUE, 'c' => 'xxx') </pre>
Return array of options with their values in command-line. Options are prepared for better work.
--abc="xxx" => ('abc' => 'xxx')
--abc ="xxx" => ('abc' => 'xxx')
--abc "xxx" => ('abc' => 'xxx')
-abc="xxx" => ('a' => TRUE, 'b' => TRUE, 'c' => 'xxx')
-abc "xxx" => ('a' => TRUE, 'b' => TRUE, 'c' => 'xxx')
-abc ="xxx" => ('a' => TRUE, 'b' => TRUE, 'c' => 'xxx')
-a -bc ="xxx" => ('a' => TRUE, 'b' => TRUE, 'c' => 'xxx')
Returnsarray([option] => [value], ...) |
public static
array
|
#
getArguments(
)
Return array of arguments in command-line.
Return array of arguments in command-line. Returnsarray |