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
The following commit(s) were added to refs/heads/master by this push:
new 3b6f89c Fixes.
3b6f89c is described below
commit 3b6f89c0b9fa45cfe9c064d23e7d4a7cdce4d039
Author: Aaron Radzinski <[email protected]>
AuthorDate: Thu Jan 7 12:17:01 2021 -0800
Fixes.
---
.../org/apache/nlpcraft/model/tools/cmdline/NCCli.scala | 2 +-
.../nlpcraft/model/tools/cmdline/NCCliCommands.scala | 16 ++++++++--------
2 files changed, 9 insertions(+), 9 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 d1dc34f..d98ea8c 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
@@ -1394,7 +1394,7 @@ object NCCli extends App {
lines += c(line)
if (param.optional)
- lines += s"$T___${T___}Optional."
+ lines += s"$T___${T___}${g("Optional.")}"
lines += s"$T___$T___${param.desc}"
lines += ""
diff --git
a/nlpcraft/src/main/scala/org/apache/nlpcraft/model/tools/cmdline/NCCliCommands.scala
b/nlpcraft/src/main/scala/org/apache/nlpcraft/model/tools/cmdline/NCCliCommands.scala
index 1aab9bf..084d21a 100644
---
a/nlpcraft/src/main/scala/org/apache/nlpcraft/model/tools/cmdline/NCCliCommands.scala
+++
b/nlpcraft/src/main/scala/org/apache/nlpcraft/model/tools/cmdline/NCCliCommands.scala
@@ -1025,6 +1025,14 @@ private [cmdline] object NCCliCommands {
body = NCCli.cmdGenProject,
params = Seq(
Parameter(
+ id = "baseName",
+ names = Seq("--baseName", "-n"),
+ value = Some("name"),
+ desc =
+ s"Base name for the generated files. For example, if
base name is ${y("'MyApp'")}, " +
+ s"then generated Java file will be named as
${y("'MyAppModel.java'")} and model file as ${y("'my_app_model.yaml'")}."
+ ),
+ Parameter(
id = "outputDir",
names = Seq("--outputDir", "-d"),
value = Some("path"),
@@ -1034,14 +1042,6 @@ private [cmdline] object NCCliCommands {
s"Note that you can use ${c("'~'")} at the beginning
of the path to specify user home directory."
),
Parameter(
- id = "baseName",
- names = Seq("--baseName", "-n"),
- value = Some("name"),
- desc =
- s"Base name for the generated files. For example, if
base name is ${y("'MyApp'")}, " +
- s"then generated Java file will be named as
${y("'MyAppModel.java'")} and model file as ${y("'my_app_model.yaml'")}."
- ),
- Parameter(
id = "lang",
names = Seq("--lang", "-l"),
value = Some("name"),