diff options
author | mpeterv <mpeterval@gmail.com> | 2016-04-18 10:56:29 +0300 |
---|---|---|
committer | mpeterv <mpeterval@gmail.com> | 2016-04-18 10:56:29 +0300 |
commit | c06845138f57eefabd28f000c3db795fad3185b1 (patch) | |
tree | cb14b839a53ed43026dba1ab7f795971e278628f | |
parent | ed7961aaaa89eefed81a33c35a50b2bf1c2f2667 (diff) | |
download | luacov-c06845138f57eefabd28f000c3db795fad3185b1.tar.gz |
Update CLI help message
-rwxr-xr-x | src/bin/luacov | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/src/bin/luacov b/src/bin/luacov index 60c477a..3bf0298 100755 --- a/src/bin/luacov +++ b/src/bin/luacov @@ -5,35 +5,37 @@ local patterns = {} local configfile local reporter -local help_message = [[ -luacov - coverage analyzer for Lua scripts +local help_message = ([[ +LuaCov %s - coverage analyzer for Lua scripts Usage: luacov [options] [pattern...] Launch your Lua programs with -lluacov to perform accounting. - Launch this script to generate a report from collected stats. - By default it reports on every Lua file encountered running your script. To filter filenames, pass one or more Lua patterns matching - files to be inclueded in the command line, or use a config. + files to be included in the command line, or use a config. Options: -c filename, --config filename - Use a config file, .luacov by default. For details see - luacov.defaults module. + Use a config file, .luacov by default. For details see + luacov.defaults module. -r name, --reporter name - Use a custom reporter - a module in luacov.reporter.* namespace. + Use a custom reporter - a module in luacov.reporter.* namespace. + + -h, --help -Example: + Show this help message and exit. + +Examples: luacov foo/bar - - This will report only on modules in the foo/bar subtree. -]] + + This will report only on modules in the foo/bar subtree. +]]):format(runner.version) local function read_key(i) if arg[i]:sub(1, 1) ~= "-" or #arg[i] == 1 then |