From b3f4a77a73e02573e2c39007d314d68511b7ea49 Mon Sep 17 00:00:00 2001 From: tritium0041 Date: Sun, 28 Apr 2024 22:06:11 +0800 Subject: [PATCH] =?UTF-8?q?docs:=E5=A2=9E=E5=8A=A0=E9=80=89=E6=8B=A9?= =?UTF-8?q?=E6=A3=80=E6=B5=8B=E6=A8=A1=E5=BC=8F=E7=9A=84=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/usage.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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 ``` ## 结果解读