Sync CLI help and README

This commit is contained in:
2026-04-17 10:26:27 +08:00
parent eb8c76492c
commit 014dc88a33
3 changed files with 4 additions and 0 deletions

View File

@@ -7,6 +7,7 @@ source "${ROOT_DIR}/tests/lib/assert.sh"
help_output=$("${ROOT_DIR}/iptables-forward.sh" --help)
assert_contains "${help_output}" '--batch add <proto> <listen_port> <target_ip> <target_port> <ipver> [desc]' 'main script help should describe batch add'
assert_contains "${help_output}" './iptables-forward.sh --batch env' 'main script help should describe batch env'
install_help=$("${ROOT_DIR}/install.sh" --help)
assert_contains "${install_help}" '仅创建符号链接,不复制源码。' 'install help should explain symlink behavior'