Skip to content

Commit 31707e4

Browse files
committed
improve(fortanix-vme-runner): use doc comments over explicit help in
clap
1 parent 1f4cf12 commit 31707e4

File tree

2 files changed

+7
-10
lines changed

2 files changed

+7
-10
lines changed

fortanix-vme/fortanix-vme-runner/src/main.rs

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -81,17 +81,12 @@ struct AwsNitroCli {
8181

8282
#[derive(Clone, Debug, Args)]
8383
struct AmdSevSnpArgs {
84-
#[arg(
85-
long = "firmware-image",
86-
help = "Path to the firmware image file, defaulting to the relevant vendored image if not provided"
87-
)]
84+
/// Path to the firmware image file, defaulting to the relevant vendored image if not provided
85+
#[arg(long = "firmware-image")]
8886
firmware_image_path: Option<PathBuf>,
8987

90-
#[arg(
91-
long,
92-
help = "Name for the enclave in the runner",
93-
default_value = "FortanixVm"
94-
)]
88+
/// Name for the enclave in the runner
89+
#[arg(long, default_value = "FortanixVm")]
9590
enclave_name: String,
9691

9792
#[arg(last = true)]

fortanix-vme/fortanix-vme-tools/src/bin/ftxvme-runner-cargo.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,10 @@ struct AwsNitroCli {
4444

4545
/// Arguments inserted by cargo itself at the end of the invocation
4646
#[derive(Clone, Debug, Args)]
47+
#[command(about = "")]
4748
struct CargoArgs {
48-
#[arg(help = "Path to the x86_64-unknown-linux-fortanixvme ELF binary", value_parser=parse_elf_path)]
49+
/// Path to the x86_64-unknown-linux-fortanixvme ELF binary
50+
#[arg(value_parser=parse_elf_path)]
4951
elf_path: PathBuf,
5052

5153
#[arg(trailing_var_arg = true)]

0 commit comments

Comments
 (0)