Long argument style working

This commit is contained in:
Jack-Benny Persson 2013-04-14 00:08:39 +02:00
parent bd676d52e8
commit 249a17b809
2 changed files with 6 additions and 1 deletions

Binary file not shown.

View File

@ -53,7 +53,7 @@ EOD;
$options = new Console_Getopt();
$shortoptions = "hV";
$longoptions = array("warning", "file", "md5");
$longoptions = array("warning", "file=", "md5");
$args = $options->readPHPArgv();
$ret = $options->getopt($args, $shortoptions, $longoptions);
@ -78,6 +78,11 @@ if(sizeof($opts) > 0)
case 'V':
print_version();
break;
case '--file':
$filename = $o[1];
echo $filename . "\n";
break;
}
}
}