be more strict in what arguments to accept
[pharext/pharext] / src / pharext / Cli / Args.php
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]);
                        }
                }