Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Fixes #21590 - Added error to wrong --output #315
Thanks for contributing, @yifatmakias!
Although this addition doesn't prevent the users to run a command by showing an error, I think the better approach will be preventing with showing the right usage, since we don't support other output adapters.
I've already (accidentally) solve it as a part of #312 (see https://github.com/theforeman/hammer-cli/pull/312/files#diff-ebbb17d97d1fa6482776d9c9cad6c3fdL50-L54). If you agree that that's the better approach from the user perspective, you are free to use it within your PR :)