diff --git a/src/cli.rs b/src/cli.rs index 9f24de5..f9e8e32 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -1,6 +1,8 @@ use clap::Parser; // 构建命令行工具的结构体 +/// cvrf2cusa 是一个用于将 CVRF(Common Vulnerability Reporting Framework)格式的安全报告转换为 +/// CUSA(CULinux Security Advisory)的工具,其输入格式为 Xml ,输出格式则为 Json。 #[derive(Clone, Debug, Parser)] #[command(author, version, about, long_about = None)] pub struct Cli { @@ -18,6 +20,7 @@ pub struct Cli { pub print: bool, } +// 从命令行环境变量读取并转换为 `Cli` pub fn parse() -> Cli { Cli::parse() -} \ No newline at end of file +}