eclipse-archived / ceylon.formatter

A formatter for the Ceylon programming language, written in Ceylon.
Apache License 2.0
14 stars 11 forks source link

command line options #6

Closed lucaswerkmeister closed 10 years ago

lucaswerkmeister commented 10 years ago

They should be just like the config file options, except that they start GNU-style with -- ("--indentMode=4-wide tabs").

lucaswerkmeister commented 10 years ago

There should also be some short options (e. g. -l or -n for --maximumLineLength), and a few “presets” like --allmanStyle (opening brace always on new line).

lucaswerkmeister commented 10 years ago

I think this is mostly done now (in 17f29e6..13f4198). Closing.

lucaswerkmeister commented 10 years ago

Eventually we’ll probably change the default behavior of "single filename" to "write to that file" (currently: write to stdout).

lucaswerkmeister commented 10 years ago

Do we need unit tests for the command line options? I have a feeling we might... but that’s going to amount to spawning another Ceylon instance to get the arguments out. Ugh.