Skip to content

Commit 8ee6765

Browse files
committed
Use defaults for crate authors and version in clap
1 parent c9310bb commit 8ee6765

File tree

1 file changed

+3
-5
lines changed
  • fortanix-vme/tools/elf2uki/src

1 file changed

+3
-5
lines changed

fortanix-vme/tools/elf2uki/src/main.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ use std::process::Command;
44
use std::{fs::File, path::PathBuf};
55

66
use anyhow::{anyhow, Context as _, Result};
7-
use clap::{crate_authors, crate_version, Args, Parser};
8-
use confidential_vm_blobs::{EFI_BOOT_STUB, INIT, KERNEL, maybe_vendored::MaybeVendoredImage};
7+
use clap::{Args, Parser};
8+
use confidential_vm_blobs::{maybe_vendored::MaybeVendoredImage, EFI_BOOT_STUB, INIT, KERNEL};
99
use tempfile::NamedTempFile;
1010

1111
mod initramfs;
@@ -29,8 +29,7 @@ mod initramfs;
2929
/// ```
3030
#[derive(Parser, Debug)]
3131
#[command(name = "Elf2Uki")]
32-
#[command(version = crate_version!())]
33-
#[command(author = crate_authors!())]
32+
#[command(version, author)]
3433
#[command(
3534
about = "Assemble UKI files from their constituents",
3635
long_about = "Receive paths to the different building blocks of a UKI file as input, and output the resulting UKI file"
@@ -86,7 +85,6 @@ struct NonDefaultedArgs {
8685
kernel_cmdline: Option<String>,
8786
}
8887

89-
9088
pub fn open_file(path: &Path) -> Result<File> {
9189
File::open(path).with_context(|| format!("failed to open file at path {}", path.display()))
9290
}

0 commit comments

Comments
 (0)