google / google/closure-compiler
Documentation missing default language_in and language_out modes
- Dominant language
- JavaScript
- Stars
- 7.7k
- Forks
- 1.2k
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 6
Description
In wiki page https://github.com/google/closure-compiler/wiki/Flags-and-Options, the docs
```
--language_in VAL
Sets the language spec to which input sources should conform. Options: ECMASCRIPT3, ECMASCRIPT5, ECMASCRIPT5_STRICT, ECMASCRIPT6_TYPED (experimental), ECMASCRIPT_2015, ECMASCRIPT_2016, ECMASCRIPT_2017, ECMASCRIPT_2018, ECMASCRIPT_2019, STABLE, ECMASCRIPT_NEXT
--language_out VAL
Sets the language spec to which output should conform. Options: ECMASCRIPT3, ECMASCRIPT5, ECMASCRIPT5_STRICT, ECMASCRIPT_2015, ECMASCRIPT_2016, ECMASCRIPT_2017, ECMASCRIPT_2018, ECMASCRIPT_2019, STABLE
```
do not say what are the default options for these settings. That would be good to add?
Also, it would be good to describe the behavior of what happens if one passes only one of `--language_in`, or `--language_out`, but not the other? (e.g. does `--language_in ECMASCRIPT_2018` without an explicitly specified `--language_out` directive imply `--language_out ECMASCRIPT_2018`? Or does e.g. `--language_out ECMASCRIPT_2018` without an explicitly specified `--language_in` directive imply `--language_in ECMASCRIPT_2018`?)
Contributor guide
Assessment
This issue has not been assessed yet.