lit 0.1.0.2 → 0.1.0.3
raw patch · 2 files changed
+6/−5 lines, 2 files
Files
- lit.cabal +1/−1
- src/lit.hs +5/−4
lit.cabal view
@@ -1,7 +1,7 @@ -- Initial lit.cabal generated by cabal init. For further documentation, name: lit-version: 0.1.0.2+version: 0.1.0.3 synopsis: A simple tool for literate programming description: lit has a minimal syntax for implementing literate programming. It generates both HTML and the native
src/lit.hs view
@@ -77,12 +77,13 @@ (NoArg (\_ -> do prg <- getProgName- hPutStrLn stderr (usageInfo header options)+ hPutStrLn stderr (usageInfo usage options) exitWith ExitSuccess)) "Display help" ] -header = "Usage: lit OPTIONS... FILES..."+usage = "Usage: lit OPTIONS... FILES..."+help = "Try: lit --help" main = do args <- getArgs@@ -114,6 +115,6 @@ errors'' = if docsDirCheck then [] else ["Directory: " ++ docsDir ++ " does not exist\n"] allErr = errors ++ errors' ++ errors'' - if allErr /= [] || (not html && not code && not markdown)- then hPutStrLn stderr ((concat allErr) ++ header) + if allErr /= [] || (not html && not code && not markdown) || files == []+ then hPutStrLn stderr ((concat allErr) ++ help) else (maybeWatch (Processing.build mCss pipes)) files