Skip to content

Commit db0a653

Browse files
author
Sami Shahin
committed
[cli] Fix: Use dashes in ui validate flag
- Add ui-validate-io flag with dashes - Add comment to ui_validate_io as deprecated This follows the conventions set by other CLI tools
1 parent 4f911bd commit db0a653

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

operatorcourier/cli.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,16 @@ def parse(self):
5858
help='Path of your directory of yaml files to bundle. '
5959
'Either set this or use the files argument for bundle data.')
6060
verify_parser.add_argument(
61-
'--ui_validate_io',
61+
'--ui-validate-io',
6262
help='Validate bundle for operatorhub.io UI. '
6363
'To visually confirm that your operator will be displayed correctly, '
6464
'please visit https://operatorhub.io/preview and paste '
6565
'your operator CSV.',
66+
dest='ui_validate_io',
67+
action='store_true')
68+
verify_parser.add_argument( # DEPRECATED; BW compatibility
69+
'--ui_validate_io',
70+
help=argparse.SUPPRESS,
6671
action='store_true')
6772
verify_parser.add_argument(
6873
'--validation-output',

0 commit comments

Comments
 (0)