@mono-labs/cli 0.0.114 → 0.0.115
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.
|
@@ -98,23 +98,25 @@ export function buildCommands(files) {
|
|
|
98
98
|
let envDefaults = {};
|
|
99
99
|
|
|
100
100
|
console.log(arg);
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
if (
|
|
109
|
-
argInfo &&
|
|
110
|
-
argInfo.options &&
|
|
111
|
-
!argInfo.options.includes(arg ?? argInfo.default)
|
|
112
|
-
) {
|
|
113
|
-
throw new Error(
|
|
114
|
-
`Invalid argument value for ${commandName}, must be one of: ${argInfo.options.join(
|
|
115
|
-
', '
|
|
116
|
-
)}`
|
|
101
|
+
if (argInfo) {
|
|
102
|
+
console.log(argInfo);
|
|
103
|
+
console.log(argInfo.options);
|
|
104
|
+
console.log(arg ?? argInfo.default);
|
|
105
|
+
console.log(
|
|
106
|
+
'logic calc',
|
|
107
|
+
!argInfo.options.includes(arg ?? argInfo.default)
|
|
117
108
|
);
|
|
109
|
+
if (
|
|
110
|
+
argInfo &&
|
|
111
|
+
argInfo.options &&
|
|
112
|
+
!argInfo.options.includes(arg ?? argInfo.default)
|
|
113
|
+
) {
|
|
114
|
+
throw new Error(
|
|
115
|
+
`Invalid argument value for ${commandName}, must be one of: ${argInfo.options.join(
|
|
116
|
+
', '
|
|
117
|
+
)}`
|
|
118
|
+
);
|
|
119
|
+
}
|
|
118
120
|
}
|
|
119
121
|
|
|
120
122
|
const optionsDataList = Object.keys(optionsData).map((key) => ({
|