@@ -18,29 +18,41 @@ data Flags = Flags
1818 , src_dir :: [FilePath]
1919 }
2020 deriving (Data,Typeable,Show,Eq)
21−
21+
22+flags :: Flags
2223flags = Flags
2324 { files = def &= args &= typ "FILES"
25+
2426 , make = False
25− &= help "automatically compile dependencies."
27+ &= help "automatically compile dependencies."
28+
2629 , only_js = False
27− &= help "Compile only to JavaScript."
30+ &= help "Compile only to JavaScript."
31+
2832 , no_prelude = False
29− &= help "Do not import Prelude by default, used only when compiling standard libraries."
33+ &= help "Do not import Prelude by default, used only when compiling standard libraries."
34+
3035 , scripts = [] &= typFile
31− &= help "Load JavaScript files in generated HTML. Files will be included in the given order."
36+ &= help "Load JavaScript files in generated HTML. Files will be included in the given order."
37+
3238 , set_runtime = Nothing &= typFile
33− &= help "Specify a custom location for Elm's runtime system."
39+ &= help "Specify a custom location for Elm's runtime system."
40+
3441 , get_runtime = False
35− &= help "Print the absolute path to the default Elm runtime."
42+ &= help "Print the absolute path to the default Elm runtime."
43+
3644 , cache_dir = "cache" &= typFile
37− &= help "Directory for files cached to make builds faster. Defaults to cache/ directory."
45+ &= help "Directory for files cached to make builds faster. Defaults to cache/ directory."
46+
3847 , build_dir = "build" &= typFile
39− &= help "Directory for generated HTML and JS files. Defaults to build/ directory."
48+ &= help "Directory for generated HTML and JS files. Defaults to build/ directory."
49+
4050 , src_dir = ["."] &= typFile
41− &= help "Additional source directories besides project root. Searched when using --make"
51+ &= help "Additional source directories besides project root. Searched when using --make"
52+
4253 , print_types = False
43− &= help "Print out inferred types of top-level definitions."
54+ &= help "Print out inferred types of top-level definitions."
55+
4456 } &= help "Compile Elm programs to HTML, CSS, and JavaScript."
4557 &= helpArg [explicit, name "help", name "h"]
4658 &= versionArg [explicit, name "version", name "v", summary (show Version.elmVersion)]