From 0536f8a239be312b1626f2eba86d04c5ebf29cdd Mon Sep 17 00:00:00 2001 From: Kevin Amado Date: Thu, 4 Aug 2022 21:32:55 -0600 Subject: [PATCH] fix: name in the cli - It was previously inheriting the name of the binary --- src/alejandra_cli/src/cli.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/alejandra_cli/src/cli.rs b/src/alejandra_cli/src/cli.rs index 82f3a68..b87ae15 100644 --- a/src/alejandra_cli/src/cli.rs +++ b/src/alejandra_cli/src/cli.rs @@ -19,7 +19,13 @@ const AFTER_HELP: &str = indoc::indoc! {" /// The Uncompromising Nix Code Formatter. #[derive(Debug, Parser)] -#[clap(version, after_help = AFTER_HELP, term_width = 80)] +#[clap( + name="Alejandra", + + after_help = AFTER_HELP, + term_width = 80, + version, +)] struct Args { /// Files or directories, or a single "-" (or leave empty) to format stdin. #[clap(multiple_values = true)]