@koda-sl/baker-cli 0.111.0-dev.cddbc8759 → 0.111.0-dev.d06db2796

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.
package/dist/cli.js CHANGED
@@ -4552,7 +4552,8 @@ function requireCustomerId(args) {
4552
4552
  return raw;
4553
4553
  }
4554
4554
  function requireTarget(args, entity) {
4555
- const target = args.id ?? args.target ?? args._?.[0];
4555
+ const positional = Array.isArray(args._) ? args._[0] : void 0;
4556
+ const target = args.id ?? args.target ?? positional;
4556
4557
  if (typeof target !== "string" || target.length === 0) {
4557
4558
  failWriteValidation(`pass the ${entity} resource name or id as the positional argument`);
4558
4559
  }