X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=src%2Fpharext%2FCli%2FArgs.php;h=f0b0498daf521a91dc83e36cb3fa7f20122b3705;hb=d774f309d3216bf1923f6bd5b49ee0fb287e0ce7;hp=49d85ab7cb84133b069b1bcdbf665eded066da2b;hpb=d24bb2bd69ba76871bd239ca1e0ba98a5eeaab5d;p=pharext%2Fpharext 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]); } }