@@ -1,5 +1,6 @@
1-- | A clone in Haskell of the zdump(8) command, including most of
1-- | A clone in Haskell of the zdump(8) command, including most of
2+-- the bugs, that takes paths to Olson files instead of timezone
2−-- the bugs. This is useful for testing the Haskell implementation
3+-- names. This is useful for testing the Haskell implementation
3-- of the Olson timezone parser and renderer against the reference
4-- of the Olson timezone parser and renderer against the reference
4-- implementation in C. But less useful than it might seem at first,
5-- implementation in C. But less useful than it might seem at first,
5-- because Haskell rounds historical solar mean timezones to the
6-- because Haskell rounds historical solar mean timezones to the
@@ -17,12 +18,14 @@ import System.Locale (defaultTimeLocale)
18version :: IO a
19version :: IO a
19version = do
20version = do
20− putStrLn "hzdump version 0.1, clone of zdump 1.7 with -c option fixed"
21+ putStrLn "hzdump version 0.1, clone of zdump 1.7 -c option fixed,"
22+ putStrLn "takes zone file paths instead of zone specifications"
21 exitSuccess
23 exitSuccess
23usage :: IO a
25usage :: IO a
25− putStrLn "usage: hzdump [--version] [-v] [-c cutoff] zonename ..."
27+ putStrLn "usage: hzdump [--version] [-v] [-c cutoff] zone-file-path ..."
28+ putStrLn " where cutoff is lo-year,hi-year or hi-year"
26 exitWith $ ExitFailure 1
29 exitWith $ ExitFailure 1
28illegalOpt :: Char -> IO a -- sic
31illegalOpt :: Char -> IO a -- sic