docs(net-filter): clarify optional debug argument usage - #148
Open
yuKing123-king wants to merge 1 commit into
Open
yuKing123-king wants to merge 1 commit into
yuKing123-king wants to merge 1 commit into
Conversation
PR Reviewer Guide 🔍(Review updated until commit c93dd22)Here are some key observations to aid the review process:
|
yuKing123-king
force-pushed
the
fix/net-filter-debug-help
branch
from
September 14, 2026 06:55
05d29e7 to
f4d6fef
Compare
|
Persistent review updated to latest commit f4d6fef |
yuKing123-king
force-pushed
the
fix/net-filter-debug-help
branch
2 times, most recently
from
September 14, 2026 08:26
552f236 to
b9d54a7
Compare
|
Persistent review updated to latest commit 552f236 |
yuKing123-king
force-pushed
the
fix/net-filter-debug-help
branch
from
September 14, 2026 08:27
b9d54a7 to
c24c9c6
Compare
Signed-off-by: Wang Yu <wangyu6@uniontech.com>
yuKing123-king
force-pushed
the
fix/net-filter-debug-help
branch
from
September 14, 2026 08:27
c24c9c6 to
c93dd22
Compare
|
Persistent review updated to latest commit c24c9c6 |
|
Persistent review updated to latest commit c93dd22 |
1 similar comment
|
Persistent review updated to latest commit c93dd22 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
修复 net-filter debug 参数帮助信息不准确的问题。
当前 --debug/-d 使用 optional_argument,按 getopt_long 语义,短选项带值需要写成 -d9,长选项带值需要写成 --debug=9。写成 -d 9 或 --debug 9 时,9 会被当作普通位置参数,optarg 为空,实际不会设置 debug level。
本次修改只更新 help 文案,明确提示:
这样可以避免用户按错误形式传参后误以为 debug level 已生效.