From 0e936fede1522c32b189d23b44d67b8107a3d938 Mon Sep 17 00:00:00 2001 From: Ajeet D'Souza <98ajeet@gmail.com> Date: Sun, 3 May 2020 18:09:54 +0530 Subject: [PATCH] Rename --no-define-aliases flag to --no-aliases --- src/subcommand/init/mod.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/subcommand/init/mod.rs b/src/subcommand/init/mod.rs index 7f1001c..e8f6845 100644 --- a/src/subcommand/init/mod.rs +++ b/src/subcommand/init/mod.rs @@ -14,7 +14,7 @@ pub struct Init { #[structopt( long, - help = "Changes the name of the 'z' command", + help = "Renames the 'z' command and corresponding aliases", alias = "z-cmd", default_value = "z" )] @@ -22,9 +22,10 @@ pub struct Init { #[structopt( long, + alias = "no-define-aliases", help = "Prevents zoxide from defining any commands other than 'z'" )] - no_define_aliases: bool, + no_aliases: bool, #[structopt( long, @@ -51,7 +52,7 @@ impl Init { let z = config.z; writeln!(handle, "{}", z(&self.cmd)).unwrap(); - if !self.no_define_aliases { + if !self.no_aliases { let alias = config.alias; writeln!(handle, "{}", alias(&self.cmd)).unwrap(); }