public function getArgs(int $argc, array $argv)
    {
        if ($argc == 1) {
            Output::displayAsGreen(
                "Welcome to the Framework Console Manager\n".
                "I noticed that you didn't enter any parameters.\n".
                "For more information, you can use the help command to get a command list."
            );
        }

        $c = $this->searchCommand($argv[1]);
        if (empty($c)) {
            CoreManager::setCurrentModule("Error");
            $predict = (PredictionManager::parsePredict($argv[1]));
            if (empty($predict)) {
                Output::displayAsError("Command not found.\n".
                    "For more information, you can use the [help] command to get a command list.");
            } else {
                Output::displayAsError("Input [".$argv[1]."] is ambigus.\n".
                    "To get command list, use [help] keyword.\n\n".
                    PredictionManager::structMessage($predict));
            }
        }

        $p = ParseManager::parse($argv);
        $ref = new Reflex();
        $ref->__simple($c['class'], $p);
    }
public function getArgs(int $argc, array $argv)
    {
        if ($argc == 1) {
            Output::displayAsGreen(
                "Welcome to the Framework Console Manager\n".
                "I noticed that you didn't enter any parameters.\n".
                "For more information, you can use the help command to get a command list."
            );
        }

        $c = $this->searchCommand($argv[1]);
        if (empty($c)) {
            CoreManager::setCurrentModule("Error");
            $predict = (PredictionManager::parsePredict($argv[1]));
            if (empty($predict)) {
                Output::displayAsError("Command not found.\n".
                    "For more information, you can use the [help] command to get a command list.");
            } else {
                Output::displayAsError("Input [".$argv[1]."] is ambigus.\n".
                    "To get command list, use [help] keyword.\n\n".
                    PredictionManager::structMessage($predict));
            }
        }

        $p = ParseManager::parse($argv);
        $ref = new Reflex();
        $ref->__simple($c['class'], $p);
    }
public function getArgs ( int $ argc , array $ argv ) { if ( $ argc == 1 ) { Output :: displayAsGreen ( "Welcome to the Framework Console Manager\n" . "I noticed that you didn't enter any parameters.\n" . "For more information, you can use the help command to get a command list." ) ; } $ c = $ this -> searchCommand ( $ argv [ 1 ] ) ; if ( empty ( $ c ) ) { CoreManager :: setCurrentModule ( "Error" ) ; $ predict = ( PredictionManager :: parsePredict ( $ argv [ 1 ] ) ) ; if ( empty ( $ predict ) ) { Output :: displayAsError ( "Command not found.\n" . "For more information, you can use the [help] command to get a command list." ) ; } else { Output :: displayAsError ( "Input [" . $ argv [ 1 ] . "] is ambigus.\n" . "To get command list, use [help] keyword.\n\n" . PredictionManager :: structMessage ( $ predict ) ) ; } } $ p = ParseManager :: parse ( $ argv ) ; $ ref = new Reflex ( ) ; $ ref -> __simple ( $ c [ 'class' ] , $ p ) ; }
Get prompt arguments
@param int $argc Argument number
@param array $argv Arguments
@throws \Exception
Get prompt arguments