Fix JSON output when crashing, and fix help and version information.

Review Request #12163 — Created March 17, 2022 and submitted

Information

RBTools
master

Reviewers

When using --json, if the command raises an unexpected exception, we
end up showing an empty "success" payload. This is clearly not what we
want. This change insteads records an "Internal Error" with the
exception's error message, allowing tools to know that something went
wrong.

The help string for --json has also been updated to include a trailing
period, matching other help strings. It also now includes an added_in
version for the documentation, and the Version Added for JSONOutput
now correctly shows 3.0.

Tested --json with an exception raised, and saw the exception details.

Saw the corrected help text.

Summary ID
Fix JSON output when crashing, and fix help and version information.
When using `--json`, if the command raises an unexpected exception, we end up showing an empty "success" payload. This is clearly not what we want. This change insteads records an "Internal Error" with the exception's error message, allowing tools to know that something went wrong. The help string for `--json` has also been updated to include a trailing period, matching other help strings. It also now includes an `added_in` version for the documentation, and the `Version Added` for `JSONOutput` now correctly shows 3.0.
3c63c5fd513fc17f22e86f874fc26ac4efb9fbfa
chipx86
david
  1. Ship It!
  2. 
      
chipx86
Review request changed
Status:
Completed
Change Summary:
Pushed to release-3.x (664aff7)