diff --git a/BNFC.cabal b/BNFC.cabal
--- a/BNFC.cabal
+++ b/BNFC.cabal
@@ -1,5 +1,5 @@
 Name: BNFC
-Version: 2.4.1.2
+Version: 2.4.2.0
 cabal-version: >= 1.2
 build-type: Simple
 category: Development
diff --git a/Main.hs b/Main.hs
--- a/Main.hs
+++ b/Main.hs
@@ -42,11 +42,14 @@
 import MultiView (preprocessMCF, mkTestMulti, mkMakefileMulti)
 
 import System
+import System.Exit
 import Char
 import Data.List (elemIndex)
 
+version = "2.4.2.0"
+
 title = unlines [
-  "The BNF Converter, 2.4.1.2", 
+  "The BNF Converter, "++version, 
   "(c) Krasimir Angelov, Bjorn Bringert, Johan Broberg, Paul Callaghan, ",
   "    Markus Forsberg, Ola Frid, Peter Gammie, Patrik Jansson, ",
   "    Kristofer Johannisson, Antti-Juhani Kaijanaho, Ulf Norell, ",
@@ -60,6 +63,9 @@
   xx <- getArgs
 	  
   case xx of
+    ["--numeric-version"] -> do
+      putStrLn version
+      exitSuccess
     [] -> printUsage
     _ | elem "-multi" xx -> do
       putStrLn "preprocessing multilingual BNF"
@@ -142,6 +148,9 @@
 printUsage = do 
   putStrLn title
   putStrLn "Usage: bnfc <makeoption>* <language>? <special>* file.cf"
+  putStrLn ""
+  putStrLn "Version options:"
+  putStrLn "  --numeric-version  Print just the version number"
   putStrLn ""
   putStrLn "Make option:"
   putStrLn "  -m             generate Makefile"
diff --git a/dist/build/bnfc/bnfc-tmp/LexBNF.hs b/dist/build/bnfc/bnfc-tmp/LexBNF.hs
--- a/dist/build/bnfc/bnfc-tmp/LexBNF.hs
+++ b/dist/build/bnfc/bnfc-tmp/LexBNF.hs
@@ -148,7 +148,7 @@
 {-# LINE 1 "templates/GenericTemplate.hs" #-}
 {-# LINE 1 "templates/GenericTemplate.hs" #-}
 {-# LINE 1 "<built-in>" #-}
-{-# LINE 1 "<command-line>" #-}
+{-# LINE 1 "<command line>" #-}
 {-# LINE 1 "templates/GenericTemplate.hs" #-}
 -- -----------------------------------------------------------------------------
 -- ALEX TEMPLATE
