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

jadams pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/daffodil.git


The following commit(s) were added to refs/heads/main by this push:
     new 6967a67ee Add 'exisa' to help message for infoset types.
6967a67ee is described below

commit 6967a67ee7f3c811502ccbaf295441016d01f4e6
Author: Josh Adams <[email protected]>
AuthorDate: Thu Sep 22 07:47:18 2022 -0400

    Add 'exisa' to help message for infoset types.
    
    Missed this during the initial implementation.
    
    DAFFODIL-1959
---
 daffodil-cli/src/main/scala/org/apache/daffodil/Main.scala | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/daffodil-cli/src/main/scala/org/apache/daffodil/Main.scala 
b/daffodil-cli/src/main/scala/org/apache/daffodil/Main.scala
index 9ef5c29bd..97dbdc8cc 100644
--- a/daffodil-cli/src/main/scala/org/apache/daffodil/Main.scala
+++ b/daffodil-cli/src/main/scala/org/apache/daffodil/Main.scala
@@ -313,7 +313,7 @@ class CLIConf(arguments: Array[String]) extends 
scallop.ScallopConf(arguments) {
 
     val config = opt[File](short = 'c', argName = "file", descr = "XML file 
containing configuration items")
     val vars = props[String](name = 'D', keyName = "variable", valueName = 
"value", descr = "Variables to be used when parsing. Can be prefixed with 
{namespace}.")
-    val infosetType = opt[InfosetType.Type](short = 'I', argName = 
"infoset_type", descr = "Infoset type to output. Use 'xml', 'scala-xml', 
'json', 'jdom', 'w3cdom', 'sax', 'exi', or 'null'. Defaults to 'xml'.", default 
= Some(InfosetType.XML))
+    val infosetType = opt[InfosetType.Type](short = 'I', argName = 
"infoset_type", descr = "Infoset type to output. Type can be: " + 
InfosetType.values.mkString(", ") + ". Defaults to 'xml'.", default = 
Some(InfosetType.XML))
     val output = opt[String](argName = "file", descr = "Output file to write 
infoset to. If not given or is -, infoset is written to stdout.")
     val parser = opt[File](short = 'P', argName = "file", descr = "Previously 
saved parser to reuse")
     val path = opt[String](argName = "path", descr = "Path from root element 
to node from which to start parsing", hidden = true)
@@ -363,7 +363,7 @@ class CLIConf(arguments: Array[String]) extends 
scallop.ScallopConf(arguments) {
 
     val config = opt[File](short = 'c', argName = "file", descr = "XML file 
containing configuration items")
     val vars = props[String](name = 'D', keyName = "variable", valueName = 
"value", descr = "Variables to be used when parsing. Can be prefixed with 
{namespace}.")
-    val infosetType = opt[InfosetType.Type](short = 'I', argName = 
"infoset_type", descr = "Infoset type to unparse. Use 'xml', 'scala-xml', 
'json', 'jdom', 'w3cdom', 'sax', 'exi', or 'null'. Defaults to 'xml'.", default 
= Some(InfosetType.XML))
+    val infosetType = opt[InfosetType.Type](short = 'I', argName = 
"infoset_type", descr = "Infoset type to output. Type can be: " + 
InfosetType.values.mkString(", ") + ". Defaults to 'xml'.", default = 
Some(InfosetType.XML))
     val output = opt[String](argName = "file", descr = "Output file to write 
data to. If not given or is -, data is written to stdout.")
     val parser = opt[File](short = 'P', argName = "file", descr = "Previously 
saved parser to reuse")
     val path = opt[String](argName = "path", descr = "Path from root element 
to node from which to start unparsing", hidden = true)
@@ -457,7 +457,7 @@ class CLIConf(arguments: Array[String]) extends 
scallop.ScallopConf(arguments) {
 
     val config = opt[File](short = 'c', argName = "file", descr = "XML file 
containing configuration items")
     val vars = props[String](name = 'D', keyName = "variable", valueName = 
"value", descr = "Variables to be used when parsing. Can be prefixed with 
{namespace}.")
-    val infosetType = opt[InfosetType.Type](short = 'I', argName = 
"infoset_type", descr = "Infoset type to output or unparse. Use 'xml', 
'scala-xml', 'json', 'jdom', 'w3cdom', 'sax', 'exi', or 'null'. Defaults to 
'xml'.", default = Some(InfosetType.XML))
+    val infosetType = opt[InfosetType.Type](short = 'I', argName = 
"infoset_type", descr = "Infoset type to output. Type can be: " + 
InfosetType.values.mkString(", ") + ". Defaults to 'xml'.", default = 
Some(InfosetType.XML))
     val number = opt[Int](short = 'N', argName = "number", default = Some(1), 
descr = "Total number of files to process. Defaults to 1.")
     val parser = opt[File](short = 'P', argName = "file", descr = "Previously 
saved parser to reuse")
     val path = opt[String](argName = "path", descr = "Path from root element 
to node from which to start parsing or unparsing", hidden = true)

Reply via email to