zowe-cli icon indicating copy to clipboard operation
zowe-cli copied to clipboard

--help fail on config json error

Open ATorrise opened this issue 4 months ago • 1 comments

What It Does Ensures users can still access the help documentation and version details, even when config files contain errors.

How to Test

  1. Create a zowe.config.json file with invalid JSON or syntax errors.
  2. Run a Zowe CLI command with the --help flag, ie: zowe zosmf --help
  3. Confirm that the help text is displayed with a warning about the invalid JSON.
  4. Run the same command without the --help flag to ensure it still fails as expected with a JSON error.

Review Checklist I certify that I have:

  • [x] tested my changes
  • [x] added/updated automated tests
  • [x] updated the changelog
  • [x] followed the contribution guidelines

ATorrise avatar Oct 09 '24 18:10 ATorrise