projects
/
pharext
/
pharext
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
| inline |
side by side
be more strict in what arguments to accept
[pharext/pharext]
/
src
/
pharext
/
Cli
/
Args.php
diff --git
a/src/pharext/Cli/Args.php
b/src/pharext/Cli/Args.php
index 49d85ab7cb84133b069b1bcdbf665eded066da2b..f0b0498daf521a91dc83e36cb3fa7f20122b3705 100644
(file)
--- 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]);
}
}