From 6357e3b833984f45bf0f2ff5df35e79e5189936b Mon Sep 17 00:00:00 2001 From: Fontrodona Nicolas <nicolas.fontrodona@ens-lyon.fr> Date: Wed, 11 May 2022 15:53:50 +0200 Subject: [PATCH] src/main.rs: change doc for create_hook --- src/main.rs | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/src/main.rs b/src/main.rs index e92f352..d6008ae 100644 --- a/src/main.rs +++ b/src/main.rs @@ -33,13 +33,18 @@ enum Commands { #[clap(alias = "co")] Checkout(Checkout), /// Create github hooks to use gbl automaticaly after commit, before and afetr checkout - /// - /// This command should be used after git init and glb init. - /// This will create 3 hooks file: - /// 1. post-commit: `glb commit` will be launched after git commit - /// 2. pre-checkout: `glb pre-co` will be launched before git checkout - /// 3. post-checkout: `gbl checkout` will be launched after git checkout - #[clap(name = "create-hooks", alias = "ch")] + #[clap( + name = "create-hooks", + alias = "ch", + long_about = "Create github hooks to use gbl automaticaly after commit, \ + before and after checkout \n \n\ + This command should be used after git init and glb init. \n \n\ + This will create 3 hooks file: \n\ + 1. post-commit: `glb commit` will be launched after git commit \n\ + 2. pre-checkout: `glb pre-co` will be launched before git checkout \n\ + 3. post-checkout: `gbl checkout` will be launched after git checkout + " + )] CreateHooks(CreateHooks), } -- GitLab