@mablhq/mabl-cli 1.61.7 → 1.61.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -189,8 +189,10 @@ exports.builder = (yargs) => {
189
189
  })
190
190
  .check((argv) => {
191
191
  (0, testsUtil_1.validateRunCommandWithLabels)(argv[constants_1.CommandArgId], argv[constants_1.CommandArgLabelsInclude], argv[constants_1.CommandArgLabelsExclude], argv[constants_1.CommandArgTestRunId], argv[constants_1.CommandArgFromPlanId], true, argv[constants_1.CommandArgTestFile]);
192
- if (argv[constants_1.CommandArgDataTableId] && !argv[constants_1.CommandArgId]) {
193
- throw new Error(`The ${constants_1.CommandArgDataTableId} option can only be used with the ${constants_1.CommandArgId} option`);
192
+ if (argv[constants_1.CommandArgDataTableId] &&
193
+ !argv[constants_1.CommandArgId] &&
194
+ !argv[constants_1.CommandArgFromPlanId]) {
195
+ throw new Error(`The ${constants_1.CommandArgDataTableId} option can only be used with the ${constants_1.CommandArgId} or the ${constants_1.CommandArgFromPlanId} option`);
194
196
  }
195
197
  if (argv[constants_1.CommandArgDataTableId] && argv[constants_1.CommandArgScenarioId]) {
196
198
  throw new Error(`The ${constants_1.CommandArgScenarioId} option cannot be used with the ${constants_1.CommandArgDataTableId} option`);