git3html

git clone https://orangeshoelaces.net/git/git3html.git

5e92478192894f2b74bd125d862dc43426b342e4

Author: Vasilii Kolobkov on 01/14/2019

Committer: Vasilii Kolobkov on 01/14/2019

Shuffle options around

Stats

git3html | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)

Patch

diff --git a/git3html b/git3html
index 3b445b3..3998966 100755
--- a/git3html
+++ b/git3html
@@ -312,19 +312,19 @@ files() (
 # ........ driver ........
 
 usage() {
-	echo "Usage: $0 [-p name] [-u url] [-c lim] repodir htmldir" >&2
+	echo "Usage: $0 [-p name] [-c url] [-n lim] repodir htmldir" >&2
 	exit 1
 }
 
-while getopts 'p:u:c:h' opt; do
+while getopts 'p:c:c:h' opt; do
 	case "$opt" in
 	p)
 		projname="$OPTARG"
 		;;
-	u)
+	c)
 		cloneurl="$OPTARG"
 		;;
-	c)
+	n)
 		clim="$OPTARG"
 		;;
 	*)