fix: include author and version in clap

This commit is contained in:
Anna 2023-08-31 02:30:49 -04:00
parent fae0ab5b8f
commit fae036fda7
Signed by: anna
GPG Key ID: D0943384CD9F87D1
2 changed files with 2 additions and 0 deletions

View File

@ -1,6 +1,7 @@
[package]
name = "git-vain"
version = "0.1.0"
authors = ["Anna <git-vain@anna.lgbt>"]
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View File

@ -41,6 +41,7 @@ use sha1::{Digest, Sha1};
/// Providing a key file is orders of magnitude faster than providing a key ID,
/// since using a key ID goes through gpg-agent, which is very slow.
#[derive(Parser)]
#[command(author, version)]
struct Cli {
/// The commit to replace with a vanity hash.
#[arg(short, long, default_value_t = String::from("HEAD"))]