diff --git a/Main.hs b/Main.hs
--- a/Main.hs
+++ b/Main.hs
@@ -38,6 +38,9 @@
 import Distribution.Package (PackageId, PackageName (..), PackageIdentifier (..))
 import qualified Distribution.Simple.InstallDirs as IDirs
 
+import qualified Paths_hoogle_index
+import Data.Version
+
 import Hoogle (defaultDatabaseLocation)
 
 -- | Various configuration
@@ -65,7 +68,7 @@
                ( long "ignore-existing"
               <> help "Always regenerate textbases even if one already exists"
                )
-           <*> many (option (fmap SpecificPackageDB . pure)
+           <*> many (option (SpecificPackageDB <$> str)
                ( short 'f' <> long "package-db"
               <> help "Add an addition package database (e.g. a Cabal sandbox)"
                ))
@@ -258,8 +261,9 @@
 installDB :: Database -> EitherT String IO ()
 installDB (DB db) = do
     dbDir <- liftIO defaultDatabaseLocation
-    tryIO' $ createDirectoryIfMissing True dbDir
-    let dest = dbDir </> "databases" </> "default.hoo"
+    let destDir = dbDir </> "databases"
+    tryIO' $ createDirectoryIfMissing True destDir
+    let dest = destDir </> "default.hoo"
     liftIO $ copyFile db dest
     liftIO $ putStrLn $ "Installed Hoogle index to "++dest
 
@@ -270,6 +274,7 @@
                ( fullDesc
               <> progDesc "Generate Hoogle indexes for locally install packages"
               <> header "hoogle-index - Painless local Hoogle indexing"
+              <> footer ("hoogle-index version "++showVersion Paths_hoogle_index.version)
                )
 
     (compiler, _, progCfg) <- configure (verbosity cfg)
diff --git a/hoogle-index.cabal b/hoogle-index.cabal
--- a/hoogle-index.cabal
+++ b/hoogle-index.cabal
@@ -1,5 +1,5 @@
 name:                hoogle-index
-version:             0.3.3
+version:             0.4.0
 synopsis:            Easily generate Hoogle indices for installed packages
 description:
     'hoogle-index' is a small utility for generating indicies for local
@@ -27,7 +27,7 @@
 executable hoogle-index
   main-is:             Main.hs
   other-extensions:    TupleSections
-  build-depends:       base >=4.6 && <4.8,
+  build-depends:       base >=4.6 && <4.9,
                        transformers >=0.3 && <0.5,
                        directory >=1.2 && <1.3,
                        process >=1.2 && <1.3,
@@ -35,8 +35,8 @@
                        errors >=1.4 && <1.5,
                        bytestring >=0.9 && <1.11,
                        temporary >=1.2 && <1.3,
-                       Cabal >=1.20 && <1.21,
+                       Cabal >=1.20 && <1.23,
                        containers >=0.4 && <0.6,
-                       optparse-applicative >=0.10 && <0.11,
+                       optparse-applicative >=0.11 && <0.12,
                        hoogle >= 4.2 && <4.3
   default-language:    Haskell2010
