]> gitweb.michael.orlitzky.com - spline3.git/blob - src/ExitCodes.hs
Use cmdargs to parse command-line arguments.
[spline3.git] / src / ExitCodes.hs
1 -- | All failure exit codes that the program can return.
2 module ExitCodes
3 where
4
5 -- | Indicates that the command-line arguments could not be parsed.
6 exit_arg_parse_failed :: Int
7 exit_arg_parse_failed = 1
8
9 -- | One of the arguments that should be positive wasn't.
10 exit_arg_not_positive :: Int
11 exit_arg_not_positive = 2
12
13 -- | One of the arguments wasn't within the allowable bounds.
14 exit_arg_out_of_bounds :: Int
15 exit_arg_out_of_bounds = 3