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() ...@@ -20,7 +20,7 @@ return function()
local function print_usage() local function print_usage()
io.stderr:write(string.format( 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)) progname))
os.exit(1) os.exit(1)
end end
...@@ -41,8 +41,8 @@ return function() ...@@ -41,8 +41,8 @@ return function()
rawset(_G, "LIBBCC_SO_PATH", string.lstrip(k, "--so-path=")) rawset(_G, "LIBBCC_SO_PATH", string.lstrip(k, "--so-path="))
elseif k == "--llvm-debug" then elseif k == "--llvm-debug" then
rawset(_G, "LIBBCC_LLVM_DEBUG", 1) rawset(_G, "LIBBCC_LLVM_DEBUG", 1)
elseif k == "-q" or k == "--quiet" then elseif k == "-V" or k == "--verbose" then
log.enabled = false log.enabled = true
elseif k == "-v" or k == "--version" then elseif k == "-v" or k == "--version" then
print_version() print_version()
else else
......
...@@ -169,5 +169,5 @@ setmetatable(_G, { ...@@ -169,5 +169,5 @@ setmetatable(_G, {
end, end,
}) })
rawset(_G, "log", { info = logline, enabled = true }) rawset(_G, "log", { info = logline, enabled = false })
rawset(_G, "class", require("bcc.vendor.middleclass")) 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