Skip to content

Commit 6b7475c

Browse files
committed
update readme
1 parent 189051b commit 6b7475c

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,18 @@
88

99
> 无其他库依赖,可以方便的整合到任何已有项目中。
1010
11+
- 命令行应用, 命令行的 `controller`, `command` 解析运行, 支持给命令设置别名
1112
- 功能全面的命令行的选项参数解析(命名参数,短选项,长选项 ...)
12-
- 命令行应用, 命令行的 `controller`, `command` 解析运行。(支持命令别名)
1313
- 命令行中功能强大的 `input`, `output` 管理、使用
14+
- 内置了Phar工具类,可以方便的将应用打包成 `phar` 文件(运行示例中 `php examples/app phar:pack`, 会将console库打包成一个`app.phar`)
1415
- 消息文本的多种颜色风格输出支持(`info`, `comment`, `success`, `danger`, `error` ... ...)
1516
- 丰富的特殊格式信息显示(`section`, `panel`, `padding`, `help-panel`, `table`, `title`, `list`, `multiList`, `progressBar`)
1617
- 常用的用户信息交互支持(`select`, `multiSelect`, `confirm`, `ask/question`, `askPassword/askHiddenInput`)
1718
- 命令方法注释自动解析为帮助信息(提取为参数 `arguments` 和 选项 `options` 等信息)
18-
- 类似 `symfony/console` 的预定义参数定义支持(按位置赋予参数值)
19+
- 支持类似 `symfony/console` 的预定义参数定义(按位置赋予参数值)
1920
- 输出是 windows,linux 兼容的,不支持颜色的环境会自动去除相关CODE
2021

21-
> 下面所有的特性,效果都是运行 `examples/` 中的示例代码 `php examples/app` 展示出来的。下载后可以直接测试体验
22+
> 下面所有的特性,效果都是运行 `examples/` 中的示例代码 `php examples/app` 展示出来的。可以直接测试运行
2223
2324
## [EN README](./README_en.md)
2425

src/Components/PharCompiler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ public function pack(string $pharFile, $refresh = true): string
276276
unlink($pharFile);
277277
}
278278

279-
$this->pharFile = realpath($pharFile);
279+
$this->pharFile = $pharFile;
280280
$this->pharName = $pharName = basename($this->pharFile);
281281

282282
$this->collectInformation();

0 commit comments

Comments
 (0)