Args(..),
apply_args,
program_name,
- show_help)
+ show_help )
where
-- Get the version from Cabal.
-import Paths_spline3 (version)
-import Data.Version (showVersion)
+import Paths_spline3 ( version )
+import Data.Version ( showVersion )
-import Data.String.Utils (startswith)
+import Data.String.Utils ( startswith )
import System.Console.CmdArgs (
CmdArgs,
Data,
program,
typ,
summary,
- versionArg
- )
+ versionArg )
-import System.Console.CmdArgs.Explicit (process)
-import System.Environment (getArgs, withArgs)
-import System.Exit (ExitCode(..), exitWith)
-import System.IO (hPutStrLn, stderr)
+import System.Console.CmdArgs.Explicit ( process )
+import System.Environment ( getArgs, withArgs )
+import System.Exit ( ExitCode(..), exitWith )
+import System.IO ( hPutStrLn, stderr )
-import ExitCodes
+import ExitCodes ( exit_arg_parse_failed )
-- Infix notation won't work, the arguments are backwards!
is_missing_arg_error :: String -> Bool
-is_missing_arg_error s =
- startswith "Requires at least" s
+is_missing_arg_error =
+ startswith "Requires at least"
show_help :: IO Args