be more strict in what arguments to accept
authorMichael Wallner <mike@php.net>
Sun, 22 Mar 2015 14:52:21 +0000 (15:52 +0100)
committerMichael Wallner <mike@php.net>
Sun, 22 Mar 2015 14:52:21 +0000 (15:52 +0100)
bin/pharext
src/pharext/Cli/Args.php

index 8b7f25ef84da50a40efb37d8267107adde49a44c..8e385989c2d14bcf8cf95ab55ebd041a9b6a2db7 100755 (executable)
Binary files a/bin/pharext and b/bin/pharext differ
index 49d85ab7cb84133b069b1bcdbf665eded066da2b..f0b0498daf521a91dc83e36cb3fa7f20122b3705 100644 (file)
@@ -167,7 +167,7 @@ class Args implements \ArrayAccess
                        return $spec[3] & self::REQUIRED;
                });
                foreach ($required as $req) {
-                       if (!isset($this[$req[0]])) {
+                       if (!strlen($this[$req[0]])) {
                                yield sprintf("Option --%s is required", $req[1]);
                        }
                }