mirror of https://github.com/sbt/sbt.git
Deprecate overloaded process method
This commit is contained in:
parent
8c9600249e
commit
86df6e0606
|
|
@ -185,7 +185,9 @@ object Command {
|
|||
)
|
||||
|
||||
// overload instead of default parameter to keep binary compatibility
|
||||
@deprecated("Use overload that takes the onParseError callback", since = "1.9.4")
|
||||
def process(command: String, state: State): State = process(command, state, _ => ())
|
||||
|
||||
def process(command: String, state: State, onParseError: String => Unit): State = {
|
||||
(if (command.contains(";")) parse(command, state.combinedParser)
|
||||
else parse(command, state.nonMultiParser)) match {
|
||||
|
|
|
|||
Loading…
Reference in New Issue