From: Michael Wallner Date: Sun, 22 Mar 2015 14:52:21 +0000 (+0100) Subject: be more strict in what arguments to accept X-Git-Tag: v3.0.0~20 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=d774f309d3216bf1923f6bd5b49ee0fb287e0ce7;p=pharext%2Fpharext be more strict in what arguments to accept --- diff --git a/bin/pharext b/bin/pharext index 8b7f25e..8e38598 100755 Binary files a/bin/pharext and b/bin/pharext differ diff --git a/src/pharext/Cli/Args.php b/src/pharext/Cli/Args.php index 49d85ab..f0b0498 100644 --- a/src/pharext/Cli/Args.php +++ b/src/pharext/Cli/Args.php @@ -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]); } }