This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import std.stdio; | |
import std.file; | |
import std.path : buildPath; | |
import std.exception : enforce; | |
int main(string[] args) | |
{ | |
string root; | |
string file; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
try | |
{ | |
list($id, $path) = parse_argv($argv); | |
$links = get_links($id); | |
if(($link_count = sizeof($links)) === 0) | |
{ | |
echo 'No links were found.'.PHP_EOL; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$begin = microtime(TRUE); | |
$args = parse_argv($argv); | |
echo PHP_EOL.'Processing the file...'.PHP_EOL; | |
$contents = file($args['in'], FILE_IGNORE_NEW_LINES); | |
$difference = $args['diff']; | |
$out = isset($args['out']) ? $args['out'] : $args['in']; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
define('USAGE', 'Usage : php '.$argv[0].' --package package_name [--path '.__DIR__.'] [--dependencies] [--overwrite] [--nocache] [--help]'.PHP_EOL); | |
if($argc == 1) | |
{ | |
echo USAGE; | |
exit; | |
} | |
try |
NewerOlder