Skip to content

Commit 565666f

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 76f5f68 commit 565666f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

operatorcourier/cli.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,18 @@ def verify(self):
5959
parser.add_argument('source_dir', help='Path of your directory of yaml '
6060
'files to bundle. Either set this or '
6161
'use the files argument for bundle data.')
62-
parser.add_argument('--ui_validate_io',
62+
parser.add_argument('--ui-validate-io',
6363
help='Validate bundle for operatorhub.io UI. '
6464
'To visually confirm that your operator '
6565
'will be displayed correctly, please visit '
6666
'https://operatorhub.io/preview and paste '
6767
'your operator CSV.',
68+
dest='ui_validate_io',
69+
action='store_true')
70+
parser.add_argument(# DEPRECATED; BW compatibility
71+
'--ui_validate_io',
72+
dest='ui_validate_io',
73+
help=argparse.SUPPRESS,
6874
action='store_true')
6975
parser.add_argument('--validation-output', dest='validation_output',
7076
help='A file to write validation warnings and errors to'

0 commit comments

Comments
 (0)