From b70ae44d7ddf5b1eda5cbe7a6573a6884d09652d Mon Sep 17 00:00:00 2001 From: Kazuya Takei Date: Mon, 8 Apr 2024 01:33:08 +0900 Subject: [PATCH] refactor: Use env for binary name - This name has probability to change after Refs: #5, #8 --- src/commands.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands.rs b/src/commands.rs index 35ed4a4..0de8592 100644 --- a/src/commands.rs +++ b/src/commands.rs @@ -15,7 +15,7 @@ use crate::workspace::Workspace; const VERSION: &str = concat!("v", env!("CARGO_PKG_VERSION")); #[derive(Parser)] -#[command(name = "age", version = VERSION, about, long_about = None)] +#[command(name = env!("CARGO_BIN_NAME"), version = VERSION, about, long_about = None)] struct Cli { #[command(subcommand)] command: Option,