Skip to content

Commit

Permalink
[cli] Fix: Use dashes in ui validate flag
Browse files Browse the repository at this point in the history
- Add ui-validate-io flag with dashes
- Add comment to ui_validate_io as deprecated

This follows the conventions set by other CLI tools
  • Loading branch information
Sami Shahin committed Mar 14, 2019
1 parent 188b4e2 commit 17a6eb9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion operatorcourier/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,15 @@ def verify(self):
parser.add_argument('source_dir', help='Path of your directory of yaml '
'files to bundle. Either set this or '
'use the files argument for bundle data.')
parser.add_argument('--ui_validate_io',
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')
parser.add_argument('--validation-output', dest='validation_output',
help='A file to write validation warnings and errors to'
'in JSON format')
Expand Down

0 comments on commit 17a6eb9

Please sign in to comment.