怎么才能得到与榆树版本的一条线?
现在我明白了:
$ elm-make --version
elm-make 0.17 (Elm Platform 0.17.0)
Usage: elm-make [FILES...] [--output FILE] [--yes] [--report FORMAT] [--warn]
[--docs FILE] [--prepublish] [--prepublish-core]
build Elm projects
Available options:
-h,--help Show this help text
--output FILE Write result to the given .html or .js FILE.
--yes Reply 'yes' to all automated prompts.
--report FORMAT Format of error and warning reports (e.g.
--report=json)
--warn Report warnings to improve code quality.
--docs FILE Write documentation to FILE as JSON.
Examples:
elm-make Main.elm # compile to HTML in index.html
elm-make Main.elm --output main.html # compile to HTML in main.html
elm-make Main.elm --output elm.js # compile to JS in elm.js
elm-make Main.elm --warn # compile and report warnings
Full guide to using elm-make at <https://github.com/elm-lang/elm-make>
$发布于 2016-05-28 07:34:02
elm-make --version 2>&1 | head -n 1不确定重定向是否是严格必要的;在这种情况下,有些工具只是打印到stdout。
发布于 2016-06-01 20:11:19
Elm平台中的其他两个工具只打印版本(至少在OSXELM0.17.0上对我来说是这样):
% elm reactor --version
0.17.0
% elm repl --version
0.17.0发布于 2018-08-16 10:28:05
从0.18.0版本开始,普通的elm工具可以工作:
$ elm --version
0.18.0https://stackoverflow.com/questions/37496379
复制相似问题