Skip to content

Commit

Permalink
bump to v0.4, and print version with usage
Browse files Browse the repository at this point in the history
  • Loading branch information
mtolly committed Jun 10, 2014
1 parent e12377f commit 718056b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pokemid.cabal
@@ -1,5 +1,5 @@
name: pokemid
version: 0.3
version: 0.4
synopsis: Import\/export Pokémon Red\/Blue music as MIDI
homepage: https://github.com/mtolly/pokemid
license: PublicDomain
Expand All @@ -22,6 +22,7 @@ executable pokemid
Clean
Emit
Error
Paths_pokemid
build-depends: base >= 4.6 && < 4.8
, midi >= 0.2.1.2 && < 0.3
, event-list >= 0.1.0.2 && < 0.2
Expand Down
3 changes: 3 additions & 0 deletions src/Main.hs
@@ -1,5 +1,7 @@
module Main where

import Paths_pokemid (version)
import Data.Version (showVersion)
import qualified Scan
import qualified Parse
import qualified Assembly
Expand Down Expand Up @@ -64,6 +66,7 @@ main = do
Save.toFile fmid mid
_ -> do
prog <- getProgName
hPutStrLn stderr $ prog ++ " v" ++ showVersion version
hPutStrLn stderr $ "Usage: "++prog++" in.mid > out.asm"
hPutStrLn stderr $ " "++prog++" in.asm out.mid"
exitFailure

0 comments on commit 718056b

Please sign in to comment.