You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by "Steve Lawrence (Jira)" <ji...@apache.org> on 2021/08/23 13:07:00 UTC

[jira] [Commented] (DAFFODIL-2483) Add option to change CLI behavior when parse does not consume all data

    [ https://issues.apache.org/jira/browse/DAFFODIL-2483?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17403174#comment-17403174 ] 

Steve Lawrence commented on DAFFODIL-2483:
------------------------------------------

Note that DAFFODIL-2335 (commit 2c71cb2f24184012b48834205136f471e90da6ac) changed the behavior so that left over data is now an error with an exit code of 31. Keeping this bug open though, as this is about making the behavior configurable. That said, we may not need that configurability since you can use the exit code to determine if you want to ignore this particular error or not.

> Add option to  change CLI behavior when parse does not consume all data
> -----------------------------------------------------------------------
>
>                 Key: DAFFODIL-2483
>                 URL: https://issues.apache.org/jira/browse/DAFFODIL-2483
>             Project: Daffodil
>          Issue Type: Bug
>          Components: CLI
>            Reporter: Steve Lawrence
>            Priority: Major
>
> The current CLi behavior of warning when leftover data exists after a parse is unintutive. We should consider adding an option that allows the user to change the behavior when such data exists. For example --leftover-data=error/warning/ignore.
> See discussion here for more motivatin and possible solutions: https://lists.apache.org/thread.html/rcf8e414ac96f090985dc79eaaba1cbd8022a163ac49f0e2c7e381843%40%3Cusers.daffodil.apache.org%3E



--
This message was sent by Atlassian Jira
(v8.3.4#803005)