Deprecate overloaded process method

This commit is contained in:
Iulian Dragos 2023-08-28 11:49:29 +02:00
parent 8c9600249e
commit 86df6e0606
No known key found for this signature in database
GPG Key ID: A38C8E571FA4621E
1 changed files with 2 additions and 0 deletions

View File

@ -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 {