@flock/wirespec 0.8.28 → 0.8.30
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/Kotlinx-Cli-Library-kotlinx-cli-js-ir.js +294 -294
- package/kotlin-kotlin-stdlib-js-ir.js +9 -9
- package/kotlin-kotlin-stdlib-js-ir.js.map +1 -1
- package/kotlin-openapi-bindings.js +3299 -3299
- package/kotlinx-serialization-kotlinx-serialization-core-js-ir.js +1235 -1235
- package/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json-js-ir.js +975 -975
- package/package.json +1 -1
- package/wirespec-src-compiler-cli.js +80 -80
- package/wirespec-src-compiler-core.js +560 -458
- package/wirespec-src-compiler-core.js.map +1 -1
- package/wirespec-src-compiler-lib.js +37 -37
- package/wirespec-src-compiler-lib.js.map +1 -1
- package/wirespec-src-openapi.js +356 -356
|
@@ -146,7 +146,7 @@
|
|
|
146
146
|
var previousArgument = null;
|
|
147
147
|
// Inline function 'kotlin.collections.forEach' call
|
|
148
148
|
// Inline function 'kotlin.collections.iterator' call
|
|
149
|
-
var tmp0_iterator = $this.
|
|
149
|
+
var tmp0_iterator = $this.r1v_1.u().c();
|
|
150
150
|
while (tmp0_iterator.d()) {
|
|
151
151
|
var element = tmp0_iterator.e();
|
|
152
152
|
// Inline function 'kotlinx.cli.ArgParser.inspectRequiredAndDefaultUsage.<anonymous>' call
|
|
@@ -158,18 +158,18 @@
|
|
|
158
158
|
else {
|
|
159
159
|
// Inline function 'kotlin.let' call
|
|
160
160
|
// Inline function 'kotlin.contracts.contract' call
|
|
161
|
-
if (tmp0_safe_receiver.
|
|
162
|
-
if (!currentArgument.
|
|
161
|
+
if (tmp0_safe_receiver.m1w_1.p1w()) {
|
|
162
|
+
if (!currentArgument.m1w_1.p1w() ? currentArgument.m1w_1.j1w_1 : false) {
|
|
163
163
|
// Inline function 'kotlin.error' call
|
|
164
|
-
var tmp0_error = 'Default value of argument ' + tmp0_safe_receiver.
|
|
164
|
+
var tmp0_error = 'Default value of argument ' + tmp0_safe_receiver.m1w_1.g1w_1 + ' will be unused, ' + ('because next argument ' + currentArgument.m1w_1.g1w_1 + ' is always required and has no default value.');
|
|
165
165
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
166
166
|
}
|
|
167
167
|
}
|
|
168
168
|
var tmp;
|
|
169
|
-
if (!tmp0_safe_receiver.
|
|
169
|
+
if (!tmp0_safe_receiver.m1w_1.j1w_1) {
|
|
170
170
|
var tmp_0;
|
|
171
|
-
if (!currentArgument.
|
|
172
|
-
var tmp1_error = 'Argument ' + tmp0_safe_receiver.
|
|
171
|
+
if (!currentArgument.m1w_1.p1w() ? currentArgument.m1w_1.j1w_1 : false) {
|
|
172
|
+
var tmp1_error = 'Argument ' + tmp0_safe_receiver.m1w_1.g1w_1 + ' will be always required, ' + ('because next argument ' + currentArgument.m1w_1.g1w_1 + ' is always required.');
|
|
173
173
|
throw IllegalStateException_init_$Create$(toString(tmp1_error));
|
|
174
174
|
}
|
|
175
175
|
tmp = tmp_0;
|
|
@@ -179,18 +179,18 @@
|
|
|
179
179
|
}
|
|
180
180
|
}
|
|
181
181
|
function printError($this, message) {
|
|
182
|
-
$this.
|
|
182
|
+
$this.e1w_1(message + '\n' + $this.q1w(), 127);
|
|
183
183
|
throwKotlinNothingValueException();
|
|
184
184
|
}
|
|
185
185
|
function saveAsArg($this, arg, argumentsQueue) {
|
|
186
|
-
var name = argumentsQueue.
|
|
186
|
+
var name = argumentsQueue.s1w();
|
|
187
187
|
if (name == null)
|
|
188
188
|
null;
|
|
189
189
|
else {
|
|
190
190
|
// Inline function 'kotlin.let' call
|
|
191
191
|
// Inline function 'kotlin.contracts.contract' call
|
|
192
|
-
var argumentValue = ensureNotNull($this.
|
|
193
|
-
var tmp0_safe_receiver = argumentValue.k1w_1
|
|
192
|
+
var argumentValue = ensureNotNull($this.r1v_1.n2(name));
|
|
193
|
+
var tmp0_safe_receiver = argumentValue.m1w_1.k1w_1;
|
|
194
194
|
if (tmp0_safe_receiver == null)
|
|
195
195
|
null;
|
|
196
196
|
else {
|
|
@@ -198,7 +198,7 @@
|
|
|
198
198
|
// Inline function 'kotlin.contracts.contract' call
|
|
199
199
|
printWarning(tmp0_safe_receiver);
|
|
200
200
|
}
|
|
201
|
-
argumentValue.
|
|
201
|
+
argumentValue.t1w(arg);
|
|
202
202
|
return true;
|
|
203
203
|
}
|
|
204
204
|
return false;
|
|
@@ -206,13 +206,13 @@
|
|
|
206
206
|
function treatAsArgument($this, arg, argumentsQueue) {
|
|
207
207
|
if (!saveAsArg($this, arg, argumentsQueue)) {
|
|
208
208
|
var tmp;
|
|
209
|
-
if ($this.
|
|
209
|
+
if ($this.d1w_1 == null) {
|
|
210
210
|
tmp = null;
|
|
211
211
|
} else {
|
|
212
212
|
// Inline function 'kotlin.let' call
|
|
213
213
|
// Inline function 'kotlin.contracts.contract' call
|
|
214
214
|
// Inline function 'kotlinx.cli.ArgParser.treatAsArgument.<anonymous>' call
|
|
215
|
-
tmp = ($this.
|
|
215
|
+
tmp = ($this.a1w_1 ? $this.c1w_1 : $this.b1w_1).a(arg);
|
|
216
216
|
}
|
|
217
217
|
if (tmp == null) {
|
|
218
218
|
printError($this, "Too many arguments! Couldn't process argument " + arg + '!');
|
|
@@ -220,37 +220,37 @@
|
|
|
220
220
|
}
|
|
221
221
|
}
|
|
222
222
|
function saveAsOption($this, parsingValue, value) {
|
|
223
|
-
parsingValue.
|
|
223
|
+
parsingValue.t1w(value);
|
|
224
224
|
}
|
|
225
225
|
function recognizeAndSaveOptionFullForm($this, candidate, argIterator) {
|
|
226
|
-
if ($this.
|
|
227
|
-
$this.
|
|
226
|
+
if ($this.n1v_1.equals(OptionPrefixStyle_GNU_getInstance()) ? candidate === $this.x1v_1 : false) {
|
|
227
|
+
$this.a1w_1 = false;
|
|
228
228
|
return false;
|
|
229
229
|
}
|
|
230
|
-
if (!startsWith(candidate, $this.
|
|
230
|
+
if (!startsWith(candidate, $this.x1v_1))
|
|
231
231
|
return false;
|
|
232
232
|
// Inline function 'kotlin.text.substring' call
|
|
233
|
-
var tmp0_substring = $this.
|
|
233
|
+
var tmp0_substring = $this.x1v_1.length;
|
|
234
234
|
// Inline function 'kotlin.js.asDynamic' call
|
|
235
235
|
var optionString = candidate.substring(tmp0_substring);
|
|
236
|
-
var argValue = $this.
|
|
236
|
+
var argValue = $this.n1v_1.equals(OptionPrefixStyle_GNU_getInstance()) ? null : $this.q1v_1.n2(optionString);
|
|
237
237
|
if (!(argValue == null)) {
|
|
238
238
|
saveStandardOptionForm($this, argValue, argIterator);
|
|
239
239
|
return true;
|
|
240
240
|
} else {
|
|
241
|
-
if ($this.
|
|
242
|
-
var tmp0_safe_receiver = $this.
|
|
243
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
244
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
245
|
-
if ((tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
246
|
-
$this.
|
|
241
|
+
if ($this.n1v_1.equals(OptionPrefixStyle_GNU_getInstance())) {
|
|
242
|
+
var tmp0_safe_receiver = $this.q1v_1.n2(optionString);
|
|
243
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.m1w_1;
|
|
244
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.f1w_1;
|
|
245
|
+
if ((tmp2_safe_receiver == null ? null : tmp2_safe_receiver.v1w_1) === false) {
|
|
246
|
+
$this.u1w(ensureNotNull($this.q1v_1.n2(optionString)));
|
|
247
247
|
return true;
|
|
248
248
|
}
|
|
249
249
|
var optionParts = split(optionString, charArrayOf([_Char___init__impl__6a9atx(61)]), VOID, 2);
|
|
250
250
|
if (!(optionParts.f() === 2))
|
|
251
251
|
return false;
|
|
252
|
-
if (!($this.
|
|
253
|
-
saveAsOption($this, ensureNotNull($this.
|
|
252
|
+
if (!($this.q1v_1.n2(optionParts.h(0)) == null)) {
|
|
253
|
+
saveAsOption($this, ensureNotNull($this.q1v_1.n2(optionParts.h(0))), optionParts.h(1));
|
|
254
254
|
return true;
|
|
255
255
|
}
|
|
256
256
|
}
|
|
@@ -258,29 +258,29 @@
|
|
|
258
258
|
return false;
|
|
259
259
|
}
|
|
260
260
|
function saveStandardOptionForm($this, argValue, argIterator) {
|
|
261
|
-
if (argValue.
|
|
261
|
+
if (argValue.m1w_1.f1w_1.v1w_1) {
|
|
262
262
|
if (argIterator.d()) {
|
|
263
263
|
saveAsOption($this, argValue, argIterator.e());
|
|
264
264
|
} else {
|
|
265
|
-
printError($this, 'No value for ' + argValue.
|
|
265
|
+
printError($this, 'No value for ' + argValue.m1w_1.w1w());
|
|
266
266
|
}
|
|
267
267
|
} else {
|
|
268
|
-
$this.
|
|
268
|
+
$this.u1w(argValue);
|
|
269
269
|
}
|
|
270
270
|
}
|
|
271
271
|
function recognizeAndSaveOptionShortForm($this, candidate, argIterator) {
|
|
272
|
-
if (!startsWith(candidate, $this.
|
|
272
|
+
if (!startsWith(candidate, $this.y1v_1) ? true : !($this.x1v_1 === $this.y1v_1) ? startsWith(candidate, $this.x1v_1) : false)
|
|
273
273
|
return false;
|
|
274
274
|
// Inline function 'kotlin.text.substring' call
|
|
275
|
-
var tmp0_substring = $this.
|
|
275
|
+
var tmp0_substring = $this.y1v_1.length;
|
|
276
276
|
// Inline function 'kotlin.js.asDynamic' call
|
|
277
277
|
var option = candidate.substring(tmp0_substring);
|
|
278
|
-
var argValue = $this.
|
|
278
|
+
var argValue = $this.w1v_1.n2(option);
|
|
279
279
|
if (!(argValue == null)) {
|
|
280
280
|
saveStandardOptionForm($this, argValue, argIterator);
|
|
281
281
|
} else {
|
|
282
282
|
var tmp;
|
|
283
|
-
if (!$this.
|
|
283
|
+
if (!$this.n1v_1.equals(OptionPrefixStyle_GNU_getInstance())) {
|
|
284
284
|
tmp = true;
|
|
285
285
|
} else {
|
|
286
286
|
// Inline function 'kotlin.text.isEmpty' call
|
|
@@ -288,7 +288,7 @@
|
|
|
288
288
|
}
|
|
289
289
|
if (tmp)
|
|
290
290
|
return false;
|
|
291
|
-
var tmp0_elvis_lhs = $this.
|
|
291
|
+
var tmp0_elvis_lhs = $this.w1v_1.n2('' + new Char(charSequenceGet(option, 0)));
|
|
292
292
|
var tmp_0;
|
|
293
293
|
if (tmp0_elvis_lhs == null) {
|
|
294
294
|
return false;
|
|
@@ -296,7 +296,7 @@
|
|
|
296
296
|
tmp_0 = tmp0_elvis_lhs;
|
|
297
297
|
}
|
|
298
298
|
var firstOption = tmp_0;
|
|
299
|
-
if (firstOption.
|
|
299
|
+
if (firstOption.m1w_1.f1w_1.v1w_1) {
|
|
300
300
|
var tmp$ret$4;
|
|
301
301
|
// Inline function 'kotlin.text.substring' call
|
|
302
302
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -306,13 +306,13 @@
|
|
|
306
306
|
// Inline function 'kotlin.text.substring' call
|
|
307
307
|
// Inline function 'kotlin.js.asDynamic' call
|
|
308
308
|
var otherBooleanOptions = option.substring(1);
|
|
309
|
-
$this.
|
|
309
|
+
$this.u1w(firstOption);
|
|
310
310
|
var inductionVariable = 0;
|
|
311
311
|
var last = otherBooleanOptions.length;
|
|
312
312
|
while (inductionVariable < last) {
|
|
313
313
|
var opt = charSequenceGet(otherBooleanOptions, inductionVariable);
|
|
314
314
|
inductionVariable = inductionVariable + 1 | 0;
|
|
315
|
-
var tmp2_safe_receiver = $this.
|
|
315
|
+
var tmp2_safe_receiver = $this.w1v_1.n2('' + new Char(opt));
|
|
316
316
|
var tmp_1;
|
|
317
317
|
if (tmp2_safe_receiver == null) {
|
|
318
318
|
tmp_1 = null;
|
|
@@ -320,15 +320,15 @@
|
|
|
320
320
|
// Inline function 'kotlin.let' call
|
|
321
321
|
// Inline function 'kotlin.contracts.contract' call
|
|
322
322
|
var tmp_2;
|
|
323
|
-
if (tmp2_safe_receiver.
|
|
324
|
-
printError($this, 'Option ' + $this.
|
|
323
|
+
if (tmp2_safe_receiver.m1w_1.f1w_1.v1w_1) {
|
|
324
|
+
printError($this, 'Option ' + $this.y1v_1 + new Char(opt) + " can't be used in option combination " + candidate + ', ' + ('because parameter value of type ' + tmp2_safe_receiver.m1w_1.f1w_1.x1w() + ' should be ') + 'provided for current option.');
|
|
325
325
|
}
|
|
326
326
|
tmp_1 = Unit_getInstance();
|
|
327
327
|
}
|
|
328
328
|
if (tmp_1 == null) {
|
|
329
|
-
printError($this, 'Unknown option ' + $this.
|
|
329
|
+
printError($this, 'Unknown option ' + $this.y1v_1 + new Char(opt) + ' in option combination ' + candidate + '.');
|
|
330
330
|
}
|
|
331
|
-
$this.
|
|
331
|
+
$this.u1w(ensureNotNull($this.w1v_1.n2('' + new Char(opt))));
|
|
332
332
|
}
|
|
333
333
|
}
|
|
334
334
|
}
|
|
@@ -371,46 +371,46 @@
|
|
|
371
371
|
prefixStyle = prefixStyle === VOID ? OptionPrefixStyle_LINUX_getInstance() : prefixStyle;
|
|
372
372
|
skipExtraArguments = skipExtraArguments === VOID ? false : skipExtraArguments;
|
|
373
373
|
strictSubcommandOptionsOrder = strictSubcommandOptionsOrder === VOID ? false : strictSubcommandOptionsOrder;
|
|
374
|
-
this.
|
|
375
|
-
this.
|
|
376
|
-
this.
|
|
377
|
-
this.
|
|
378
|
-
this.
|
|
374
|
+
this.l1v_1 = programName;
|
|
375
|
+
this.m1v_1 = useDefaultHelpShortName;
|
|
376
|
+
this.n1v_1 = prefixStyle;
|
|
377
|
+
this.o1v_1 = skipExtraArguments;
|
|
378
|
+
this.p1v_1 = strictSubcommandOptionsOrder;
|
|
379
379
|
var tmp = this;
|
|
380
380
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
381
|
-
tmp.
|
|
381
|
+
tmp.q1v_1 = LinkedHashMap_init_$Create$();
|
|
382
382
|
var tmp_0 = this;
|
|
383
383
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
384
|
-
tmp_0.
|
|
384
|
+
tmp_0.r1v_1 = LinkedHashMap_init_$Create$();
|
|
385
385
|
var tmp_1 = this;
|
|
386
386
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
387
|
-
tmp_1.
|
|
387
|
+
tmp_1.s1v_1 = ArrayList_init_$Create$();
|
|
388
388
|
var tmp_2 = this;
|
|
389
389
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
390
|
-
tmp_2.
|
|
391
|
-
this.
|
|
390
|
+
tmp_2.t1v_1 = ArrayList_init_$Create$();
|
|
391
|
+
this.u1v_1 = null;
|
|
392
392
|
var tmp_3 = this;
|
|
393
393
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
394
|
-
tmp_3.
|
|
394
|
+
tmp_3.v1v_1 = LinkedHashMap_init_$Create$();
|
|
395
395
|
var tmp_4 = this;
|
|
396
396
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
397
|
-
tmp_4.
|
|
398
|
-
this.
|
|
399
|
-
this.
|
|
400
|
-
this.
|
|
401
|
-
this.
|
|
397
|
+
tmp_4.w1v_1 = LinkedHashMap_init_$Create$();
|
|
398
|
+
this.x1v_1 = this.n1v_1.equals(OptionPrefixStyle_JVM_getInstance()) ? '-' : '--';
|
|
399
|
+
this.y1v_1 = '-';
|
|
400
|
+
this.z1v_1 = mutableListOf([this.l1v_1]);
|
|
401
|
+
this.a1w_1 = true;
|
|
402
402
|
var tmp_5 = this;
|
|
403
403
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
404
|
-
tmp_5.
|
|
404
|
+
tmp_5.b1w_1 = ArrayList_init_$Create$();
|
|
405
405
|
var tmp_6 = this;
|
|
406
406
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
407
|
-
tmp_6.
|
|
408
|
-
this.
|
|
407
|
+
tmp_6.c1w_1 = ArrayList_init_$Create$();
|
|
408
|
+
this.d1w_1 = null;
|
|
409
409
|
var tmp_7 = this;
|
|
410
|
-
tmp_7.
|
|
410
|
+
tmp_7.e1w_1 = ArgParser$outputAndTerminate$lambda;
|
|
411
411
|
}
|
|
412
|
-
protoOf(ArgParser).
|
|
413
|
-
if (this.
|
|
412
|
+
protoOf(ArgParser).y1w = function (type, fullName, shortName, description, deprecatedWarning) {
|
|
413
|
+
if (this.n1v_1.equals(OptionPrefixStyle_GNU_getInstance()) ? !(shortName == null) : false) {
|
|
414
414
|
// Inline function 'kotlin.require' call
|
|
415
415
|
// Inline function 'kotlin.contracts.contract' call
|
|
416
416
|
if (!(shortName.length === 1)) {
|
|
@@ -419,111 +419,111 @@
|
|
|
419
419
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
420
420
|
}
|
|
421
421
|
}
|
|
422
|
-
var option = new SingleNullableOption(new OptionDescriptor(this.
|
|
423
|
-
option.z1w_1
|
|
424
|
-
this.
|
|
422
|
+
var option = new SingleNullableOption(new OptionDescriptor(this.x1v_1, this.y1v_1, type, fullName, shortName, description, VOID, VOID, VOID, VOID, deprecatedWarning), new CLIEntityWrapper());
|
|
423
|
+
option.b1x_1.z1w_1 = option;
|
|
424
|
+
this.s1v_1.a(option.b1x_1);
|
|
425
425
|
return option;
|
|
426
426
|
};
|
|
427
|
-
protoOf(ArgParser).
|
|
427
|
+
protoOf(ArgParser).d1x = function (type, fullName, shortName, description, deprecatedWarning, $super) {
|
|
428
428
|
fullName = fullName === VOID ? null : fullName;
|
|
429
429
|
shortName = shortName === VOID ? null : shortName;
|
|
430
430
|
description = description === VOID ? null : description;
|
|
431
431
|
deprecatedWarning = deprecatedWarning === VOID ? null : deprecatedWarning;
|
|
432
|
-
return $super === VOID ? this.
|
|
432
|
+
return $super === VOID ? this.y1w(type, fullName, shortName, description, deprecatedWarning) : $super.y1w.call(this, type, fullName, shortName, description, deprecatedWarning);
|
|
433
433
|
};
|
|
434
|
-
protoOf(ArgParser).
|
|
434
|
+
protoOf(ArgParser).e1x = function (type, fullName, description, deprecatedWarning) {
|
|
435
435
|
var argument = new SingleArgument(new ArgDescriptor(type, fullName, 1, description, VOID, VOID, deprecatedWarning), new CLIEntityWrapper());
|
|
436
|
-
argument.z1w_1
|
|
437
|
-
this.
|
|
436
|
+
argument.b1x_1.z1w_1 = argument;
|
|
437
|
+
this.t1v_1.a(argument.b1x_1);
|
|
438
438
|
return argument;
|
|
439
439
|
};
|
|
440
|
-
protoOf(ArgParser).
|
|
440
|
+
protoOf(ArgParser).f1x = function (type, fullName, description, deprecatedWarning, $super) {
|
|
441
441
|
fullName = fullName === VOID ? null : fullName;
|
|
442
442
|
description = description === VOID ? null : description;
|
|
443
443
|
deprecatedWarning = deprecatedWarning === VOID ? null : deprecatedWarning;
|
|
444
|
-
return $super === VOID ? this.
|
|
444
|
+
return $super === VOID ? this.e1x(type, fullName, description, deprecatedWarning) : $super.e1x.call(this, type, fullName, description, deprecatedWarning);
|
|
445
445
|
};
|
|
446
|
-
protoOf(ArgParser).
|
|
447
|
-
if (argValue.
|
|
448
|
-
var tmp0_safe_receiver = this.
|
|
446
|
+
protoOf(ArgParser).u1w = function (argValue) {
|
|
447
|
+
if (argValue.m1w_1.g1w_1 === 'help') {
|
|
448
|
+
var tmp0_safe_receiver = this.d1w_1;
|
|
449
449
|
if (tmp0_safe_receiver == null)
|
|
450
450
|
null;
|
|
451
451
|
else {
|
|
452
452
|
// Inline function 'kotlin.let' call
|
|
453
453
|
// Inline function 'kotlin.contracts.contract' call
|
|
454
454
|
// Inline function 'kotlinx.cli.ArgParser.saveOptionWithoutParameter.<anonymous>' call
|
|
455
|
-
tmp0_safe_receiver.
|
|
455
|
+
tmp0_safe_receiver.g1x(listOf(tmp0_safe_receiver.x1v_1 + argValue.m1w_1.g1w_1));
|
|
456
456
|
}
|
|
457
|
-
this.
|
|
457
|
+
this.e1w_1(this.q1w(), 0);
|
|
458
458
|
throwKotlinNothingValueException();
|
|
459
459
|
}
|
|
460
460
|
saveAsOption(this, argValue, 'true');
|
|
461
461
|
};
|
|
462
|
-
protoOf(ArgParser).
|
|
463
|
-
return this.
|
|
462
|
+
protoOf(ArgParser).h1x = function (args) {
|
|
463
|
+
return this.g1x(asList(args));
|
|
464
464
|
};
|
|
465
|
-
protoOf(ArgParser).
|
|
465
|
+
protoOf(ArgParser).g1x = function (args) {
|
|
466
466
|
// Inline function 'kotlin.check' call
|
|
467
467
|
// Inline function 'kotlin.contracts.contract' call
|
|
468
|
-
if (!(this.
|
|
468
|
+
if (!(this.u1v_1 == null)) {
|
|
469
469
|
// Inline function 'kotlinx.cli.ArgParser.parse.<anonymous>' call
|
|
470
470
|
var message = 'Parsing of command line options can be called only once.';
|
|
471
471
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
472
472
|
}
|
|
473
|
-
var helpDescriptor = this.
|
|
473
|
+
var helpDescriptor = this.m1v_1 ? new OptionDescriptor(this.x1v_1, this.y1v_1, Boolean_getInstance(), 'help', 'h', 'Usage info') : new OptionDescriptor(this.x1v_1, this.y1v_1, Boolean_getInstance(), 'help', VOID, 'Usage info');
|
|
474
474
|
var helpOption = new SingleNullableOption(helpDescriptor, new CLIEntityWrapper());
|
|
475
|
-
helpOption.z1w_1
|
|
476
|
-
this.
|
|
477
|
-
if (this.
|
|
478
|
-
vararg(this.
|
|
475
|
+
helpOption.b1x_1.z1w_1 = helpOption;
|
|
476
|
+
this.s1v_1.a(helpOption.b1x_1);
|
|
477
|
+
if (this.o1v_1) {
|
|
478
|
+
vararg(this.f1x(String_getInstance(), ''));
|
|
479
479
|
}
|
|
480
|
-
this.
|
|
481
|
-
this.
|
|
480
|
+
this.q1v_1.c9();
|
|
481
|
+
this.r1v_1.c9();
|
|
482
482
|
// Inline function 'kotlin.collections.forEachIndexed' call
|
|
483
483
|
var index = 0;
|
|
484
|
-
var tmp0_iterator = this.
|
|
484
|
+
var tmp0_iterator = this.s1v_1.c();
|
|
485
485
|
while (tmp0_iterator.d()) {
|
|
486
486
|
var item = tmp0_iterator.e();
|
|
487
487
|
// Inline function 'kotlinx.cli.ArgParser.parse.<anonymous>' call
|
|
488
488
|
var tmp1 = index;
|
|
489
489
|
index = tmp1 + 1 | 0;
|
|
490
490
|
var tmp2_anonymous = checkIndexOverflow(tmp1);
|
|
491
|
-
var tmp0_safe_receiver = item.
|
|
492
|
-
var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
491
|
+
var tmp0_safe_receiver = item.z1w_1;
|
|
492
|
+
var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.a1x_1;
|
|
493
493
|
var value = tmp instanceof ParsingValue ? tmp : THROW_CCE();
|
|
494
|
-
var tmp1_safe_receiver = value.
|
|
494
|
+
var tmp1_safe_receiver = value.m1w_1.g1w_1;
|
|
495
495
|
var tmp_0;
|
|
496
496
|
if (tmp1_safe_receiver == null) {
|
|
497
497
|
tmp_0 = null;
|
|
498
498
|
} else {
|
|
499
499
|
// Inline function 'kotlin.let' call
|
|
500
500
|
// Inline function 'kotlin.contracts.contract' call
|
|
501
|
-
if (this.
|
|
501
|
+
if (this.q1v_1.j2(tmp1_safe_receiver)) {
|
|
502
502
|
// Inline function 'kotlin.error' call
|
|
503
503
|
var tmp0_error = 'Option with full name ' + tmp1_safe_receiver + ' was already added.';
|
|
504
504
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
505
505
|
}
|
|
506
506
|
// Inline function 'kotlin.with' call
|
|
507
|
-
var tmp_1 = value.
|
|
507
|
+
var tmp_1 = value.m1w_1;
|
|
508
508
|
var tmp1_with = tmp_1 instanceof OptionDescriptor ? tmp_1 : THROW_CCE();
|
|
509
509
|
// Inline function 'kotlin.contracts.contract' call
|
|
510
510
|
// Inline function 'kotlinx.cli.ArgParser.parse.<anonymous>.<anonymous>.<anonymous>' call
|
|
511
|
-
if (!(tmp1_with.
|
|
511
|
+
if (!(tmp1_with.r1x_1 == null) ? this.w1v_1.j2(tmp1_with.r1x_1) : false) {
|
|
512
512
|
// Inline function 'kotlin.error' call
|
|
513
|
-
var tmp0_error_0 = 'Option with short name ' + tmp1_with.
|
|
513
|
+
var tmp0_error_0 = 'Option with short name ' + tmp1_with.r1x_1 + ' was already added.';
|
|
514
514
|
throw IllegalStateException_init_$Create$(toString(tmp0_error_0));
|
|
515
515
|
}
|
|
516
|
-
var tmp0_safe_receiver_0 = tmp1_with.
|
|
516
|
+
var tmp0_safe_receiver_0 = tmp1_with.r1x_1;
|
|
517
517
|
var tmp_2;
|
|
518
518
|
if (tmp0_safe_receiver_0 == null) {
|
|
519
519
|
tmp_2 = null;
|
|
520
520
|
} else {
|
|
521
521
|
// Inline function 'kotlin.let' call
|
|
522
522
|
// Inline function 'kotlin.contracts.contract' call
|
|
523
|
-
this.
|
|
523
|
+
this.w1v_1.l3(tmp0_safe_receiver_0, value);
|
|
524
524
|
tmp_2 = Unit_getInstance();
|
|
525
525
|
}
|
|
526
|
-
this.
|
|
526
|
+
this.q1v_1.l3(tmp1_safe_receiver, value);
|
|
527
527
|
tmp_0 = Unit_getInstance();
|
|
528
528
|
}
|
|
529
529
|
if (tmp_0 == null) {
|
|
@@ -534,29 +534,29 @@
|
|
|
534
534
|
}
|
|
535
535
|
// Inline function 'kotlin.collections.forEachIndexed' call
|
|
536
536
|
var index_0 = 0;
|
|
537
|
-
var tmp0_iterator_0 = this.
|
|
537
|
+
var tmp0_iterator_0 = this.t1v_1.c();
|
|
538
538
|
while (tmp0_iterator_0.d()) {
|
|
539
539
|
var item_0 = tmp0_iterator_0.e();
|
|
540
540
|
// Inline function 'kotlinx.cli.ArgParser.parse.<anonymous>' call
|
|
541
541
|
var tmp1_0 = index_0;
|
|
542
542
|
index_0 = tmp1_0 + 1 | 0;
|
|
543
543
|
var tmp4_anonymous = checkIndexOverflow(tmp1_0);
|
|
544
|
-
var tmp0_safe_receiver_1 = item_0.
|
|
545
|
-
var tmp_3 = tmp0_safe_receiver_1 == null ? null : tmp0_safe_receiver_1.
|
|
544
|
+
var tmp0_safe_receiver_1 = item_0.z1w_1;
|
|
545
|
+
var tmp_3 = tmp0_safe_receiver_1 == null ? null : tmp0_safe_receiver_1.a1x_1;
|
|
546
546
|
var value_0 = tmp_3 instanceof ParsingValue ? tmp_3 : THROW_CCE();
|
|
547
|
-
var tmp1_safe_receiver_0 = value_0.
|
|
547
|
+
var tmp1_safe_receiver_0 = value_0.m1w_1.g1w_1;
|
|
548
548
|
var tmp_4;
|
|
549
549
|
if (tmp1_safe_receiver_0 == null) {
|
|
550
550
|
tmp_4 = null;
|
|
551
551
|
} else {
|
|
552
552
|
// Inline function 'kotlin.let' call
|
|
553
553
|
// Inline function 'kotlin.contracts.contract' call
|
|
554
|
-
if (this.
|
|
554
|
+
if (this.r1v_1.j2(tmp1_safe_receiver_0)) {
|
|
555
555
|
// Inline function 'kotlin.error' call
|
|
556
556
|
var tmp0_error_2 = 'Argument with full name ' + tmp1_safe_receiver_0 + ' was already added.';
|
|
557
557
|
throw IllegalStateException_init_$Create$(toString(tmp0_error_2));
|
|
558
558
|
}
|
|
559
|
-
this.
|
|
559
|
+
this.r1v_1.l3(tmp1_safe_receiver_0, value_0);
|
|
560
560
|
tmp_4 = Unit_getInstance();
|
|
561
561
|
}
|
|
562
562
|
if (tmp_4 == null) {
|
|
@@ -567,7 +567,7 @@
|
|
|
567
567
|
}
|
|
568
568
|
inspectRequiredAndDefaultUsage(this);
|
|
569
569
|
// Inline function 'kotlin.collections.forEach' call
|
|
570
|
-
var tmp0_iterator_1 = listOf_0([this.
|
|
570
|
+
var tmp0_iterator_1 = listOf_0([this.r1v_1, this.q1v_1]).c();
|
|
571
571
|
while (tmp0_iterator_1.d()) {
|
|
572
572
|
var element = tmp0_iterator_1.e();
|
|
573
573
|
// Inline function 'kotlinx.cli.ArgParser.parse.<anonymous>' call
|
|
@@ -579,11 +579,11 @@
|
|
|
579
579
|
// Inline function 'kotlinx.cli.ArgParser.parse.<anonymous>.<anonymous>' call
|
|
580
580
|
// Inline function 'kotlin.collections.component2' call
|
|
581
581
|
var value_1 = element_0.w();
|
|
582
|
-
value_1.
|
|
582
|
+
value_1.o1w_1 = ValueOrigin_UNSET_getInstance();
|
|
583
583
|
}
|
|
584
584
|
}
|
|
585
585
|
// Inline function 'kotlin.collections.map' call
|
|
586
|
-
var tmp6_map = this.
|
|
586
|
+
var tmp6_map = this.r1v_1;
|
|
587
587
|
// Inline function 'kotlin.collections.mapTo' call
|
|
588
588
|
var tmp0_mapTo = ArrayList_init_$Create$_0(tmp6_map.f());
|
|
589
589
|
// Inline function 'kotlin.collections.iterator' call
|
|
@@ -592,35 +592,35 @@
|
|
|
592
592
|
var item_1 = tmp0_iterator_3.e();
|
|
593
593
|
var tmp$ret$9;
|
|
594
594
|
// Inline function 'kotlinx.cli.ArgParser.parse.<anonymous>' call
|
|
595
|
-
var tmp_5 = item_1.w().
|
|
595
|
+
var tmp_5 = item_1.w().m1w_1;
|
|
596
596
|
tmp$ret$9 = tmp_5 instanceof ArgDescriptor ? tmp_5 : THROW_CCE();
|
|
597
597
|
tmp0_mapTo.a(tmp$ret$9);
|
|
598
598
|
}
|
|
599
599
|
var argumentsQueue = new ArgumentsQueue(tmp0_mapTo);
|
|
600
|
-
this.
|
|
601
|
-
this.
|
|
602
|
-
this.
|
|
600
|
+
this.d1w_1 = null;
|
|
601
|
+
this.c1w_1.c9();
|
|
602
|
+
this.b1w_1.c9();
|
|
603
603
|
var argIterator = args.q1();
|
|
604
604
|
try {
|
|
605
605
|
$l$loop: while (argIterator.d()) {
|
|
606
606
|
var arg = argIterator.e();
|
|
607
607
|
// Inline function 'kotlin.collections.contains' call
|
|
608
|
-
var tmp7_contains = this.
|
|
608
|
+
var tmp7_contains = this.v1v_1;
|
|
609
609
|
// Inline function 'kotlin.collections.containsKey' call
|
|
610
610
|
if (!(isInterface(tmp7_contains, Map) ? tmp7_contains : THROW_CCE()).j2(arg)) {
|
|
611
|
-
if (this.
|
|
611
|
+
if (this.a1w_1 ? startsWith_0(arg, _Char___init__impl__6a9atx(45)) : false) {
|
|
612
612
|
if (!(recognizeAndSaveOptionShortForm(this, arg, argIterator) ? true : recognizeAndSaveOptionFullForm(this, arg, argIterator))) {
|
|
613
|
-
if (!this.
|
|
613
|
+
if (!this.a1w_1) {
|
|
614
614
|
treatAsArgument(this, argIterator.e(), argumentsQueue);
|
|
615
615
|
} else {
|
|
616
616
|
var tmp_6;
|
|
617
|
-
if (this.
|
|
617
|
+
if (this.d1w_1 == null) {
|
|
618
618
|
tmp_6 = null;
|
|
619
619
|
} else {
|
|
620
620
|
// Inline function 'kotlin.let' call
|
|
621
621
|
// Inline function 'kotlin.contracts.contract' call
|
|
622
622
|
// Inline function 'kotlinx.cli.ArgParser.parse.<anonymous>' call
|
|
623
|
-
tmp_6 = this.
|
|
623
|
+
tmp_6 = this.c1w_1.a(arg);
|
|
624
624
|
}
|
|
625
625
|
if (tmp_6 == null) {
|
|
626
626
|
// Inline function 'kotlin.run' call
|
|
@@ -636,49 +636,49 @@
|
|
|
636
636
|
treatAsArgument(this, arg, argumentsQueue);
|
|
637
637
|
}
|
|
638
638
|
} else {
|
|
639
|
-
this.
|
|
640
|
-
if (this.
|
|
639
|
+
this.d1w_1 = this.v1v_1.n2(arg);
|
|
640
|
+
if (this.p1v_1) {
|
|
641
641
|
break $l$loop;
|
|
642
642
|
}
|
|
643
643
|
}
|
|
644
644
|
}
|
|
645
645
|
// Inline function 'kotlin.collections.forEach' call
|
|
646
|
-
var tmp0_iterator_4 = union(this.
|
|
646
|
+
var tmp0_iterator_4 = union(this.q1v_1.ja(), this.r1v_1.ja()).c();
|
|
647
647
|
while (tmp0_iterator_4.d()) {
|
|
648
648
|
var element_1 = tmp0_iterator_4.e();
|
|
649
649
|
// Inline function 'kotlinx.cli.ArgParser.parse.<anonymous>' call
|
|
650
650
|
if (element_1.g()) {
|
|
651
|
-
element_1.
|
|
651
|
+
element_1.u1x();
|
|
652
652
|
}
|
|
653
|
-
if (!element_1.
|
|
654
|
-
printError(this, 'Value for ' + element_1.
|
|
653
|
+
if (!element_1.o1w_1.equals(ValueOrigin_SET_BY_USER_getInstance()) ? element_1.m1w_1.j1w_1 : false) {
|
|
654
|
+
printError(this, 'Value for ' + element_1.m1w_1.w1w() + ' should be always provided in command line.');
|
|
655
655
|
}
|
|
656
656
|
}
|
|
657
|
-
var tmp2_safe_receiver = this.
|
|
657
|
+
var tmp2_safe_receiver = this.d1w_1;
|
|
658
658
|
if (tmp2_safe_receiver == null)
|
|
659
659
|
null;
|
|
660
660
|
else {
|
|
661
661
|
// Inline function 'kotlin.let' call
|
|
662
662
|
// Inline function 'kotlin.contracts.contract' call
|
|
663
|
-
if (this.
|
|
664
|
-
tmp2_safe_receiver.
|
|
663
|
+
if (this.p1v_1) {
|
|
664
|
+
tmp2_safe_receiver.g1x(slice(args, until(argIterator.x1(), args.f())));
|
|
665
665
|
} else {
|
|
666
666
|
var tmp$ret$18;
|
|
667
667
|
// Inline function 'kotlin.takeUnless' call
|
|
668
668
|
// Inline function 'kotlin.contracts.contract' call
|
|
669
669
|
var tmp_8;
|
|
670
670
|
// Inline function 'kotlinx.cli.ArgParser.parse.<anonymous>.<anonymous>' call
|
|
671
|
-
if (!this.
|
|
671
|
+
if (!this.a1w_1) {
|
|
672
672
|
tmp_8 = '--';
|
|
673
673
|
} else {
|
|
674
674
|
tmp_8 = null;
|
|
675
675
|
}
|
|
676
676
|
tmp$ret$18 = tmp_8;
|
|
677
|
-
tmp2_safe_receiver.
|
|
677
|
+
tmp2_safe_receiver.g1x(plus(plus(this.c1w_1, listOfNotNull(tmp$ret$18)), this.b1w_1));
|
|
678
678
|
}
|
|
679
|
-
tmp2_safe_receiver.
|
|
680
|
-
this.
|
|
681
|
-
return ensureNotNull(this.
|
|
679
|
+
tmp2_safe_receiver.r1y();
|
|
680
|
+
this.u1v_1 = new ArgParserResult(tmp2_safe_receiver.p1y_1);
|
|
681
|
+
return ensureNotNull(this.u1v_1);
|
|
682
682
|
}
|
|
683
683
|
} catch ($p) {
|
|
684
684
|
if ($p instanceof ParsingException) {
|
|
@@ -688,49 +688,49 @@
|
|
|
688
688
|
throw $p;
|
|
689
689
|
}
|
|
690
690
|
}
|
|
691
|
-
this.
|
|
692
|
-
return ensureNotNull(this.
|
|
691
|
+
this.u1v_1 = new ArgParserResult(this.l1v_1);
|
|
692
|
+
return ensureNotNull(this.u1v_1);
|
|
693
693
|
};
|
|
694
|
-
protoOf(ArgParser).
|
|
694
|
+
protoOf(ArgParser).q1w = function () {
|
|
695
695
|
var result = StringBuilder_init_$Create$();
|
|
696
|
-
result.a6('Usage: ' + joinToString(this.
|
|
696
|
+
result.a6('Usage: ' + joinToString(this.z1v_1, ' ') + ' options_list\n');
|
|
697
697
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
698
|
-
if (!this.
|
|
698
|
+
if (!this.v1v_1.g()) {
|
|
699
699
|
result.a6('Subcommands: \n');
|
|
700
700
|
// Inline function 'kotlin.collections.forEach' call
|
|
701
701
|
// Inline function 'kotlin.collections.iterator' call
|
|
702
|
-
var tmp0_iterator = this.
|
|
702
|
+
var tmp0_iterator = this.v1v_1.u().c();
|
|
703
703
|
while (tmp0_iterator.d()) {
|
|
704
704
|
var element = tmp0_iterator.e();
|
|
705
705
|
// Inline function 'kotlinx.cli.ArgParser.makeUsage.<anonymous>' call
|
|
706
706
|
// Inline function 'kotlin.collections.component2' call
|
|
707
707
|
var subcommand = element.w();
|
|
708
|
-
result.a6(subcommand.
|
|
708
|
+
result.a6(subcommand.s1y());
|
|
709
709
|
}
|
|
710
710
|
result.a6('\n');
|
|
711
711
|
}
|
|
712
712
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
713
|
-
if (!this.
|
|
713
|
+
if (!this.r1v_1.g()) {
|
|
714
714
|
result.a6('Arguments: \n');
|
|
715
715
|
// Inline function 'kotlin.collections.forEach' call
|
|
716
716
|
// Inline function 'kotlin.collections.iterator' call
|
|
717
|
-
var tmp0_iterator_0 = this.
|
|
717
|
+
var tmp0_iterator_0 = this.r1v_1.u().c();
|
|
718
718
|
while (tmp0_iterator_0.d()) {
|
|
719
719
|
var element_0 = tmp0_iterator_0.e();
|
|
720
720
|
// Inline function 'kotlinx.cli.ArgParser.makeUsage.<anonymous>' call
|
|
721
|
-
result.a6(element_0.w().
|
|
721
|
+
result.a6(element_0.w().m1w_1.s1y());
|
|
722
722
|
}
|
|
723
723
|
}
|
|
724
724
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
725
|
-
if (!this.
|
|
725
|
+
if (!this.q1v_1.g()) {
|
|
726
726
|
result.a6('Options: \n');
|
|
727
727
|
// Inline function 'kotlin.collections.forEach' call
|
|
728
728
|
// Inline function 'kotlin.collections.iterator' call
|
|
729
|
-
var tmp0_iterator_1 = this.
|
|
729
|
+
var tmp0_iterator_1 = this.q1v_1.u().c();
|
|
730
730
|
while (tmp0_iterator_1.d()) {
|
|
731
731
|
var element_1 = tmp0_iterator_1.e();
|
|
732
732
|
// Inline function 'kotlinx.cli.ArgParser.makeUsage.<anonymous>' call
|
|
733
|
-
result.a6(element_1.w().
|
|
733
|
+
result.a6(element_1.w().m1w_1.s1y());
|
|
734
734
|
}
|
|
735
735
|
}
|
|
736
736
|
return result.toString();
|
|
@@ -738,7 +738,7 @@
|
|
|
738
738
|
function ArgumentValueDelegate() {
|
|
739
739
|
}
|
|
740
740
|
function ArgParserResult(commandName) {
|
|
741
|
-
this.
|
|
741
|
+
this.u1y_1 = commandName;
|
|
742
742
|
}
|
|
743
743
|
function ArgumentsQueue(argumentsDescriptors) {
|
|
744
744
|
var tmp = this;
|
|
@@ -756,34 +756,34 @@
|
|
|
756
756
|
tmp0_mapTo.a(tmp$ret$0);
|
|
757
757
|
}
|
|
758
758
|
tmp$ret$3 = copyToArray(tmp0_mapTo);
|
|
759
|
-
tmp.
|
|
759
|
+
tmp.r1w_1 = linkedMapOf(tmp$ret$3.slice());
|
|
760
760
|
}
|
|
761
|
-
protoOf(ArgumentsQueue).
|
|
762
|
-
if (this.
|
|
761
|
+
protoOf(ArgumentsQueue).s1w = function () {
|
|
762
|
+
if (this.r1w_1.g())
|
|
763
763
|
return null;
|
|
764
764
|
// Inline function 'kotlin.collections.iterator' call
|
|
765
|
-
var tmp0_container = this.
|
|
765
|
+
var tmp0_container = this.r1w_1.u().c().e();
|
|
766
766
|
// Inline function 'kotlin.collections.component1' call
|
|
767
767
|
var currentDescriptor = tmp0_container.v();
|
|
768
768
|
// Inline function 'kotlin.collections.component2' call
|
|
769
769
|
var usageNumber = tmp0_container.w();
|
|
770
|
-
if (currentDescriptor.
|
|
770
|
+
if (currentDescriptor.c1z_1 == null)
|
|
771
771
|
null;
|
|
772
772
|
else {
|
|
773
773
|
// Inline function 'kotlin.let' call
|
|
774
774
|
// Inline function 'kotlin.contracts.contract' call
|
|
775
775
|
// Inline function 'kotlinx.cli.ArgumentsQueue.pop.<anonymous>' call
|
|
776
776
|
var tmp;
|
|
777
|
-
if ((usageNumber + 1 | 0) >= currentDescriptor.
|
|
778
|
-
tmp = this.
|
|
777
|
+
if ((usageNumber + 1 | 0) >= currentDescriptor.c1z_1) {
|
|
778
|
+
tmp = this.r1w_1.ab(currentDescriptor);
|
|
779
779
|
} else {
|
|
780
|
-
var tmp0_set = this.
|
|
780
|
+
var tmp0_set = this.r1w_1;
|
|
781
781
|
var tmp1_set = usageNumber + 1 | 0;
|
|
782
782
|
tmp0_set.l3(currentDescriptor, tmp1_set);
|
|
783
783
|
tmp = Unit_getInstance();
|
|
784
784
|
}
|
|
785
785
|
}
|
|
786
|
-
return currentDescriptor.
|
|
786
|
+
return currentDescriptor.g1w_1;
|
|
787
787
|
};
|
|
788
788
|
function printWarning(message) {
|
|
789
789
|
println('WARNING ' + message);
|
|
@@ -795,10 +795,10 @@
|
|
|
795
795
|
Boolean_instance = this;
|
|
796
796
|
ArgType.call(this, false);
|
|
797
797
|
}
|
|
798
|
-
protoOf(Boolean_0).
|
|
798
|
+
protoOf(Boolean_0).x1w = function () {
|
|
799
799
|
return '';
|
|
800
800
|
};
|
|
801
|
-
protoOf(Boolean_0).
|
|
801
|
+
protoOf(Boolean_0).e1z = function (value, name) {
|
|
802
802
|
return !(value === 'false');
|
|
803
803
|
};
|
|
804
804
|
var Boolean_instance;
|
|
@@ -811,10 +811,10 @@
|
|
|
811
811
|
String_instance = this;
|
|
812
812
|
ArgType.call(this, true);
|
|
813
813
|
}
|
|
814
|
-
protoOf(String_0).
|
|
814
|
+
protoOf(String_0).x1w = function () {
|
|
815
815
|
return '{ String }';
|
|
816
816
|
};
|
|
817
|
-
protoOf(String_0).
|
|
817
|
+
protoOf(String_0).e1z = function (value, name) {
|
|
818
818
|
return value;
|
|
819
819
|
};
|
|
820
820
|
var String_instance;
|
|
@@ -841,8 +841,8 @@
|
|
|
841
841
|
}
|
|
842
842
|
variantToString = tmp;
|
|
843
843
|
ArgType.call(this, true);
|
|
844
|
-
this.
|
|
845
|
-
this.
|
|
844
|
+
this.h1z_1 = toVariant;
|
|
845
|
+
this.i1z_1 = variantToString;
|
|
846
846
|
var tmp_0 = this;
|
|
847
847
|
// Inline function 'kotlin.collections.associateBy' call
|
|
848
848
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(choices, 10)), 16);
|
|
@@ -853,30 +853,30 @@
|
|
|
853
853
|
var element = tmp0_iterator.e();
|
|
854
854
|
var tmp$ret$0;
|
|
855
855
|
// Inline function 'kotlinx.cli.Choice.choicesMap.<anonymous>' call
|
|
856
|
-
tmp$ret$0 = this.
|
|
856
|
+
tmp$ret$0 = this.i1z_1(element);
|
|
857
857
|
tmp0_associateByTo.l3(tmp$ret$0, element);
|
|
858
858
|
}
|
|
859
|
-
tmp_0.
|
|
859
|
+
tmp_0.j1z_1 = tmp0_associateByTo;
|
|
860
860
|
// Inline function 'kotlin.require' call
|
|
861
861
|
// Inline function 'kotlin.contracts.contract' call
|
|
862
|
-
if (!(this.
|
|
862
|
+
if (!(this.j1z_1.f() === choices.f())) {
|
|
863
863
|
// Inline function 'kotlinx.cli.Choice.<anonymous>' call
|
|
864
864
|
var message = 'Command line representations of enum choices are not distinct';
|
|
865
865
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
866
866
|
}
|
|
867
867
|
}
|
|
868
|
-
protoOf(Choice).
|
|
869
|
-
return '{ Value should be one of ' + this.
|
|
868
|
+
protoOf(Choice).x1w = function () {
|
|
869
|
+
return '{ Value should be one of ' + this.j1z_1.o2() + ' }';
|
|
870
870
|
};
|
|
871
|
-
protoOf(Choice).
|
|
871
|
+
protoOf(Choice).e1z = function (value, name) {
|
|
872
872
|
var tmp;
|
|
873
873
|
try {
|
|
874
|
-
tmp = this.
|
|
874
|
+
tmp = this.h1z_1(value);
|
|
875
875
|
} catch ($p) {
|
|
876
876
|
var tmp_0;
|
|
877
877
|
if ($p instanceof Exception) {
|
|
878
878
|
var e = $p;
|
|
879
|
-
throw new ParsingException('Option ' + name + ' is expected to be one of ' + this.
|
|
879
|
+
throw new ParsingException('Option ' + name + ' is expected to be one of ' + this.j1z_1.o2() + '. ' + value + ' is provided.');
|
|
880
880
|
} else {
|
|
881
881
|
throw $p;
|
|
882
882
|
}
|
|
@@ -885,34 +885,34 @@
|
|
|
885
885
|
};
|
|
886
886
|
function ArgType(hasParameter) {
|
|
887
887
|
Companion_getInstance();
|
|
888
|
-
this.
|
|
888
|
+
this.v1w_1 = hasParameter;
|
|
889
889
|
}
|
|
890
890
|
function ParsingException(message) {
|
|
891
891
|
Exception_init_$Init$(message, this);
|
|
892
892
|
captureStack(this, ParsingException);
|
|
893
893
|
}
|
|
894
894
|
function ParsingValue(descriptor) {
|
|
895
|
-
this.
|
|
896
|
-
this.
|
|
895
|
+
this.m1w_1 = descriptor;
|
|
896
|
+
this.o1w_1 = ValueOrigin_UNDEFINED_getInstance();
|
|
897
897
|
}
|
|
898
|
-
protoOf(ParsingValue).
|
|
899
|
-
var tmp = this.
|
|
898
|
+
protoOf(ParsingValue).k1z = function () {
|
|
899
|
+
var tmp = this.n1w_1;
|
|
900
900
|
if (!(tmp == null))
|
|
901
901
|
return tmp;
|
|
902
902
|
else {
|
|
903
903
|
throwUninitializedPropertyAccessException('parsedValue');
|
|
904
904
|
}
|
|
905
905
|
};
|
|
906
|
-
protoOf(ParsingValue).
|
|
907
|
-
return !(this.
|
|
906
|
+
protoOf(ParsingValue).l1z = function () {
|
|
907
|
+
return !(this.n1w_1 == null);
|
|
908
908
|
};
|
|
909
|
-
protoOf(ParsingValue).
|
|
909
|
+
protoOf(ParsingValue).t1w = function (stringValue) {
|
|
910
910
|
var tmp;
|
|
911
911
|
var tmp_0;
|
|
912
912
|
var tmp_1;
|
|
913
|
-
var tmp_2 = this.
|
|
913
|
+
var tmp_2 = this.m1w_1;
|
|
914
914
|
if (tmp_2 instanceof OptionDescriptor) {
|
|
915
|
-
tmp_1 = !this.
|
|
915
|
+
tmp_1 = !this.m1w_1.s1x_1;
|
|
916
916
|
} else {
|
|
917
917
|
tmp_1 = false;
|
|
918
918
|
}
|
|
@@ -922,14 +922,14 @@
|
|
|
922
922
|
tmp_0 = false;
|
|
923
923
|
}
|
|
924
924
|
if (tmp_0) {
|
|
925
|
-
tmp = this.
|
|
925
|
+
tmp = this.m1w_1.t1x_1 == null;
|
|
926
926
|
} else {
|
|
927
927
|
tmp = false;
|
|
928
928
|
}
|
|
929
929
|
if (tmp) {
|
|
930
|
-
throw new ParsingException('Try to provide more than one value for ' + this.
|
|
930
|
+
throw new ParsingException('Try to provide more than one value for ' + this.m1w_1.g1w_1 + '.');
|
|
931
931
|
}
|
|
932
|
-
var tmp0_safe_receiver = this.k1w_1
|
|
932
|
+
var tmp0_safe_receiver = this.m1w_1.k1w_1;
|
|
933
933
|
if (tmp0_safe_receiver == null)
|
|
934
934
|
null;
|
|
935
935
|
else {
|
|
@@ -942,35 +942,35 @@
|
|
|
942
942
|
}
|
|
943
943
|
}
|
|
944
944
|
var tmp_4;
|
|
945
|
-
var tmp_5 = this.
|
|
945
|
+
var tmp_5 = this.m1w_1;
|
|
946
946
|
if (tmp_5 instanceof OptionDescriptor) {
|
|
947
|
-
tmp_4 = !(this.
|
|
947
|
+
tmp_4 = !(this.m1w_1.t1x_1 == null);
|
|
948
948
|
} else {
|
|
949
949
|
tmp_4 = false;
|
|
950
950
|
}
|
|
951
951
|
if (tmp_4) {
|
|
952
952
|
// Inline function 'kotlin.collections.forEach' call
|
|
953
|
-
var tmp0_iterator = split_0(stringValue, [this.
|
|
953
|
+
var tmp0_iterator = split_0(stringValue, [this.m1w_1.t1x_1]).c();
|
|
954
954
|
while (tmp0_iterator.d()) {
|
|
955
955
|
var element = tmp0_iterator.e();
|
|
956
956
|
// Inline function 'kotlinx.cli.ParsingValue.addValue.<anonymous>' call
|
|
957
|
-
this.
|
|
957
|
+
this.m1z(element);
|
|
958
958
|
}
|
|
959
959
|
} else {
|
|
960
|
-
this.
|
|
960
|
+
this.m1z(stringValue);
|
|
961
961
|
}
|
|
962
962
|
};
|
|
963
|
-
protoOf(ParsingValue).
|
|
964
|
-
if (this.
|
|
965
|
-
this.
|
|
966
|
-
this.
|
|
963
|
+
protoOf(ParsingValue).u1x = function () {
|
|
964
|
+
if (this.m1w_1.p1w()) {
|
|
965
|
+
this.n1w_1 = ensureNotNull(this.m1w_1.i1w_1);
|
|
966
|
+
this.o1w_1 = ValueOrigin_SET_DEFAULT_VALUE_getInstance();
|
|
967
967
|
}
|
|
968
968
|
};
|
|
969
|
-
protoOf(ParsingValue).
|
|
970
|
-
if (this.
|
|
969
|
+
protoOf(ParsingValue).n1z = function (name) {
|
|
970
|
+
if (this.m1w_1.g1w_1 == null) {
|
|
971
971
|
// Inline function 'kotlin.run' call
|
|
972
972
|
// Inline function 'kotlin.contracts.contract' call
|
|
973
|
-
this.
|
|
973
|
+
this.m1w_1.g1w_1 = name;
|
|
974
974
|
}
|
|
975
975
|
};
|
|
976
976
|
function ArgumentSingleValue(descriptor) {
|
|
@@ -979,64 +979,64 @@
|
|
|
979
979
|
protoOf(ArgumentSingleValue).w = function () {
|
|
980
980
|
var tmp;
|
|
981
981
|
if (!this.g()) {
|
|
982
|
-
tmp = this.
|
|
982
|
+
tmp = this.k1z();
|
|
983
983
|
} else {
|
|
984
|
-
var tmp0_error = 'Value for argument ' + this.
|
|
984
|
+
var tmp0_error = 'Value for argument ' + this.m1w_1.g1w_1 + " isn't set. " + 'ArgParser.parse(...) method should be called before.';
|
|
985
985
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
986
986
|
}
|
|
987
987
|
return tmp;
|
|
988
988
|
};
|
|
989
989
|
function ArgumentSingleNullableValue(descriptor) {
|
|
990
990
|
AbstractArgumentSingleValue.call(this, descriptor);
|
|
991
|
-
this.
|
|
991
|
+
this.x1z_1 = false;
|
|
992
992
|
}
|
|
993
993
|
protoOf(ArgumentSingleNullableValue).w = function () {
|
|
994
|
-
return (!this.g() ? !this.
|
|
994
|
+
return (!this.g() ? !this.x1z_1 : false) ? this.k1z() : null;
|
|
995
995
|
};
|
|
996
996
|
function ArgumentMultipleValues(descriptor) {
|
|
997
997
|
ParsingValue.call(this, descriptor);
|
|
998
998
|
var tmp = this;
|
|
999
999
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
1000
|
-
tmp.
|
|
1001
|
-
this.
|
|
1000
|
+
tmp.b20_1 = ArrayList_init_$Create$();
|
|
1001
|
+
this.n1w_1 = this.b20_1;
|
|
1002
1002
|
}
|
|
1003
1003
|
protoOf(ArgumentMultipleValues).w = function () {
|
|
1004
|
-
return this.
|
|
1004
|
+
return this.k1z();
|
|
1005
1005
|
};
|
|
1006
|
-
protoOf(ArgumentMultipleValues).
|
|
1007
|
-
this.
|
|
1008
|
-
this.
|
|
1006
|
+
protoOf(ArgumentMultipleValues).m1z = function (stringValue) {
|
|
1007
|
+
this.b20_1.a(this.m1w_1.f1w_1.e1z(stringValue, ensureNotNull(this.m1w_1.g1w_1)));
|
|
1008
|
+
this.o1w_1 = ValueOrigin_SET_BY_USER_getInstance();
|
|
1009
1009
|
};
|
|
1010
1010
|
protoOf(ArgumentMultipleValues).g = function () {
|
|
1011
|
-
return this.
|
|
1011
|
+
return this.k1z().g();
|
|
1012
1012
|
};
|
|
1013
1013
|
function AbstractArgumentSingleValue(descriptor) {
|
|
1014
1014
|
ParsingValue.call(this, descriptor);
|
|
1015
1015
|
}
|
|
1016
|
-
protoOf(AbstractArgumentSingleValue).
|
|
1017
|
-
if (!this.
|
|
1018
|
-
this.
|
|
1019
|
-
this.
|
|
1016
|
+
protoOf(AbstractArgumentSingleValue).m1z = function (stringValue) {
|
|
1017
|
+
if (!this.l1z()) {
|
|
1018
|
+
this.n1w_1 = this.m1w_1.f1w_1.e1z(stringValue, ensureNotNull(this.m1w_1.g1w_1));
|
|
1019
|
+
this.o1w_1 = ValueOrigin_SET_BY_USER_getInstance();
|
|
1020
1020
|
} else {
|
|
1021
|
-
throw new ParsingException('Try to provide more than one value ' + this.
|
|
1021
|
+
throw new ParsingException('Try to provide more than one value ' + this.k1z() + ' and ' + stringValue + ' for ' + this.m1w_1.g1w_1 + '.');
|
|
1022
1022
|
}
|
|
1023
1023
|
};
|
|
1024
1024
|
protoOf(AbstractArgumentSingleValue).g = function () {
|
|
1025
|
-
return !this.
|
|
1025
|
+
return !this.l1z();
|
|
1026
1026
|
};
|
|
1027
1027
|
function SingleArgument(descriptor, owner) {
|
|
1028
1028
|
AbstractSingleArgument.call(this, new ArgumentSingleValue(descriptor), owner);
|
|
1029
|
-
this.
|
|
1029
|
+
this.f20(descriptor);
|
|
1030
1030
|
}
|
|
1031
1031
|
function CLIEntityWrapper(entity) {
|
|
1032
1032
|
entity = entity === VOID ? null : entity;
|
|
1033
|
-
this.
|
|
1033
|
+
this.z1w_1 = entity;
|
|
1034
1034
|
}
|
|
1035
1035
|
protoOf(CLIEntityWrapper).toString = function () {
|
|
1036
|
-
return 'CLIEntityWrapper(entity=' + this.
|
|
1036
|
+
return 'CLIEntityWrapper(entity=' + this.z1w_1 + ')';
|
|
1037
1037
|
};
|
|
1038
1038
|
protoOf(CLIEntityWrapper).hashCode = function () {
|
|
1039
|
-
return this.
|
|
1039
|
+
return this.z1w_1 == null ? 0 : hashCode(this.z1w_1);
|
|
1040
1040
|
};
|
|
1041
1041
|
protoOf(CLIEntityWrapper).equals = function (other) {
|
|
1042
1042
|
if (this === other)
|
|
@@ -1044,46 +1044,46 @@
|
|
|
1044
1044
|
if (!(other instanceof CLIEntityWrapper))
|
|
1045
1045
|
return false;
|
|
1046
1046
|
var tmp0_other_with_cast = other instanceof CLIEntityWrapper ? other : THROW_CCE();
|
|
1047
|
-
if (!equals(this.
|
|
1047
|
+
if (!equals(this.z1w_1, tmp0_other_with_cast.z1w_1))
|
|
1048
1048
|
return false;
|
|
1049
1049
|
return true;
|
|
1050
1050
|
};
|
|
1051
1051
|
function MultipleArgument(descriptor, owner) {
|
|
1052
1052
|
Argument.call(this, new ArgumentMultipleValues(descriptor), owner);
|
|
1053
|
-
if (!(descriptor.
|
|
1053
|
+
if (!(descriptor.c1z_1 == null) ? descriptor.c1z_1 < 2 : false) {
|
|
1054
1054
|
failAssertion("Argument with multiple values can't be initialized with descriptor for single one.");
|
|
1055
1055
|
}
|
|
1056
1056
|
}
|
|
1057
1057
|
function vararg(_this__u8e3s4) {
|
|
1058
1058
|
// Inline function 'kotlin.with' call
|
|
1059
1059
|
// Inline function 'kotlinx.cli.cast' call
|
|
1060
|
-
var tmp0_cast = _this__u8e3s4.
|
|
1061
|
-
var tmp = (tmp0_cast instanceof ParsingValue ? tmp0_cast : THROW_CCE()).
|
|
1060
|
+
var tmp0_cast = _this__u8e3s4.a1x_1;
|
|
1061
|
+
var tmp = (tmp0_cast instanceof ParsingValue ? tmp0_cast : THROW_CCE()).m1w_1;
|
|
1062
1062
|
var tmp1_with = tmp instanceof ArgDescriptor ? tmp : THROW_CCE();
|
|
1063
1063
|
// Inline function 'kotlin.contracts.contract' call
|
|
1064
1064
|
// Inline function 'kotlinx.cli.vararg.<anonymous>' call
|
|
1065
|
-
var newArgument = new MultipleArgument(new ArgDescriptor(tmp1_with.
|
|
1066
|
-
_this__u8e3s4.z1w_1
|
|
1065
|
+
var newArgument = new MultipleArgument(new ArgDescriptor(tmp1_with.f1w_1, tmp1_with.g1w_1, null, tmp1_with.h1w_1, listOfNotNull(tmp1_with.i1w_1), tmp1_with.j1w_1, tmp1_with.k1w_1), _this__u8e3s4.b1x_1);
|
|
1066
|
+
_this__u8e3s4.b1x_1.z1w_1 = newArgument;
|
|
1067
1067
|
return newArgument;
|
|
1068
1068
|
}
|
|
1069
1069
|
function CLIEntity(delegate, owner) {
|
|
1070
|
-
this.
|
|
1071
|
-
this.
|
|
1072
|
-
this.
|
|
1070
|
+
this.a1x_1 = delegate;
|
|
1071
|
+
this.b1x_1 = owner;
|
|
1072
|
+
this.c1x_1 = false;
|
|
1073
1073
|
}
|
|
1074
|
-
protoOf(CLIEntity).
|
|
1074
|
+
protoOf(CLIEntity).g20 = function (thisRef, prop) {
|
|
1075
1075
|
// Inline function 'kotlin.check' call
|
|
1076
1076
|
// Inline function 'kotlin.contracts.contract' call
|
|
1077
|
-
if (!!this.
|
|
1077
|
+
if (!!this.c1x_1) {
|
|
1078
1078
|
// Inline function 'kotlinx.cli.CLIEntity.provideDelegate.<anonymous>' call
|
|
1079
|
-
var tmp = this.
|
|
1080
|
-
var message = 'There is already used delegate for ' + (tmp instanceof ParsingValue ? tmp : THROW_CCE()).
|
|
1079
|
+
var tmp = this.a1x_1;
|
|
1080
|
+
var message = 'There is already used delegate for ' + (tmp instanceof ParsingValue ? tmp : THROW_CCE()).m1w_1.g1w_1 + '.';
|
|
1081
1081
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
1082
1082
|
}
|
|
1083
|
-
var tmp_0 = this.
|
|
1084
|
-
(tmp_0 instanceof ParsingValue ? tmp_0 : THROW_CCE()).
|
|
1085
|
-
this.
|
|
1086
|
-
return this.
|
|
1083
|
+
var tmp_0 = this.a1x_1;
|
|
1084
|
+
(tmp_0 instanceof ParsingValue ? tmp_0 : THROW_CCE()).n1z(prop.callableName);
|
|
1085
|
+
this.c1x_1 = true;
|
|
1086
|
+
return this.a1x_1;
|
|
1087
1087
|
};
|
|
1088
1088
|
function failAssertion(message) {
|
|
1089
1089
|
throw AssertionError_init_$Create$(message);
|
|
@@ -1091,8 +1091,8 @@
|
|
|
1091
1091
|
function AbstractSingleArgument(delegate, owner) {
|
|
1092
1092
|
Argument.call(this, delegate, owner);
|
|
1093
1093
|
}
|
|
1094
|
-
protoOf(AbstractSingleArgument).
|
|
1095
|
-
if (descriptor.
|
|
1094
|
+
protoOf(AbstractSingleArgument).f20 = function (descriptor) {
|
|
1095
|
+
if (descriptor.c1z_1 == null ? true : descriptor.c1z_1 > 1) {
|
|
1096
1096
|
failAssertion("Argument with single value can't be initialized with descriptor for multiple values.");
|
|
1097
1097
|
}
|
|
1098
1098
|
};
|
|
@@ -1109,28 +1109,28 @@
|
|
|
1109
1109
|
delimiter = delimiter === VOID ? null : delimiter;
|
|
1110
1110
|
deprecatedWarning = deprecatedWarning === VOID ? null : deprecatedWarning;
|
|
1111
1111
|
Descriptor.call(this, type, fullName, description, defaultValue, required, deprecatedWarning);
|
|
1112
|
-
this.
|
|
1113
|
-
this.
|
|
1114
|
-
this.
|
|
1115
|
-
this.
|
|
1116
|
-
this.
|
|
1112
|
+
this.p1x_1 = optionFullFormPrefix;
|
|
1113
|
+
this.q1x_1 = optionShortFromPrefix;
|
|
1114
|
+
this.r1x_1 = shortName;
|
|
1115
|
+
this.s1x_1 = multiple;
|
|
1116
|
+
this.t1x_1 = delimiter;
|
|
1117
1117
|
}
|
|
1118
|
-
protoOf(OptionDescriptor).
|
|
1119
|
-
return 'option ' + this.
|
|
1118
|
+
protoOf(OptionDescriptor).w1w = function () {
|
|
1119
|
+
return 'option ' + this.p1x_1 + this.g1w_1;
|
|
1120
1120
|
};
|
|
1121
|
-
protoOf(OptionDescriptor).
|
|
1121
|
+
protoOf(OptionDescriptor).s1y = function () {
|
|
1122
1122
|
var result = StringBuilder_init_$Create$();
|
|
1123
|
-
result.a6(' ' + this.
|
|
1124
|
-
var tmp0_safe_receiver = this.
|
|
1123
|
+
result.a6(' ' + this.p1x_1 + this.g1w_1);
|
|
1124
|
+
var tmp0_safe_receiver = this.r1x_1;
|
|
1125
1125
|
if (tmp0_safe_receiver == null)
|
|
1126
1126
|
null;
|
|
1127
1127
|
else {
|
|
1128
1128
|
// Inline function 'kotlin.let' call
|
|
1129
1129
|
// Inline function 'kotlin.contracts.contract' call
|
|
1130
1130
|
// Inline function 'kotlinx.cli.OptionDescriptor.<get-helpMessage>.<anonymous>' call
|
|
1131
|
-
result.a6(', ' + this.
|
|
1131
|
+
result.a6(', ' + this.q1x_1 + tmp0_safe_receiver);
|
|
1132
1132
|
}
|
|
1133
|
-
var tmp1_safe_receiver = this.
|
|
1133
|
+
var tmp1_safe_receiver = this.h20(this.i1w_1);
|
|
1134
1134
|
if (tmp1_safe_receiver == null)
|
|
1135
1135
|
null;
|
|
1136
1136
|
else {
|
|
@@ -1139,7 +1139,7 @@
|
|
|
1139
1139
|
// Inline function 'kotlinx.cli.OptionDescriptor.<get-helpMessage>.<anonymous>' call
|
|
1140
1140
|
result.a6(tmp1_safe_receiver);
|
|
1141
1141
|
}
|
|
1142
|
-
var tmp2_safe_receiver = this.
|
|
1142
|
+
var tmp2_safe_receiver = this.h1w_1;
|
|
1143
1143
|
if (tmp2_safe_receiver == null)
|
|
1144
1144
|
null;
|
|
1145
1145
|
else {
|
|
@@ -1148,11 +1148,11 @@
|
|
|
1148
1148
|
// Inline function 'kotlinx.cli.OptionDescriptor.<get-helpMessage>.<anonymous>' call
|
|
1149
1149
|
result.a6(' -> ' + tmp2_safe_receiver);
|
|
1150
1150
|
}
|
|
1151
|
-
if (this.
|
|
1151
|
+
if (this.j1w_1) {
|
|
1152
1152
|
result.a6(' (always required)');
|
|
1153
1153
|
}
|
|
1154
|
-
result.a6(' ' + this.
|
|
1155
|
-
var tmp3_safe_receiver = this.
|
|
1154
|
+
result.a6(' ' + this.f1w_1.x1w());
|
|
1155
|
+
var tmp3_safe_receiver = this.k1w_1;
|
|
1156
1156
|
if (tmp3_safe_receiver == null)
|
|
1157
1157
|
null;
|
|
1158
1158
|
else {
|
|
@@ -1167,14 +1167,14 @@
|
|
|
1167
1167
|
function Descriptor$defaultValueSet$delegate$lambda(this$0) {
|
|
1168
1168
|
return function () {
|
|
1169
1169
|
var tmp;
|
|
1170
|
-
if (!(this$0.
|
|
1170
|
+
if (!(this$0.i1w_1 == null)) {
|
|
1171
1171
|
var tmp_0;
|
|
1172
1172
|
var tmp_1;
|
|
1173
|
-
var tmp_2 = this$0.
|
|
1173
|
+
var tmp_2 = this$0.i1w_1;
|
|
1174
1174
|
if (!(tmp_2 == null) ? isInterface(tmp_2, List) : false) {
|
|
1175
1175
|
var tmp$ret$0;
|
|
1176
1176
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
1177
|
-
var tmp0_isNotEmpty = this$0.
|
|
1177
|
+
var tmp0_isNotEmpty = this$0.i1w_1;
|
|
1178
1178
|
tmp$ret$0 = !tmp0_isNotEmpty.g();
|
|
1179
1179
|
tmp_1 = tmp$ret$0;
|
|
1180
1180
|
} else {
|
|
@@ -1183,7 +1183,7 @@
|
|
|
1183
1183
|
if (tmp_1) {
|
|
1184
1184
|
tmp_0 = true;
|
|
1185
1185
|
} else {
|
|
1186
|
-
var tmp_3 = this$0.
|
|
1186
|
+
var tmp_3 = this$0.i1w_1;
|
|
1187
1187
|
tmp_0 = !(!(tmp_3 == null) ? isInterface(tmp_3, List) : false);
|
|
1188
1188
|
}
|
|
1189
1189
|
tmp = tmp_0;
|
|
@@ -1199,16 +1199,16 @@
|
|
|
1199
1199
|
defaultValue = defaultValue === VOID ? null : defaultValue;
|
|
1200
1200
|
required = required === VOID ? false : required;
|
|
1201
1201
|
deprecatedWarning = deprecatedWarning === VOID ? null : deprecatedWarning;
|
|
1202
|
-
this.
|
|
1203
|
-
this.
|
|
1204
|
-
this.
|
|
1205
|
-
this.
|
|
1206
|
-
this.
|
|
1207
|
-
this.
|
|
1202
|
+
this.f1w_1 = type;
|
|
1203
|
+
this.g1w_1 = fullName;
|
|
1204
|
+
this.h1w_1 = description;
|
|
1205
|
+
this.i1w_1 = defaultValue;
|
|
1206
|
+
this.j1w_1 = required;
|
|
1207
|
+
this.k1w_1 = deprecatedWarning;
|
|
1208
1208
|
var tmp = this;
|
|
1209
|
-
tmp.
|
|
1209
|
+
tmp.l1w_1 = lazy(Descriptor$defaultValueSet$delegate$lambda(this));
|
|
1210
1210
|
}
|
|
1211
|
-
protoOf(Descriptor).
|
|
1211
|
+
protoOf(Descriptor).h20 = function (value) {
|
|
1212
1212
|
var tmp;
|
|
1213
1213
|
if (value == null) {
|
|
1214
1214
|
tmp = null;
|
|
@@ -1237,10 +1237,10 @@
|
|
|
1237
1237
|
}
|
|
1238
1238
|
return tmp;
|
|
1239
1239
|
};
|
|
1240
|
-
protoOf(Descriptor).
|
|
1240
|
+
protoOf(Descriptor).p1w = function () {
|
|
1241
1241
|
// Inline function 'kotlin.getValue' call
|
|
1242
1242
|
defaultValueSet$factory();
|
|
1243
|
-
return this.
|
|
1243
|
+
return this.l1w_1.w();
|
|
1244
1244
|
};
|
|
1245
1245
|
function ArgDescriptor(type, fullName, number, description, defaultValue, required, deprecatedWarning) {
|
|
1246
1246
|
number = number === VOID ? null : number;
|
|
@@ -1249,8 +1249,8 @@
|
|
|
1249
1249
|
required = required === VOID ? true : required;
|
|
1250
1250
|
deprecatedWarning = deprecatedWarning === VOID ? null : deprecatedWarning;
|
|
1251
1251
|
Descriptor.call(this, type, fullName, description, defaultValue, required, deprecatedWarning);
|
|
1252
|
-
this.
|
|
1253
|
-
var tmp0_safe_receiver = this.
|
|
1252
|
+
this.c1z_1 = number;
|
|
1253
|
+
var tmp0_safe_receiver = this.c1z_1;
|
|
1254
1254
|
if (tmp0_safe_receiver == null)
|
|
1255
1255
|
null;
|
|
1256
1256
|
else {
|
|
@@ -1263,13 +1263,13 @@
|
|
|
1263
1263
|
}
|
|
1264
1264
|
}
|
|
1265
1265
|
}
|
|
1266
|
-
protoOf(ArgDescriptor).
|
|
1267
|
-
return 'argument ' + this.
|
|
1266
|
+
protoOf(ArgDescriptor).w1w = function () {
|
|
1267
|
+
return 'argument ' + this.g1w_1;
|
|
1268
1268
|
};
|
|
1269
|
-
protoOf(ArgDescriptor).
|
|
1269
|
+
protoOf(ArgDescriptor).s1y = function () {
|
|
1270
1270
|
var result = StringBuilder_init_$Create$();
|
|
1271
|
-
result.a6(' ' + this.
|
|
1272
|
-
var tmp0_safe_receiver = this.
|
|
1271
|
+
result.a6(' ' + this.g1w_1);
|
|
1272
|
+
var tmp0_safe_receiver = this.h20(this.i1w_1);
|
|
1273
1273
|
if (tmp0_safe_receiver == null)
|
|
1274
1274
|
null;
|
|
1275
1275
|
else {
|
|
@@ -1278,7 +1278,7 @@
|
|
|
1278
1278
|
// Inline function 'kotlinx.cli.ArgDescriptor.<get-helpMessage>.<anonymous>' call
|
|
1279
1279
|
result.a6(tmp0_safe_receiver);
|
|
1280
1280
|
}
|
|
1281
|
-
var tmp1_safe_receiver = this.
|
|
1281
|
+
var tmp1_safe_receiver = this.h1w_1;
|
|
1282
1282
|
if (tmp1_safe_receiver == null)
|
|
1283
1283
|
null;
|
|
1284
1284
|
else {
|
|
@@ -1287,11 +1287,11 @@
|
|
|
1287
1287
|
// Inline function 'kotlinx.cli.ArgDescriptor.<get-helpMessage>.<anonymous>' call
|
|
1288
1288
|
result.a6(' -> ' + tmp1_safe_receiver);
|
|
1289
1289
|
}
|
|
1290
|
-
if (!this.
|
|
1290
|
+
if (!this.j1w_1) {
|
|
1291
1291
|
result.a6(' (optional)');
|
|
1292
1292
|
}
|
|
1293
|
-
result.a6(' ' + this.
|
|
1294
|
-
var tmp2_safe_receiver = this.
|
|
1293
|
+
result.a6(' ' + this.f1w_1.x1w());
|
|
1294
|
+
var tmp2_safe_receiver = this.k1w_1;
|
|
1295
1295
|
if (tmp2_safe_receiver == null)
|
|
1296
1296
|
null;
|
|
1297
1297
|
else {
|
|
@@ -1305,52 +1305,52 @@
|
|
|
1305
1305
|
};
|
|
1306
1306
|
function defaultValueSet$factory() {
|
|
1307
1307
|
return getPropertyCallableRef('defaultValueSet', 1, KProperty1, function (receiver) {
|
|
1308
|
-
return receiver.
|
|
1308
|
+
return receiver.p1w();
|
|
1309
1309
|
}, null);
|
|
1310
1310
|
}
|
|
1311
1311
|
function SingleOption(descriptor, owner) {
|
|
1312
1312
|
AbstractSingleOption.call(this, new ArgumentSingleValue(descriptor), owner);
|
|
1313
|
-
this.
|
|
1313
|
+
this.l20(descriptor);
|
|
1314
1314
|
}
|
|
1315
1315
|
function default_0(_this__u8e3s4, value) {
|
|
1316
1316
|
// Inline function 'kotlin.with' call
|
|
1317
1317
|
// Inline function 'kotlinx.cli.cast' call
|
|
1318
|
-
var tmp0_cast = _this__u8e3s4.
|
|
1319
|
-
var tmp = (tmp0_cast instanceof ParsingValue ? tmp0_cast : THROW_CCE()).
|
|
1318
|
+
var tmp0_cast = _this__u8e3s4.a1x_1;
|
|
1319
|
+
var tmp = (tmp0_cast instanceof ParsingValue ? tmp0_cast : THROW_CCE()).m1w_1;
|
|
1320
1320
|
var tmp1_with = tmp instanceof OptionDescriptor ? tmp : THROW_CCE();
|
|
1321
1321
|
// Inline function 'kotlin.contracts.contract' call
|
|
1322
1322
|
// Inline function 'kotlinx.cli.default.<anonymous>' call
|
|
1323
|
-
var newOption = new SingleOption(new OptionDescriptor(tmp1_with.
|
|
1324
|
-
_this__u8e3s4.z1w_1
|
|
1323
|
+
var newOption = new SingleOption(new OptionDescriptor(tmp1_with.p1x_1, tmp1_with.q1x_1, tmp1_with.f1w_1, tmp1_with.g1w_1, tmp1_with.r1x_1, tmp1_with.h1w_1, value, tmp1_with.j1w_1, tmp1_with.s1x_1, tmp1_with.t1x_1, tmp1_with.k1w_1), _this__u8e3s4.b1x_1);
|
|
1324
|
+
_this__u8e3s4.b1x_1.z1w_1 = newOption;
|
|
1325
1325
|
return newOption;
|
|
1326
1326
|
}
|
|
1327
1327
|
function SingleNullableOption(descriptor, owner) {
|
|
1328
1328
|
AbstractSingleOption.call(this, new ArgumentSingleNullableValue(descriptor), owner);
|
|
1329
|
-
this.
|
|
1329
|
+
this.l20(descriptor);
|
|
1330
1330
|
}
|
|
1331
1331
|
function MultipleOption(descriptor, owner) {
|
|
1332
1332
|
Option.call(this, new ArgumentMultipleValues(descriptor), owner);
|
|
1333
|
-
if (!descriptor.
|
|
1333
|
+
if (!descriptor.s1x_1 ? descriptor.t1x_1 == null : false) {
|
|
1334
1334
|
failAssertion("Option with multiple values can't be initialized with descriptor for single one.");
|
|
1335
1335
|
}
|
|
1336
1336
|
}
|
|
1337
1337
|
function multiple(_this__u8e3s4) {
|
|
1338
1338
|
// Inline function 'kotlin.with' call
|
|
1339
1339
|
// Inline function 'kotlinx.cli.cast' call
|
|
1340
|
-
var tmp0_cast = _this__u8e3s4.
|
|
1341
|
-
var tmp = (tmp0_cast instanceof ParsingValue ? tmp0_cast : THROW_CCE()).
|
|
1340
|
+
var tmp0_cast = _this__u8e3s4.a1x_1;
|
|
1341
|
+
var tmp = (tmp0_cast instanceof ParsingValue ? tmp0_cast : THROW_CCE()).m1w_1;
|
|
1342
1342
|
var tmp1_with = tmp instanceof OptionDescriptor ? tmp : THROW_CCE();
|
|
1343
1343
|
// Inline function 'kotlin.contracts.contract' call
|
|
1344
1344
|
// Inline function 'kotlinx.cli.multiple.<anonymous>' call
|
|
1345
|
-
var newOption = new MultipleOption(new OptionDescriptor(tmp1_with.
|
|
1346
|
-
_this__u8e3s4.z1w_1
|
|
1345
|
+
var newOption = new MultipleOption(new OptionDescriptor(tmp1_with.p1x_1, tmp1_with.q1x_1, tmp1_with.f1w_1, tmp1_with.g1w_1, tmp1_with.r1x_1, tmp1_with.h1w_1, listOfNotNull(tmp1_with.i1w_1), tmp1_with.j1w_1, true, tmp1_with.t1x_1, tmp1_with.k1w_1), _this__u8e3s4.b1x_1);
|
|
1346
|
+
_this__u8e3s4.b1x_1.z1w_1 = newOption;
|
|
1347
1347
|
return newOption;
|
|
1348
1348
|
}
|
|
1349
1349
|
function AbstractSingleOption(delegate, owner) {
|
|
1350
1350
|
Option.call(this, delegate, owner);
|
|
1351
1351
|
}
|
|
1352
|
-
protoOf(AbstractSingleOption).
|
|
1353
|
-
if (descriptor.
|
|
1352
|
+
protoOf(AbstractSingleOption).l20 = function (descriptor) {
|
|
1353
|
+
if (descriptor.s1x_1 ? true : !(descriptor.t1x_1 == null)) {
|
|
1354
1354
|
failAssertion("Option with single value can't be initialized with descriptor for multiple values.");
|
|
1355
1355
|
}
|
|
1356
1356
|
};
|
|
@@ -1362,9 +1362,9 @@
|
|
|
1362
1362
|
throw IllegalStateException_init_$Create$('Not implemented for JS!');
|
|
1363
1363
|
}
|
|
1364
1364
|
//region block: post-declaration
|
|
1365
|
-
protoOf(ArgumentSingleValue).
|
|
1366
|
-
protoOf(ArgumentSingleNullableValue).
|
|
1367
|
-
protoOf(ArgumentMultipleValues).
|
|
1365
|
+
protoOf(ArgumentSingleValue).t1y = getValue;
|
|
1366
|
+
protoOf(ArgumentSingleNullableValue).t1y = getValue;
|
|
1367
|
+
protoOf(ArgumentMultipleValues).t1y = getValue;
|
|
1368
1368
|
//endregion
|
|
1369
1369
|
//region block: exports
|
|
1370
1370
|
_.$_$ = _.$_$ || {};
|