命令行选项中文bug

浏览:411 发布日期:2019/12/24
5.0.0 - 普通 - 未处理
版本 TP6

中文的“公”字显示有问题protected function configure()
{
    $this->setName('t')
        ->addOption('weight', 'w', Option::VALUE_REQUIRED, '重量(公斤)');
}
使用帮助命令php think t --help打印出Usage:
  qt [options]

Options:
  -w, --weight=WEIGHT   重量(
                                     斤)
  -h, --help            Display this help message
  -V, --version         Display this console version
  -q, --quiet           Do not output any message
      --ansi            Force ANSI output
      --no-ansi         Disable ANSI output
  -n, --no-interaction  Do not ask any interactive question
  -v|vv|vvv, --verbose  Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
“公”字被换行与缩进替换了
评论()
后面还有条评论,点击查看>>