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) == '--') {