fixed $argv in webserver mode,
added Basic usage and Outputs into README
This commit is contained in:
@ -28,7 +28,7 @@ class APIlite
|
||||
$this->doAction($_REQUEST['action']);
|
||||
} else {
|
||||
global $argv;
|
||||
$switches = array_map('strtolower', $argv);
|
||||
$switches = array_map('strtolower', is_array($argv) ? $argv : []);
|
||||
if ((isset($_REQUEST['format']) && $_REQUEST['format'] == 'html') || in_array('--html', $switches)) {
|
||||
$this->printHelpHTML();
|
||||
} elseif ((isset($_REQUEST['format']) && $_REQUEST['format'] == 'typescript') || in_array('--typescript', $switches)) {
|
||||
|
||||
Reference in New Issue
Block a user