diff options
| author | Hisham Muhammad <hisham@gobolinux.org> | 2018-04-16 14:43:08 -0300 |
|---|---|---|
| committer | Hisham Muhammad <hisham@gobolinux.org> | 2018-04-16 14:44:00 -0300 |
| commit | d7c9f4b6d6d44d3b6b668fa2e3084a01a09fd80a (patch) | |
| tree | 31fbe3f55ec1b4fe8492b154f638eb600d5b3496 /src | |
| parent | 6a80773c03f41823e68305a1dd6fbe4161cdd5a7 (diff) | |
| download | luarocks-d7c9f4b6d6d44d3b6b668fa2e3084a01a09fd80a.tar.gz luarocks-d7c9f4b6d6d44d3b6b668fa2e3084a01a09fd80a.tar.bz2 luarocks-d7c9f4b6d6d44d3b6b668fa2e3084a01a09fd80a.zip | |
Add config file format link in `luarocks help config`
Closes #280.
Diffstat (limited to 'src')
| -rw-r--r-- | src/luarocks/cmd/config.lua | 4 | ||||
| -rw-r--r-- | src/luarocks/cmd/help.lua | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/luarocks/cmd/config.lua b/src/luarocks/cmd/config.lua index b68f7898..e18ab0b8 100644 --- a/src/luarocks/cmd/config.lua +++ b/src/luarocks/cmd/config.lua | |||
| @@ -21,6 +21,10 @@ config_cmd.help = [[ | |||
| 21 | 21 | ||
| 22 | --rock-trees Rocks trees in use. First the user tree, then the system tree. | 22 | --rock-trees Rocks trees in use. First the user tree, then the system tree. |
| 23 | ]] | 23 | ]] |
| 24 | config_cmd.help_see_also = [[ | ||
| 25 | https://github.com/luarocks/luarocks/wiki/Config-file-format | ||
| 26 | for detailed information on the LuaRocks config file format. | ||
| 27 | ]] | ||
| 24 | 28 | ||
| 25 | local function config_file(conf) | 29 | local function config_file(conf) |
| 26 | print(dir.normalize(conf.file)) | 30 | print(dir.normalize(conf.file)) |
diff --git a/src/luarocks/cmd/help.lua b/src/luarocks/cmd/help.lua index d58fdcc0..18620b9e 100644 --- a/src/luarocks/cmd/help.lua +++ b/src/luarocks/cmd/help.lua | |||
| @@ -108,6 +108,9 @@ function help.command(flags, command) | |||
| 108 | print_section("DESCRIPTION") | 108 | print_section("DESCRIPTION") |
| 109 | util.printout("",(cmd.help:gsub("\n","\n\t"):gsub("\n\t$",""))) | 109 | util.printout("",(cmd.help:gsub("\n","\n\t"):gsub("\n\t$",""))) |
| 110 | print_section("SEE ALSO") | 110 | print_section("SEE ALSO") |
| 111 | if cmd.help_see_also then | ||
| 112 | util.printout(cmd.help_see_also) | ||
| 113 | end | ||
| 111 | util.printout("","'"..program.." help' for general options and configuration.\n") | 114 | util.printout("","'"..program.." help' for general options and configuration.\n") |
| 112 | else | 115 | else |
| 113 | return nil, "Unknown command: "..command | 116 | return nil, "Unknown command: "..command |
