#!/usr/bin/env php . */ try { include __DIR__ . '/vendor/autoload.php'; $parameters = []; if (isset($argv[1])) { $parameters['type'] = $argv[1]; } else { $parameters['type'] = ''; } if (isset($argv[2])) { $parameters['file'] = $argv[2]; } else { $parameters['file'] = ''; } new \hearot\MadelineClient\MadelineClient($parameters); } catch (Exception $e) { echo 'Error: ' . $e->getMessage() . PHP_EOL; } __HALT_COMPILER();