# HG changeset patch # User koda # Date 1352304963 0 # Node ID a3974abc62d306e44066e832c057a74b4b08ebf3 # Parent 4987f6f83cdfa0fbc5a1901722109a74a2d33b4c verbose pas2c for parsed args diff -r 4987f6f83cdf -r a3974abc62d3 tools/pas2c/Main.hs --- a/tools/pas2c/Main.hs Wed Nov 07 14:41:35 2012 +0000 +++ b/tools/pas2c/Main.hs Wed Nov 07 16:16:03 2012 +0000 @@ -18,10 +18,24 @@ case getOpt RequireOrder options args of (flags, [], []) -> if length args == 8 then do + hPutStrLn stdout $ "--------Pas2C Config--------" + hPutStrLn stdout $ "Main module: " ++ (args !! 1) + hPutStrLn stdout $ "Input path : " ++ (args !! 3) + hPutStrLn stdout $ "Output path: " ++ (args !! 5) + hPutStrLn stdout $ "Altern path: " ++ (args !! 7) + hPutStrLn stdout $ "----------------------------" pas2C (args !! 1) ((args !! 3)++"/") ((args !! 5)++"/") ((args !! 7)++"/") + hPutStrLn stdout $ "----------------------------" else do if length args == 6 then do + hPutStrLn stdout $ "--------Pas2C Config--------" + hPutStrLn stdout $ "Main module: " ++ (args !! 1) + hPutStrLn stdout $ "Input path : " ++ (args !! 3) + hPutStrLn stdout $ "Output path: " ++ (args !! 5) + hPutStrLn stdout $ "Altern path: " ++ "./" + hPutStrLn stdout $ "----------------------------" pas2C (args !! 1) ((args !! 3)++"/") ((args !! 5)++"/") "./" + hPutStrLn stdout $ "----------------------------" else do error $ usageInfo header options (_, nonOpts, []) -> error $ "unrecognized arguments: " ++ unwords nonOpts