From c961bc2abd81e0acb3362775412b97c2ff69a13f Mon Sep 17 00:00:00 2001 From: Rafael Garcia-Suarez Date: Wed, 16 Nov 2005 14:28:27 +0000 Subject: Add a version command --- editdistrib | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'editdistrib') diff --git a/editdistrib b/editdistrib index 09badbf..f99cd09 100755 --- a/editdistrib +++ b/editdistrib @@ -8,7 +8,7 @@ use Term::ReadLine; use Text::ParseWords; use Getopt::Long; -our $VERSION = q$Id$ =~ /(\d+\.\d+)/; +(our $VERSION) = q$Id$ =~ /(\d+\.\d+)/; my @distribs; @@ -209,6 +209,7 @@ my $commands = { }, quit => sub { exit(0) }, + version => sub { print "version: $VERSION\n" }, }; -- cgit v1.2.1