This is an automated email from the ASF dual-hosted git repository.

aradzinski pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nlpcraft.git

commit cc09dc6f03c67dc8aa1b5495a6fa3efcab212a81
Author: Aaron Radzinski <[email protected]>
AuthorDate: Tue Oct 13 20:11:07 2020 -0700

    Update NCCli.scala
---
 .../main/scala/org/apache/nlpcraft/model/tools/cmdline/NCCli.scala  | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git 
a/nlpcraft/src/main/scala/org/apache/nlpcraft/model/tools/cmdline/NCCli.scala 
b/nlpcraft/src/main/scala/org/apache/nlpcraft/model/tools/cmdline/NCCli.scala
index f8efcb2..1959aa9 100644
--- 
a/nlpcraft/src/main/scala/org/apache/nlpcraft/model/tools/cmdline/NCCli.scala
+++ 
b/nlpcraft/src/main/scala/org/apache/nlpcraft/model/tools/cmdline/NCCli.scala
@@ -69,7 +69,7 @@ object NCCli extends App {
     //noinspection RegExpRedundantEscape
     private final val TAILER_PTRN = Pattern.compile("^.*NC[a-zA-Z0-9]+ started 
\\[[\\d]+ms\\]$")
     private final val CMD_NAME = Pattern.compile("(^\\s*[\\w-]+)(\\s)")
-    private final val CMD_PARAM = Pattern.compile("(\\s--?[\\w-]+)([= ]?)")
+    private final val CMD_PARAM = Pattern.compile("(\\s)(--?[\\w-]+)")
 
     // Number of server services that need to be started + 1 progress start.
     // Used for progress bar functionality.
@@ -2112,7 +2112,7 @@ object NCCli extends App {
                         CMD_PARAM.matcher(
                             buffer
                         )
-                        .replaceAll(c("$1") + "$2")
+                        .replaceAll("$1" + c("$2"))
                     )
                     .replaceAll(bo(g("$1")) + "$2")
                 )
@@ -2180,7 +2180,7 @@ object NCCli extends App {
                     .trim()
 
                 if (line.nonEmpty)
-                    try 
+                    try
                         doCommand(splitBySpace(line), repl = true)
                     catch {
                         case e: SplitError ⇒

Reply via email to