1
Fork 0
mirror of https://github.com/RGBCube/alejandra synced 2025-07-31 12:37:45 +00:00

fix: name in the cli

- It was previously inheriting the name of the binary
This commit is contained in:
Kevin Amado 2022-08-04 21:32:55 -06:00
parent 3093127197
commit 0536f8a239

View file

@ -19,7 +19,13 @@ const AFTER_HELP: &str = indoc::indoc! {"
/// The Uncompromising Nix Code Formatter. /// The Uncompromising Nix Code Formatter.
#[derive(Debug, Parser)] #[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 { struct Args {
/// Files or directories, or a single "-" (or leave empty) to format stdin. /// Files or directories, or a single "-" (or leave empty) to format stdin.
#[clap(multiple_values = true)] #[clap(multiple_values = true)]