From 82a2730a2fb437acc26c379dcf1036ecf6a8188b Mon Sep 17 00:00:00 2001 From: Gustavo Arnosti Neves Date: Sat, 20 May 2017 12:41:01 -0300 Subject: [PATCH] v1.0.7 - update to upstream getopt-php, to get trimmed options --- barcode.php | 2 +- .../getopt-php/src/Ulrichsg/Getopt/CommandLineParser.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/barcode.php b/barcode.php index a4cc76a..e179c00 100755 --- a/barcode.php +++ b/barcode.php @@ -14,7 +14,7 @@ require_once 'vendor/autoload.php'; -define("_BC_VERSION", "1.0.6"); +define("_BC_VERSION", "1.0.7"); # default padding for cli messages define("_BC_PADDING", 30); diff --git a/vendor/ulrichsg/getopt-php/src/Ulrichsg/Getopt/CommandLineParser.php b/vendor/ulrichsg/getopt-php/src/Ulrichsg/Getopt/CommandLineParser.php index 6544982..473827d 100644 --- a/vendor/ulrichsg/getopt-php/src/Ulrichsg/Getopt/CommandLineParser.php +++ b/vendor/ulrichsg/getopt-php/src/Ulrichsg/Getopt/CommandLineParser.php @@ -48,7 +48,7 @@ class CommandLineParser // should we also test for '-'? Or should we not test for either at all? // this is an operand, store and continue - if ($arg !== '--') $operands[] = $arguments[$i]; + if ($arg !== '--') $operands[] = $arg; continue; } if (mb_substr($arg, 0, 2) == '--') {