From 8563f5602555544cd4c9400d25ae920fdcefeb5f Mon Sep 17 00:00:00 2001 From: Kiritow <1362050620@qq.com> Date: Sat, 12 Jan 2019 02:34:42 +0800 Subject: [PATCH] Update document --- DOC_Grab.md | 23 ++++++++++++++++++++++- DOC_Grab_zhCN.md | 25 +++++++++++++++++++++++-- DOC_zhCN.md | 10 ---------- README.md | 2 +- README_zhCN.md | 2 +- 5 files changed, 47 insertions(+), 15 deletions(-) delete mode 100644 DOC_zhCN.md diff --git a/DOC_Grab.md b/DOC_Grab.md index 5d79888..9bfbd87 100644 --- a/DOC_Grab.md +++ b/DOC_Grab.md @@ -29,6 +29,23 @@ Given a file which will be loaded and returns a proxy function like: function(Url : string): boolean, string + +*--bin=\* + + Set binary install root path. Default to /usr/bin + +*--lib=\* + + Set library install root path. Default to /usr/lib + +*-f* , *--force* + + Force overwrite existing files. + +*-y* , *--yes* + + Skip interactive confirm. + The interactive confirm is required only when libraries to be installed have dependencies *--skip-install* @@ -46,7 +63,11 @@ **install \ ...** - Install projects. Dependency will be downloaded automatically. + Install projects. Dependency will be installed automatically. + +**uninstall \ ...** + + Uninstall projects. Dependency will NOT be removed automatically. **verify \ ...** diff --git a/DOC_Grab_zhCN.md b/DOC_Grab_zhCN.md index d8dec37..2019649 100644 --- a/DOC_Grab_zhCN.md +++ b/DOC_Grab_zhCN.md @@ -29,6 +29,23 @@ 加载一个文件,这个文件应返回如下类型的函数: function(网址 : string): boolean, string + +*--bin=\<路径>* + + 设置命令文件安装位置. 默认是 /usr/bin + +*--lib=\<路径>* + + 设置库文件安装位置. 默认是 /usr/lib + +*-f* , *--force* + + 强制覆盖已存在的文件 + +*-y* , *--yes* + + 跳过交互式确认. + 仅当安装的包具有依赖库时才需要交互式确认 *--skip-install* @@ -38,7 +55,7 @@ 通过此选项指定拒绝的协议. 用英文逗号分隔多个协议名称. -*--accept-license=\<协议> * +*--accept-license=\<协议>* 通过此选项指定接受的协议. 用英文逗号分隔多个协议名称. @@ -46,7 +63,11 @@ **install \<包名> ...** - 安装对应的包. 依赖库会被自动下载. + 安装对应的包. 依赖库会被自动下载并安装. + +**uninstall \<包名> ...** + + 卸载并删除对应的包. 依赖库不会被自动删除. **verify \<程序列表> ...** diff --git a/DOC_zhCN.md b/DOC_zhCN.md deleted file mode 100644 index fc859d0..0000000 --- a/DOC_zhCN.md +++ /dev/null @@ -1,10 +0,0 @@ -# 使用文档 - -[Libevent](libevent.lua) 提供更强大易用的事件处理操作 - -[FSC](fsc.lua) 游戏内文件传输客户端 - -[FSS](fss.lua) 游戏内文件传输服务端 - -[MineSweeper](MineSweeper.lua) 扫雷游戏 - diff --git a/README.md b/README.md index af02c90..d6fb155 100644 --- a/README.md +++ b/README.md @@ -29,4 +29,4 @@ Then start it with: `grab` -For more information about Grab, see [Grab Documentation](DOC_Grab.md) \ No newline at end of file +For more information about Grab, run `grab --help` (recommended) or see [Grab Documentation](DOC_Grab.md) \ No newline at end of file diff --git a/README_zhCN.md b/README_zhCN.md index 7f0f381..d061fec 100644 --- a/README_zhCN.md +++ b/README_zhCN.md @@ -32,4 +32,4 @@ `grab` -可通过查看[Grab文档](DOC_Grab_zhCN.md)了解更多用法. \ No newline at end of file +推荐使用`grab --help`查看帮助(英文),也可通过查看[Grab文档](DOC_Grab_zhCN.md)了解更多用法. \ No newline at end of file