mirror of https://github.com/zachjs/sv2v.git
add warning when no input files are specified
This commit is contained in:
parent
c6dbdd09ca
commit
5ac7a79f8b
|
|
@ -60,6 +60,8 @@ rewritePath path = do
|
|||
(base, end) = splitAt (length path - length ext) path
|
||||
|
||||
writeOutput :: Write -> [FilePath] -> [AST] -> IO ()
|
||||
writeOutput _ [] [] =
|
||||
hPutStrLn stderr "Warning: No input files specified (try `sv2v --help`)"
|
||||
writeOutput Stdout _ asts =
|
||||
hPrint stdout $ concat asts
|
||||
writeOutput Adjacent inPaths asts = do
|
||||
|
|
|
|||
Loading…
Reference in New Issue