[sbt 1.0] Rename early command to early(command)#2741
Conversation
dwijnand
left a comment
There was a problem hiding this comment.
Why not keep these as --debug/--warn/--error? -debug/-warn/-error is less UNIX-y that that.
This way we remove -- from making everything early to just special cases.
|
It's true that general Unix convention would be to use double hyphen for long options, but java, scala, and sbt have been using single hyphen for options. See https://github.com/sbt/sbt-launcher-package/blob/master/src/universal/bin/sbt |
|
That is true.. But what's wrong with keeping it as |
|
I'd keep it for 0.13 for compat but I don't really see strong reason to keep it for 1.0. |
|
Ok. I think it's much better if we don't do these breaking changes in point releases, but instead documented in the upgrade/migration notes. Thanks |
|
For clarity, I think we should add notes here. |
Backports sbt#2741, Fixes sbt#1041 e93c445 added a feature called early command, which uses `--` as a prefix to denote some commands that runs ahead of session loading. While the feature might be useful especially for logging, `--` is too useful just for this purpose. In addition, this adds log level commands with single `-`, such as -error to treat them as early commands; and keeps `--` variant for log level for backward compatibility.
|
Added migration notes - 9783ab1 |
|
Over in scala/scala#6256, we found that: gives a zero error code, because this is now the same as I'll assume that this was unintentional. This is quite dangerous, as It is quite easy to miss or ignore the warning, and then run into the trap of having build scripts pass when a test fails. Thoughts? I'd recommend adding |
|
|
|
Opened an issue for this #4088 |
Fixes #2734, Ref #1041
e93c445 added a feature called early command, which uses
--as a prefix to denote some commands that runs ahead of session loading. While the feature might be useful especially for logging,--is too useful just for this purpose.In addition, this adds log level commands with single
-, such as-errorto treat them as early commands./review @dwijnand, @Duhemm