-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[cli] Fix: Use dashes in ui validate flag #69
base: master
Are you sure you want to change the base?
Conversation
@SamiSousa So I see the appeal of making this change, but my concern is that this is already in the wild and being used. Making a breaking change like this has to be a major version bump, but I'm not sure this change is a good enough reason to introduce breaking changes to the cli. |
I suggest: parser.add_argument(
'--ui-validate-io',
dest='ui_validate_io',
help='Validate bundle for operatorhub.io UI',
action='store_true')
parser.add_argument(
# DEPRECATED; BW compatibility
'--ui_validate_io',
dest='ui_validate_io'
help=argparse.SUPPRESS,
action='store_true') |
Great suggestion. @SamiSousa Can you update your pr this way? |
4f76e54
to
113fea7
Compare
Thanks @MartinBasti ! Applied your suggestion, please take a look |
@SamiSousa Looks like the tests failed. |
Coverage decreased under a failure threshold because commit added a new line. |
113fea7
to
17a6eb9
Compare
@MartinBasti Removed a newline based on your comment. |
@SamiSousa oh sorry, I meant new line from code execution POW, not one line literally. :) You have add tests or lower coverage limit. |
565666f
to
6ac2c5d
Compare
@kevinrizza @jeremylinlin If there's an interest in this change, let me know so I can rebase. Otherwise, I'll close this PR. |
@SamiSousa Feel free to update, it looks like a good change. once you do please @ me and Wenlin so we can review again |
- Add ui-validate-io flag with dashes - Add comment to ui_validate_io as deprecated This follows the conventions set by other CLI tools
6ac2c5d
to
db0a653
Compare
@kevinrizza @jeremylinlin Rebased based on latest master, please take a look 🙂 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
This follows the conventions set by other CLI tools
Replaces part of #65