diff --git a/.check_md5.php.swp b/.check_md5.php.swp index 1f9e1a0..93debd8 100644 Binary files a/.check_md5.php.swp and b/.check_md5.php.swp differ diff --git a/check_md5.php b/check_md5.php index 4289d31..003865a 100755 --- a/check_md5.php +++ b/check_md5.php @@ -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; } } }