Collect args' shortcomings when parsing the syntax declaration

Issue #4 closed
Siegfried Steiner created an issue

Impediment:

In case the provided command line arguments did not match the declared syntax, then just some generic error message is provided.

Proposal:

When parsing the command line arguments with the declared syntax, any shortcomings of the arguments detected while traversing the syntax can be stored by the according Term (Operand and Condition types) and retrieved recursively via the root Term.

Discussion:

To be discussed whether shortcomings should be stored in a list with elements having a default text and an ID. The ID may be used for language dependent lookup of messages.

Comments (2)

  1. Siegfried Steiner reporter

    Each node now declares a pares status which is reflected in the exceptions throws (as of causes and suppressed exception).

  2. Log in to comment