chiark / gitweb /
support --version too
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 11 Sep 2013 20:12:33 +0000 (21:12 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 11 Sep 2013 20:12:33 +0000 (21:12 +0100)
dgit

diff --git a/dgit b/dgit
index 37e8364..4267536 100755 (executable)
--- a/dgit
+++ b/dgit
@@ -1203,6 +1203,7 @@ sub cmd_quilt_fixup {
 
 sub cmd_version {
     print "dgit version $our_version\n" or die $!;
+    exit 0;
 }
 
 sub parseopts () {
@@ -1218,6 +1219,8 @@ sub parseopts () {
                $sign=0;
            } elsif (m/^--help$/) {
                cmd_help();
+           } elsif (m/^--version$/) {
+               cmd_version();
            } elsif (m/^--new$/) {
                $new_package=1;
            } elsif (m/^--(\w+)=(.*)/s &&