diff --git a/docs/usage.md b/docs/usage.md index c905362..f712e82 100644 --- a/docs/usage.md +++ b/docs/usage.md @@ -26,7 +26,7 @@ pip install packaging reportlab **命令格式**: ```bash -python requirements_detection.py -o +python requirements_detection.py -o ``` **参数说明**: @@ -35,6 +35,7 @@ python requirements_detection.py -o < - ``: 项目的 `requirements.txt` 文件路径。 - ``: 指定输出结果的文件路径和格式,支持的格式有 `.txt`, `.md`, `.html`, `.pdf`。 + **示例**: ```bash @@ -46,18 +47,19 @@ python requirements_detection.py vulnerabilities_data.txt requirements.txt -o ou **命令格式**: ```bash -python backdoor_detection.py -o +python backdoor_detection.py -o -m ``` **参数说明**: - ``: 代码文件或目录的路径。 - ``: 指定输出结果的文件路径和格式,支持的格式有 `.txt`, `.md`, `.html`, `.pdf`。 +- ``: 指定检测模式,目前支持的模式有 `regex` 和 `llm`。 **示例**: ```bash -python backdoor_detection.py ./src -o output/report.pdf +python backdoor_detection.py ./src -o output/report.pdf -m regex ``` ## 结果解读