Commit 5a0dbcf8 authored by 4ast's avatar 4ast

Merge pull request #481 from iovisor/ast_dev

bcc-lua: switch to quiet by default
parents b6e0a545 fca28a59
......@@ -20,7 +20,7 @@ return function()
local function print_usage()
io.stderr:write(string.format(
"usage: %s [[--so-path=PATH|--version|--quiet] --] path_to_script.lua [...]\n",
"usage: %s [[--so-path=PATH|--version|--verbose] --] path_to_script.lua [...]\n",
progname))
os.exit(1)
end
......@@ -41,8 +41,8 @@ return function()
rawset(_G, "LIBBCC_SO_PATH", string.lstrip(k, "--so-path="))
elseif k == "--llvm-debug" then
rawset(_G, "LIBBCC_LLVM_DEBUG", 1)
elseif k == "-q" or k == "--quiet" then
log.enabled = false
elseif k == "-V" or k == "--verbose" then
log.enabled = true
elseif k == "-v" or k == "--version" then
print_version()
else
......
......@@ -169,5 +169,5 @@ setmetatable(_G, {
end,
})
rawset(_G, "log", { info = logline, enabled = true })
rawset(_G, "log", { info = logline, enabled = false })
rawset(_G, "class", require("bcc.vendor.middleclass"))
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment