Skip to content

Commit

Permalink
feat: add "-v" flag for verbosity in apisix start (#10107)
Browse files Browse the repository at this point in the history
  • Loading branch information
Revolyssup authored Sep 7, 2023
1 parent bb228fa commit 0847429
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apisix/cli/ops.lua
Original file line number Diff line number Diff line change
Expand Up @@ -811,7 +811,7 @@ local function start(env, ...)
parser:argument("_", "Placeholder")
parser:option("-c --config", "location of customized config.yaml")
-- TODO: more logs for APISIX cli could be added using this feature
parser:flag("--verbose", "show init_etcd debug information")
parser:flag("-v --verbose", "show init_etcd debug information")
local args = parser:parse()

local customized_yaml = args["config"]
Expand Down
2 changes: 1 addition & 1 deletion docs/en/latest/FAQ.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ Mainland China users can use `luarocks.cn` as the LuaRocks server. You can use t
make deps ENV_LUAROCKS_SERVER=https://luarocks.cn
```

If this does not solve your problem, you can try getting a detailed log by using the `--verbose` flag to diagnose the problem.
If this does not solve your problem, you can try getting a detailed log by using the `--verbose` or `-v` flag to diagnose the problem.

## How do I build the APISIX-Base environment?

Expand Down
2 changes: 1 addition & 1 deletion docs/zh/latest/FAQ.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ luarocks config rocks_servers
make deps ENV_LUAROCKS_SERVER=https://luarocks.cn
```

如果通过上述操作仍然无法解决问题,可以尝试使用 `--verbose` 参数获取详细的日志来诊断问题。
如果通过上述操作仍然无法解决问题,可以尝试使用 `--verbose` `-v` 参数获取详细的日志来诊断问题。

## 如何构建 APISIX-Base 环境?

Expand Down

0 comments on commit 0847429

Please sign in to comment.