Skip to content

Commit 82a2730

Browse files
committed
v1.0.7 - update to upstream getopt-php, to get trimmed options
1 parent d413153 commit 82a2730

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

barcode.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
require_once 'vendor/autoload.php';
1616

17-
define("_BC_VERSION", "1.0.6");
17+
define("_BC_VERSION", "1.0.7");
1818

1919
# default padding for cli messages
2020
define("_BC_PADDING", 30);

vendor/ulrichsg/getopt-php/src/Ulrichsg/Getopt/CommandLineParser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function parse($arguments)
4848
// should we also test for '-'? Or should we not test for either at all?
4949
5050
// this is an operand, store and continue
51-
if ($arg !== '--') $operands[] = $arguments[$i];
51+
if ($arg !== '--') $operands[] = $arg;
5252
continue;
5353
}
5454
if (mb_substr($arg, 0, 2) == '--') {

0 commit comments

Comments
 (0)