Skip to content

Commit fedb34c

Browse files
committed
Fix validation error message for single app not found and update argument help text for clarity
1 parent 9f20eaf commit fedb34c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

catalog_reader/scripts/apps_hashes.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def update_catalog_hashes(
2323

2424
verrors = ValidationErrors()
2525
if (train_name and not app_name) or (app_name and not train_name):
26-
verrors.add('app_train', 'Both --train and --app must be specified together')
26+
verrors.add('train_app_pair', 'Both --train and --app must be specified together')
2727

2828
library_dir = pathlib.Path(get_library_path(catalog_path))
2929
if not library_dir.exists():
@@ -125,11 +125,11 @@ def main():
125125
)
126126
parser.add_argument(
127127
'--train', type=str, required=False,
128-
help='Specify a train name to filter apps'
128+
help='Specify a train name (must be used with --app)'
129129
)
130130
parser.add_argument(
131131
'--app', type=str, required=False,
132-
help='Specify a single app name to update instead of updating all apps'
132+
help='Specify a single app name to update (must be used with --train)'
133133
)
134134

135135
args = parser.parse_args()

0 commit comments

Comments
 (0)