]> gitweb.fluxo.info Git - git-hooks.git/commitdiff
Update `--help` output
authorZearin <zearin@gonk.net>
Mon, 28 Apr 2014 19:07:15 +0000 (15:07 -0400)
committerZearin <zearin@gonk.net>
Mon, 28 Apr 2014 19:07:15 +0000 (15:07 -0400)
* No longer using `--severalunseparatewords` (but still accepts them for backwards compatibility)
* Use `<angled brackets>` for mandatory arguments (`[square brackets]` are for optional arguments)

git-hooks

index ed1e66f20012cc02054a985b418820779e25fa54..096ae314d5f052f94f61db341efa38a9fb3d76d3 100755 (executable)
--- a/git-hooks
+++ b/git-hooks
@@ -205,10 +205,10 @@ case $1 in
     --install|--uninstall )
         install_hooks "$1"
         ;;
-    --installglobal )
+    --install-global|--installglobal )
         install_global
         ;;
-    --uninstallglobal )
+    --uninstall-global|--uninstallglobal )
         uninstall_global
         ;;
     -h|--help|-? )
@@ -221,13 +221,13 @@ case $1 in
         echo '                   git hooks run [hook].  Move old hooks directory to hooks.old'
         echo '    --uninstall    Remove existing hooks in this repository and rename hooks.old'
         echo '                   back to hooks'
-        echo '    --installglobal'
+        echo '    --install-global'
         echo '                   Create a template .git directory that that will be used whenever'
         echo '                   a git repository is created or cloned that will remind the user'
         echo '                   to install git-hooks.'
-        echo '    --uninstallglobal'
+        echo '    --uninstall-global'
         echo '                   Turn off the global .git directory template that has the reminder.'
-        echo "    run [cmd]      Run the hooks for cmd (such as pre-commit)"
+        echo "    run <cmd>      Run the hooks for <cmd> (such as pre-commit)"
         echo "    (no arguments) Show currently installed hooks"
         ;;
     * )