At the moment the option parsing is very strict about the order of options with respect to the tool it belongs to. For instance the top level ceylon tool (the one which runs subcommands) accepts a --stacktraces option, so
ceylon --stacktrace compile ...
is ok, but
ceylon compile --stacktraces ...
is not. Likewise for (sub)*tools.
The benefit of this is I can later add an option to a tool without it conflicting with options of sub- or parent tools. The drawbacks are:
- it's really not very user friendly,
- it's not even obvious and
- conventionally the order of options shouldn't matter.
So I think we should change it. To do so, we'll need a way to add options to the top level tool without causing conflicts with subtools.
At the moment the option parsing is very strict about the order of options with respect to the tool it belongs to. For instance the top level
ceylontool (the one which runs subcommands) accepts a--stacktracesoption, soceylon --stacktrace compile ...
is ok, but
ceylon compile --stacktraces ...
is not. Likewise for (sub)*tools.
The benefit of this is I can later add an option to a tool without it conflicting with options of sub- or parent tools. The drawbacks are:
So I think we should change it. To do so, we'll need a way to add options to the top level tool without causing conflicts with subtools.