Hi Jerome,

> Just one thing. If you apply that patch, in the usage message,
> --version will appear under
> "Common options to all commands:". Not perfect...

Better that way? If not, suggestions are welcome.

Thanks,
-- 
Jean Delvare
Index: bin/quilt.in
===================================================================
RCS file: /cvsroot/quilt/quilt/bin/quilt.in,v
retrieving revision 1.19
diff -u -r1.19 quilt.in
--- bin/quilt.in        26 Apr 2005 11:05:34 -0000      1.19
+++ bin/quilt.in        25 Jun 2005 07:15:56 -0000
@@ -21,6 +21,7 @@
 {
 
        echo $"Usage: quilt [--trace[=verbose]] [--quiltrc=XX] command [-h] ..."
+       echo $"       quilt --version"
 
        echo $"Commands are:"
        quilt_commands \
@@ -36,7 +37,12 @@
 --quiltrc file
        Use the specified configuration file instead of ~/.quiltrc (or
        /etc/quilt.quiltrc if ~/.quiltrc does not exist).  See the pdf
-       documentation for details about its possible contents."
+       documentation for details about its possible contents.
+
+Special options:
+
+--version
+       Print the version number and exit immediately."
        exit 1
 }
 
@@ -52,6 +58,12 @@
        done
 }
 
+if [ $# -ge 1 -a "$1" == "--version" ]
+then
+       echo '@VERSION@'
+       exit
+fi
+
 BASH_OPTS=
 while [ $# -ne 0 ]
 do
_______________________________________________
Quilt-dev mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/quilt-dev

Reply via email to