zowe-cli
zowe-cli copied to clipboard
--help fail on config json error
What It Does Ensures users can still access the help documentation and version details, even when config files contain errors.
How to Test
- Create a
zowe.config.json
file with invalid JSON or syntax errors. - Run a Zowe CLI command with the
--help
flag, ie:zowe zosmf --help
- Confirm that the help text is displayed with a warning about the invalid JSON.
- 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