From d774f309d3216bf1923f6bd5b49ee0fb287e0ce7 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Sun, 22 Mar 2015 15:52:21 +0100 Subject: [PATCH] be more strict in what arguments to accept --- bin/pharext | Bin 47489 -> 47490 bytes src/pharext/Cli/Args.php | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/pharext b/bin/pharext index 8b7f25ef84da50a40efb37d8267107adde49a44c..8e385989c2d14bcf8cf95ab55ebd041a9b6a2db7 100755 GIT binary patch delta 184 zcmZqt%+&OmX+yJ=fUYD1L;O{~P!OGC`cHiFWGQu~_^XrmNa=#8*APldS|7yombL&< ztsLsunVD2P72KJonI$x`Y}U6qsfNa=#8*APldS|7yombL&< zt0$Ms&2@CuGaE*k>(yDhe-Aj`)?{K}U~qTxbpikl%|RUi 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]); } } -- 2.30.2