@mono-labs/cli 0.0.152 → 0.0.153

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.
@@ -2,9 +2,14 @@
2
2
  export function verifyOptionValue(optionKey, value, optionsData) {
3
3
  const optionInfo = optionsData[optionKey];
4
4
  if (optionInfo && Array.isArray(optionInfo.options)) {
5
- if (!optionInfo.options.includes(value)) {
5
+ let actualOptions = optionInfo.options;
6
+ if (optionValueList) {
7
+ actualOptions =
8
+ argInfo?.allowAll ? [...optionValueList, 'all'] : [...optionValueList];
9
+ }
10
+ if (!actualOptions.includes(value)) {
6
11
  throw new Error(
7
- `Invalid value for --${optionKey}: ${value}. Valid options are: ${optionInfo.options.join(', ')}`
12
+ `Invalid value for --${optionKey}: ${value}. Valid options are: ${actualOptions.join(', ')}`
8
13
  );
9
14
  }
10
15
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mono-labs/cli",
3
- "version": "0.0.152",
3
+ "version": "0.0.153",
4
4
  "description": "A CLI tool for building and deploying projects",
5
5
  "type": "module",
6
6
  "main": "index.js",