Example #1
0
    {

    }
}
*/
/**
 * Configuration
 */
require_once __DIR__ . '/../lib/Application.php';
$glyph = new Application();
// Check input
if (empty($argv[1])) {
    //print("Error[01]: No file specified\n");
    $glyph->error(01, 'No file specified');
} else {
    $inputFile = $argv[1];
    print "File: {$inputFile}\n";
    $ext = $glyph->getFileExtension($inputFile);
    if ($ext) {
        if ($ext != 'glyph') {
            print "Error[02]: File extension not .glyph\n";
            return -1;
        }
    } else {
        //$glyph->error();
        print "Error[03]: Cannot find filetype\n";
    }
}
/**
 * Main
 */