<?php

require "./vendor/autoload.php";

echo "---< MXCMD >---\n\n";

try {
    array_shift($argv);
    Elegance\MxCmd::run(implode(' ', $argv));
} catch (Exception | Error $e) {
    Elegance\MxCmd::show('ERROR');
    Elegance\MxCmd::show(' | [#]', $e->getMessage());
    Elegance\MxCmd::show(' | [#] ([#])', [$e->getFile(), $e->getLine()]);
}

echo "\n---< MXCMD >---\n";

die;