Mercurial > repo
changeset 1352:cbe75202b96a
<GreyKnight> cat FdNb > gktemp/target.hs
author | HackBot |
---|---|
date | Thu, 10 Jan 2013 13:33:48 +0000 |
parents | 844a691cf7dc |
children | da1eaf2e0718 |
files | gktemp/target.hs |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/gktemp/target.hs Thu Jan 10 13:33:33 2013 +0000 +++ b/gktemp/target.hs Thu Jan 10 13:33:48 2013 +0000 @@ -22,5 +22,9 @@ main = do args <- getArgs template <- getLine - putStrLn (applyTemplate (args !! 0) template) + putStrLn (applyTemplate ( + case (length args) of + 0 -> "Fiora" + otherwise -> args !! 0 + ) template)