olabusayoT commented on code in PR #1515:
URL: https://github.com/apache/daffodil/pull/1515#discussion_r2243354580


##########
daffodil-cli/src/main/scala/org/apache/daffodil/cli/Main.scala:
##########
@@ -184,21 +180,21 @@ class CLIConf(arguments: Array[String], stdout: 
PrintStream, stderr: PrintStream
 
       s match {
         case DefaultArgPattern(name, arg) if Validators.isRegistered(name) =>
-          if (doesNotSupportReloadableParsers(name)) {
-            null
+          if (Seq(".conf", ".properties").exists(arg.endsWith)) {
+            val is = new FileInputStream(arg)
+            props.load(is)
           } else {
-            if (Seq(".conf", ".properties").exists(arg.endsWith)) {
-              val is = new FileInputStream(arg)
-              props.load(is)
-            } else {
-              val uss = fileResourceToURI(arg)
-              props.setProperty(name, uss.uri.toString)
-            }
-            Validators.get(name).make(props)
+            val uss = fileResourceToURI(arg)
+            props.setProperty(name, uss.uri.toString)
           }
+          Validators.get(name).make(props)
         case NoArgsPattern(name) if Validators.isRegistered(name) =>
-          if (doesNotSupportReloadableParsers(name)) {
-            null
+          val missingRequiredSchema =
+            parser.isDefined && !Seq("limited", "off").exists(_.contains(name))

Review Comment:
   I added a test for that scenario and it still failed, so it looks like 
scallop defines everything before  we get into validate converter



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to