瀏覽代碼

v1.0.7 - update to upstream getopt-php, to get trimmed options

master
父節點
當前提交
82a2730a2f
共有 2 個檔案被更改,包括 2 行新增2 行删除
  1. +1
    -1
      barcode.php
  2. +1
    -1
      vendor/ulrichsg/getopt-php/src/Ulrichsg/Getopt/CommandLineParser.php

+ 1
- 1
barcode.php 查看文件

@@ -14,7 +14,7 @@


require_once 'vendor/autoload.php'; require_once 'vendor/autoload.php';


define("_BC_VERSION", "1.0.6");
define("_BC_VERSION", "1.0.7");


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


+ 1
- 1
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? // should we also test for '-'? Or should we not test for either at all?


// this is an operand, store and continue // this is an operand, store and continue
if ($arg !== '--') $operands[] = $arguments[$i];
if ($arg !== '--') $operands[] = $arg;
continue; continue;
} }
if (mb_substr($arg, 0, 2) == '--') { if (mb_substr($arg, 0, 2) == '--') {


Loading…
取消
儲存