From 9fe9f7d5a182830bf4c71e2c1143cbba9ff12488 Mon Sep 17 00:00:00 2001
From: Richard Hartmann <richih.mailinglist@gmail.com>
Date: Sun, 20 Nov 2011 11:43:01 +0100
Subject: [PATCH] Reformat and update docs, completion etc

---
 _vcsh           |  5 +++--
 doc/vcsh.1.ronn | 30 ++++++++++++++++++------------
 vcsh            |  9 ++++-----
 3 files changed, 25 insertions(+), 19 deletions(-)

diff --git a/_vcsh b/_vcsh
index 5a14f64..477b2b1 100644
--- a/_vcsh
+++ b/_vcsh
@@ -4,10 +4,11 @@
 #		exit\:"exit repo"
 _arguments \
 	':subcommand:((
+		clone\:"clone from repo"
 		help\:"display help"
+		init\:"init & clone from repo"
+		delete\:"delete repo"
 		list\:"list all repos"
 		run\:"run command on repo"
-		init\:"init & clone from repo"
-		clone\:"clone from repo"
 		seed-gitignore\:"seed .gitignore.d/foo from git ls-files"
 	))'
diff --git a/doc/vcsh.1.ronn b/doc/vcsh.1.ronn
index 2705377..2b5cb36 100644
--- a/doc/vcsh.1.ronn
+++ b/doc/vcsh.1.ronn
@@ -3,17 +3,20 @@ vcsh(1) - manage and sync config files via git
 
 ## SYNOPSIS
 
-`vcsh` init <foo>
-
 `vcsh` clone <url> [<location>]
 
-`vcsh` run <foo> git command
+`vcsh` help
+
+`vcsh` delete
+
+`vcsh` init <foo>
 
 `vcsh` list
 
+`vcsh` run <foo> git command
+
 `vcsh` seed-gitignore
 
-`vcsh` help
 
 ## DESCRIPTION
 
@@ -35,25 +38,28 @@ A sample configuration for `vcsh` and `mr` can be found at
 
 ## OPTIONS
 
+* clone:
+  Clone an existing repository.
+
+* help:
+  Display help.
+
+* delete:
+  Delete an existing repository.
+
 * init:
   Initialize an empty repository.
 
-* clone:
-  Clone an existing repository.
+* list:
+  List all local vcsh repositories.
 
 * run:
   Run command with <$GIT_DIR> and <$GIT_WORK_TREE> set. Allows you to run any
   and all commands without any restrictions. Use with care.
 
-* list:
-  List all local vcsh repositories.
-
 * seed-gitignore:
   Seed .gitignore.d/<repo> from git ls-files.
 
-* help:
-  Display help.
-
 ## ENVIRONMENT
 
 As noted earlier, `vcsh` will set <$GIT_DIR> and <$GIT_WORK_TREE> to the
diff --git a/vcsh b/vcsh
index 25f52f8..d0e7b37 100755
--- a/vcsh
+++ b/vcsh
@@ -33,16 +33,15 @@ verbose() {
 help() {
 	echo "usage: $SELF <args>
 
+   clone <remote> \\
+         [<repo>]    Clone from an existing repository
    help              Display this help
-
+   delete            Delete an existing repository
+   init <repo>       Initialize a new repository
    list              List all repos
-
    run <repo> \\
        <command>     Use this repository
 
-   init <repo>       Initialize a new repository
-   clone <remote> \\
-         [<repo>]    Clone from an existing repository
    seed-gitignore \\
    <repo>            Seed .gitignore.d/<repo> from git ls-files" >&2
 }
-- 
GitLab