@flock/wirespec 0.6.0 → 0.6.2
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/kotlin/Kotlinx-Cli-Library-kotlinx-cli-js-ir.js +294 -294
- package/kotlin/kotlin-kotlin-stdlib-js-ir.js +3 -3
- package/kotlin/kotlin-kotlin-stdlib-js-ir.js.map +1 -1
- package/kotlin/kotlin-openapi-bindings.js +3290 -3290
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core-js-ir.js +1238 -1238
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json-js-ir.js +979 -979
- package/kotlin/wirespec-cli.js +80 -80
- package/kotlin/wirespec-core.js +385 -242
- package/kotlin/wirespec-core.js.map +1 -1
- package/kotlin/wirespec-lib.js +38 -38
- package/kotlin/wirespec-openapi.js +311 -311
- package/package.json +1 -1
- package/sync-hashes/Kotlinx-Cli-Library-kotlinx-cli-js-ir.js.hash +1 -1
- package/sync-hashes/kotlin-kotlin-stdlib-js-ir.js.hash +1 -1
- package/sync-hashes/kotlin-kotlin-stdlib-js-ir.js.map.hash +1 -1
- package/sync-hashes/kotlin-openapi-bindings.js.hash +1 -1
- package/sync-hashes/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.hash +1 -1
- package/sync-hashes/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.map.hash +1 -1
- package/sync-hashes/kotlinx-serialization-kotlinx-serialization-json-js-ir.js.hash +1 -1
- package/sync-hashes/wirespec-cli.js.hash +1 -1
- package/sync-hashes/wirespec-core.js.hash +1 -1
- package/sync-hashes/wirespec-core.js.map.hash +1 -1
- package/sync-hashes/wirespec-lib.js.hash +1 -1
- package/sync-hashes/wirespec-openapi.js.hash +1 -1
|
@@ -145,7 +145,7 @@
|
|
|
145
145
|
function inspectRequiredAndDefaultUsage($this) {
|
|
146
146
|
var previousArgument = null;
|
|
147
147
|
// Inline function 'kotlin.collections.forEach' call
|
|
148
|
-
var tmp0_forEach = $this.
|
|
148
|
+
var tmp0_forEach = $this.k1u_1;
|
|
149
149
|
var tmp$ret$0;
|
|
150
150
|
// Inline function 'kotlin.collections.iterator' call
|
|
151
151
|
tmp$ret$0 = tmp0_forEach.u().c();
|
|
@@ -164,18 +164,18 @@
|
|
|
164
164
|
var tmp$ret$2;
|
|
165
165
|
// Inline function 'kotlin.let' call
|
|
166
166
|
// Inline function 'kotlin.contracts.contract' call
|
|
167
|
-
if (tmp0_safe_receiver.
|
|
168
|
-
if (!currentArgument.
|
|
167
|
+
if (tmp0_safe_receiver.f1v_1.i1v()) {
|
|
168
|
+
if (!currentArgument.f1v_1.i1v() ? currentArgument.f1v_1.c1v_1 : false) {
|
|
169
169
|
// Inline function 'kotlin.error' call
|
|
170
|
-
var tmp0_error = 'Default value of argument ' + tmp0_safe_receiver.
|
|
170
|
+
var tmp0_error = 'Default value of argument ' + tmp0_safe_receiver.f1v_1.z1u_1 + ' will be unused, ' + ('because next argument ' + currentArgument.f1v_1.z1u_1 + ' is always required and has no default value.');
|
|
171
171
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
172
172
|
}
|
|
173
173
|
}
|
|
174
174
|
var tmp;
|
|
175
|
-
if (!tmp0_safe_receiver.
|
|
175
|
+
if (!tmp0_safe_receiver.f1v_1.c1v_1) {
|
|
176
176
|
var tmp_0;
|
|
177
|
-
if (!currentArgument.
|
|
178
|
-
var tmp1_error = 'Argument ' + tmp0_safe_receiver.
|
|
177
|
+
if (!currentArgument.f1v_1.i1v() ? currentArgument.f1v_1.c1v_1 : false) {
|
|
178
|
+
var tmp1_error = 'Argument ' + tmp0_safe_receiver.f1v_1.z1u_1 + ' will be always required, ' + ('because next argument ' + currentArgument.f1v_1.z1u_1 + ' is always required.');
|
|
179
179
|
throw IllegalStateException_init_$Create$(toString(tmp1_error));
|
|
180
180
|
}
|
|
181
181
|
tmp = tmp_0;
|
|
@@ -186,11 +186,11 @@
|
|
|
186
186
|
}
|
|
187
187
|
}
|
|
188
188
|
function printError($this, message) {
|
|
189
|
-
$this.
|
|
189
|
+
$this.x1u_1(message + '\n' + $this.j1v(), 127);
|
|
190
190
|
throwKotlinNothingValueException();
|
|
191
191
|
}
|
|
192
192
|
function saveAsArg($this, arg, argumentsQueue) {
|
|
193
|
-
var name = argumentsQueue.
|
|
193
|
+
var name = argumentsQueue.l1v();
|
|
194
194
|
var tmp0_safe_receiver = name;
|
|
195
195
|
if (tmp0_safe_receiver == null)
|
|
196
196
|
null;
|
|
@@ -198,8 +198,8 @@
|
|
|
198
198
|
var tmp$ret$1;
|
|
199
199
|
// Inline function 'kotlin.let' call
|
|
200
200
|
// Inline function 'kotlin.contracts.contract' call
|
|
201
|
-
var argumentValue = ensureNotNull($this.
|
|
202
|
-
var tmp0_safe_receiver_0 = argumentValue.d1v_1
|
|
201
|
+
var argumentValue = ensureNotNull($this.k1u_1.m2(name));
|
|
202
|
+
var tmp0_safe_receiver_0 = argumentValue.f1v_1.d1v_1;
|
|
203
203
|
if (tmp0_safe_receiver_0 == null)
|
|
204
204
|
null;
|
|
205
205
|
else {
|
|
@@ -209,14 +209,14 @@
|
|
|
209
209
|
printWarning(tmp0_safe_receiver_0);
|
|
210
210
|
tmp$ret$0 = Unit_getInstance();
|
|
211
211
|
}
|
|
212
|
-
argumentValue.
|
|
212
|
+
argumentValue.m1v(arg);
|
|
213
213
|
return true;
|
|
214
214
|
}
|
|
215
215
|
return false;
|
|
216
216
|
}
|
|
217
217
|
function treatAsArgument($this, arg, argumentsQueue) {
|
|
218
218
|
if (!saveAsArg($this, arg, argumentsQueue)) {
|
|
219
|
-
var tmp0_safe_receiver = $this.
|
|
219
|
+
var tmp0_safe_receiver = $this.w1u_1;
|
|
220
220
|
var tmp;
|
|
221
221
|
if (tmp0_safe_receiver == null) {
|
|
222
222
|
tmp = null;
|
|
@@ -226,7 +226,7 @@
|
|
|
226
226
|
// Inline function 'kotlin.contracts.contract' call
|
|
227
227
|
var tmp$ret$0;
|
|
228
228
|
// Inline function 'kotlinx.cli.ArgParser.treatAsArgument.<anonymous>' call
|
|
229
|
-
tmp$ret$0 = ($this.
|
|
229
|
+
tmp$ret$0 = ($this.t1u_1 ? $this.v1u_1 : $this.u1u_1).a(arg);
|
|
230
230
|
tmp$ret$1 = tmp$ret$0;
|
|
231
231
|
tmp = tmp$ret$1;
|
|
232
232
|
}
|
|
@@ -238,41 +238,41 @@
|
|
|
238
238
|
}
|
|
239
239
|
}
|
|
240
240
|
function saveAsOption($this, parsingValue, value) {
|
|
241
|
-
parsingValue.
|
|
241
|
+
parsingValue.m1v(value);
|
|
242
242
|
}
|
|
243
243
|
function recognizeAndSaveOptionFullForm($this, candidate, argIterator) {
|
|
244
|
-
if ($this.
|
|
245
|
-
$this.
|
|
244
|
+
if ($this.g1u_1.equals(OptionPrefixStyle_GNU_getInstance()) ? candidate === $this.q1u_1 : false) {
|
|
245
|
+
$this.t1u_1 = false;
|
|
246
246
|
return false;
|
|
247
247
|
}
|
|
248
|
-
if (!startsWith(candidate, $this.
|
|
248
|
+
if (!startsWith(candidate, $this.q1u_1))
|
|
249
249
|
return false;
|
|
250
250
|
var tmp$ret$1;
|
|
251
251
|
// Inline function 'kotlin.text.substring' call
|
|
252
|
-
var tmp0_substring = $this.
|
|
252
|
+
var tmp0_substring = $this.q1u_1.length;
|
|
253
253
|
var tmp$ret$0;
|
|
254
254
|
// Inline function 'kotlin.js.asDynamic' call
|
|
255
255
|
tmp$ret$0 = candidate;
|
|
256
256
|
tmp$ret$1 = tmp$ret$0.substring(tmp0_substring);
|
|
257
257
|
var optionString = tmp$ret$1;
|
|
258
|
-
var argValue = $this.
|
|
258
|
+
var argValue = $this.g1u_1.equals(OptionPrefixStyle_GNU_getInstance()) ? null : $this.j1u_1.m2(optionString);
|
|
259
259
|
if (!(argValue == null)) {
|
|
260
260
|
saveStandardOptionForm($this, argValue, argIterator);
|
|
261
261
|
return true;
|
|
262
262
|
} else {
|
|
263
|
-
if ($this.
|
|
264
|
-
var tmp0_safe_receiver = $this.
|
|
265
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
266
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
267
|
-
if ((tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
268
|
-
$this.
|
|
263
|
+
if ($this.g1u_1.equals(OptionPrefixStyle_GNU_getInstance())) {
|
|
264
|
+
var tmp0_safe_receiver = $this.j1u_1.m2(optionString);
|
|
265
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.f1v_1;
|
|
266
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.y1u_1;
|
|
267
|
+
if ((tmp2_safe_receiver == null ? null : tmp2_safe_receiver.o1v_1) === false) {
|
|
268
|
+
$this.n1v(ensureNotNull($this.j1u_1.m2(optionString)));
|
|
269
269
|
return true;
|
|
270
270
|
}
|
|
271
271
|
var optionParts = split(optionString, charArrayOf([_Char___init__impl__6a9atx(61)]), VOID, 2);
|
|
272
272
|
if (!(optionParts.f() === 2))
|
|
273
273
|
return false;
|
|
274
|
-
if (!($this.
|
|
275
|
-
saveAsOption($this, ensureNotNull($this.
|
|
274
|
+
if (!($this.j1u_1.m2(optionParts.h(0)) == null)) {
|
|
275
|
+
saveAsOption($this, ensureNotNull($this.j1u_1.m2(optionParts.h(0))), optionParts.h(1));
|
|
276
276
|
return true;
|
|
277
277
|
}
|
|
278
278
|
}
|
|
@@ -280,33 +280,33 @@
|
|
|
280
280
|
return false;
|
|
281
281
|
}
|
|
282
282
|
function saveStandardOptionForm($this, argValue, argIterator) {
|
|
283
|
-
if (argValue.
|
|
283
|
+
if (argValue.f1v_1.y1u_1.o1v_1) {
|
|
284
284
|
if (argIterator.d()) {
|
|
285
285
|
saveAsOption($this, argValue, argIterator.e());
|
|
286
286
|
} else {
|
|
287
|
-
printError($this, 'No value for ' + argValue.
|
|
287
|
+
printError($this, 'No value for ' + argValue.f1v_1.p1v());
|
|
288
288
|
}
|
|
289
289
|
} else {
|
|
290
|
-
$this.
|
|
290
|
+
$this.n1v(argValue);
|
|
291
291
|
}
|
|
292
292
|
}
|
|
293
293
|
function recognizeAndSaveOptionShortForm($this, candidate, argIterator) {
|
|
294
|
-
if (!startsWith(candidate, $this.
|
|
294
|
+
if (!startsWith(candidate, $this.r1u_1) ? true : !($this.q1u_1 === $this.r1u_1) ? startsWith(candidate, $this.q1u_1) : false)
|
|
295
295
|
return false;
|
|
296
296
|
var tmp$ret$1;
|
|
297
297
|
// Inline function 'kotlin.text.substring' call
|
|
298
|
-
var tmp0_substring = $this.
|
|
298
|
+
var tmp0_substring = $this.r1u_1.length;
|
|
299
299
|
var tmp$ret$0;
|
|
300
300
|
// Inline function 'kotlin.js.asDynamic' call
|
|
301
301
|
tmp$ret$0 = candidate;
|
|
302
302
|
tmp$ret$1 = tmp$ret$0.substring(tmp0_substring);
|
|
303
303
|
var option = tmp$ret$1;
|
|
304
|
-
var argValue = $this.
|
|
304
|
+
var argValue = $this.p1u_1.m2(option);
|
|
305
305
|
if (!(argValue == null)) {
|
|
306
306
|
saveStandardOptionForm($this, argValue, argIterator);
|
|
307
307
|
} else {
|
|
308
308
|
var tmp;
|
|
309
|
-
if (!$this.
|
|
309
|
+
if (!$this.g1u_1.equals(OptionPrefixStyle_GNU_getInstance())) {
|
|
310
310
|
tmp = true;
|
|
311
311
|
} else {
|
|
312
312
|
var tmp$ret$2;
|
|
@@ -316,7 +316,7 @@
|
|
|
316
316
|
}
|
|
317
317
|
if (tmp)
|
|
318
318
|
return false;
|
|
319
|
-
var tmp0_elvis_lhs = $this.
|
|
319
|
+
var tmp0_elvis_lhs = $this.p1u_1.m2('' + new Char(charSequenceGet(option, 0)));
|
|
320
320
|
var tmp_0;
|
|
321
321
|
if (tmp0_elvis_lhs == null) {
|
|
322
322
|
return false;
|
|
@@ -324,7 +324,7 @@
|
|
|
324
324
|
tmp_0 = tmp0_elvis_lhs;
|
|
325
325
|
}
|
|
326
326
|
var firstOption = tmp_0;
|
|
327
|
-
if (firstOption.
|
|
327
|
+
if (firstOption.f1v_1.y1u_1.o1v_1) {
|
|
328
328
|
var tmp$ret$4;
|
|
329
329
|
// Inline function 'kotlin.text.substring' call
|
|
330
330
|
var tmp$ret$3;
|
|
@@ -340,14 +340,14 @@
|
|
|
340
340
|
tmp$ret$5 = option;
|
|
341
341
|
tmp$ret$6 = tmp$ret$5.substring(1);
|
|
342
342
|
var otherBooleanOptions = tmp$ret$6;
|
|
343
|
-
$this.
|
|
343
|
+
$this.n1v(firstOption);
|
|
344
344
|
var indexedObject = otherBooleanOptions;
|
|
345
345
|
var inductionVariable = 0;
|
|
346
346
|
var last = indexedObject.length;
|
|
347
347
|
while (inductionVariable < last) {
|
|
348
348
|
var opt = charSequenceGet(indexedObject, inductionVariable);
|
|
349
349
|
inductionVariable = inductionVariable + 1 | 0;
|
|
350
|
-
var tmp2_safe_receiver = $this.
|
|
350
|
+
var tmp2_safe_receiver = $this.p1u_1.m2('' + new Char(opt));
|
|
351
351
|
var tmp_1;
|
|
352
352
|
if (tmp2_safe_receiver == null) {
|
|
353
353
|
tmp_1 = null;
|
|
@@ -356,18 +356,18 @@
|
|
|
356
356
|
// Inline function 'kotlin.let' call
|
|
357
357
|
// Inline function 'kotlin.contracts.contract' call
|
|
358
358
|
var tmp_2;
|
|
359
|
-
if (tmp2_safe_receiver.
|
|
360
|
-
printError($this, 'Option ' + $this.
|
|
359
|
+
if (tmp2_safe_receiver.f1v_1.y1u_1.o1v_1) {
|
|
360
|
+
printError($this, 'Option ' + $this.r1u_1 + new Char(opt) + " can't be used in option combination " + candidate + ', ' + ('because parameter value of type ' + tmp2_safe_receiver.f1v_1.y1u_1.q1v() + ' should be ') + 'provided for current option.');
|
|
361
361
|
}
|
|
362
362
|
tmp$ret$7 = tmp_2;
|
|
363
363
|
tmp_1 = Unit_getInstance();
|
|
364
364
|
}
|
|
365
365
|
var tmp3_elvis_lhs = tmp_1;
|
|
366
366
|
if (tmp3_elvis_lhs == null) {
|
|
367
|
-
printError($this, 'Unknown option ' + $this.
|
|
367
|
+
printError($this, 'Unknown option ' + $this.r1u_1 + new Char(opt) + ' in option combination ' + candidate + '.');
|
|
368
368
|
} else {
|
|
369
369
|
}
|
|
370
|
-
$this.
|
|
370
|
+
$this.n1v(ensureNotNull($this.p1u_1.m2('' + new Char(opt))));
|
|
371
371
|
}
|
|
372
372
|
}
|
|
373
373
|
}
|
|
@@ -410,62 +410,62 @@
|
|
|
410
410
|
prefixStyle = prefixStyle === VOID ? OptionPrefixStyle_LINUX_getInstance() : prefixStyle;
|
|
411
411
|
skipExtraArguments = skipExtraArguments === VOID ? false : skipExtraArguments;
|
|
412
412
|
strictSubcommandOptionsOrder = strictSubcommandOptionsOrder === VOID ? false : strictSubcommandOptionsOrder;
|
|
413
|
-
this.
|
|
414
|
-
this.
|
|
415
|
-
this.
|
|
416
|
-
this.
|
|
417
|
-
this.
|
|
413
|
+
this.e1u_1 = programName;
|
|
414
|
+
this.f1u_1 = useDefaultHelpShortName;
|
|
415
|
+
this.g1u_1 = prefixStyle;
|
|
416
|
+
this.h1u_1 = skipExtraArguments;
|
|
417
|
+
this.i1u_1 = strictSubcommandOptionsOrder;
|
|
418
418
|
var tmp = this;
|
|
419
419
|
var tmp$ret$0;
|
|
420
420
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
421
421
|
tmp$ret$0 = LinkedHashMap_init_$Create$();
|
|
422
|
-
tmp.
|
|
422
|
+
tmp.j1u_1 = tmp$ret$0;
|
|
423
423
|
var tmp_0 = this;
|
|
424
424
|
var tmp$ret$1;
|
|
425
425
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
426
426
|
tmp$ret$1 = LinkedHashMap_init_$Create$();
|
|
427
|
-
tmp_0.
|
|
427
|
+
tmp_0.k1u_1 = tmp$ret$1;
|
|
428
428
|
var tmp_1 = this;
|
|
429
429
|
var tmp$ret$2;
|
|
430
430
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
431
431
|
tmp$ret$2 = ArrayList_init_$Create$();
|
|
432
|
-
tmp_1.
|
|
432
|
+
tmp_1.l1u_1 = tmp$ret$2;
|
|
433
433
|
var tmp_2 = this;
|
|
434
434
|
var tmp$ret$3;
|
|
435
435
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
436
436
|
tmp$ret$3 = ArrayList_init_$Create$();
|
|
437
|
-
tmp_2.
|
|
438
|
-
this.
|
|
437
|
+
tmp_2.m1u_1 = tmp$ret$3;
|
|
438
|
+
this.n1u_1 = null;
|
|
439
439
|
var tmp_3 = this;
|
|
440
440
|
var tmp$ret$4;
|
|
441
441
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
442
442
|
tmp$ret$4 = LinkedHashMap_init_$Create$();
|
|
443
|
-
tmp_3.
|
|
443
|
+
tmp_3.o1u_1 = tmp$ret$4;
|
|
444
444
|
var tmp_4 = this;
|
|
445
445
|
var tmp$ret$5;
|
|
446
446
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
447
447
|
tmp$ret$5 = LinkedHashMap_init_$Create$();
|
|
448
|
-
tmp_4.
|
|
449
|
-
this.
|
|
450
|
-
this.
|
|
451
|
-
this.
|
|
452
|
-
this.
|
|
448
|
+
tmp_4.p1u_1 = tmp$ret$5;
|
|
449
|
+
this.q1u_1 = this.g1u_1.equals(OptionPrefixStyle_JVM_getInstance()) ? '-' : '--';
|
|
450
|
+
this.r1u_1 = '-';
|
|
451
|
+
this.s1u_1 = mutableListOf([this.e1u_1]);
|
|
452
|
+
this.t1u_1 = true;
|
|
453
453
|
var tmp_5 = this;
|
|
454
454
|
var tmp$ret$6;
|
|
455
455
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
456
456
|
tmp$ret$6 = ArrayList_init_$Create$();
|
|
457
|
-
tmp_5.
|
|
457
|
+
tmp_5.u1u_1 = tmp$ret$6;
|
|
458
458
|
var tmp_6 = this;
|
|
459
459
|
var tmp$ret$7;
|
|
460
460
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
461
461
|
tmp$ret$7 = ArrayList_init_$Create$();
|
|
462
|
-
tmp_6.
|
|
463
|
-
this.
|
|
462
|
+
tmp_6.v1u_1 = tmp$ret$7;
|
|
463
|
+
this.w1u_1 = null;
|
|
464
464
|
var tmp_7 = this;
|
|
465
|
-
tmp_7.
|
|
465
|
+
tmp_7.x1u_1 = ArgParser$outputAndTerminate$lambda;
|
|
466
466
|
}
|
|
467
|
-
protoOf(ArgParser).
|
|
468
|
-
if (this.
|
|
467
|
+
protoOf(ArgParser).r1v = function (type, fullName, shortName, description, deprecatedWarning) {
|
|
468
|
+
if (this.g1u_1.equals(OptionPrefixStyle_GNU_getInstance()) ? !(shortName == null) : false) {
|
|
469
469
|
// Inline function 'kotlin.require' call
|
|
470
470
|
var tmp0_require = shortName.length === 1;
|
|
471
471
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -477,33 +477,33 @@
|
|
|
477
477
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
478
478
|
}
|
|
479
479
|
}
|
|
480
|
-
var option = new SingleNullableOption(new OptionDescriptor(this.
|
|
481
|
-
option.s1v_1
|
|
482
|
-
this.
|
|
480
|
+
var option = new SingleNullableOption(new OptionDescriptor(this.q1u_1, this.r1u_1, type, fullName, shortName, description, VOID, VOID, VOID, VOID, deprecatedWarning), new CLIEntityWrapper());
|
|
481
|
+
option.u1v_1.s1v_1 = option;
|
|
482
|
+
this.l1u_1.a(option.u1v_1);
|
|
483
483
|
return option;
|
|
484
484
|
};
|
|
485
|
-
protoOf(ArgParser).
|
|
485
|
+
protoOf(ArgParser).w1v = function (type, fullName, shortName, description, deprecatedWarning, $super) {
|
|
486
486
|
fullName = fullName === VOID ? null : fullName;
|
|
487
487
|
shortName = shortName === VOID ? null : shortName;
|
|
488
488
|
description = description === VOID ? null : description;
|
|
489
489
|
deprecatedWarning = deprecatedWarning === VOID ? null : deprecatedWarning;
|
|
490
|
-
return $super === VOID ? this.
|
|
490
|
+
return $super === VOID ? this.r1v(type, fullName, shortName, description, deprecatedWarning) : $super.r1v.call(this, type, fullName, shortName, description, deprecatedWarning);
|
|
491
491
|
};
|
|
492
|
-
protoOf(ArgParser).
|
|
492
|
+
protoOf(ArgParser).x1v = function (type, fullName, description, deprecatedWarning) {
|
|
493
493
|
var argument = new SingleArgument(new ArgDescriptor(type, fullName, 1, description, VOID, VOID, deprecatedWarning), new CLIEntityWrapper());
|
|
494
|
-
argument.s1v_1
|
|
495
|
-
this.
|
|
494
|
+
argument.u1v_1.s1v_1 = argument;
|
|
495
|
+
this.m1u_1.a(argument.u1v_1);
|
|
496
496
|
return argument;
|
|
497
497
|
};
|
|
498
|
-
protoOf(ArgParser).
|
|
498
|
+
protoOf(ArgParser).y1v = function (type, fullName, description, deprecatedWarning, $super) {
|
|
499
499
|
fullName = fullName === VOID ? null : fullName;
|
|
500
500
|
description = description === VOID ? null : description;
|
|
501
501
|
deprecatedWarning = deprecatedWarning === VOID ? null : deprecatedWarning;
|
|
502
|
-
return $super === VOID ? this.
|
|
502
|
+
return $super === VOID ? this.x1v(type, fullName, description, deprecatedWarning) : $super.x1v.call(this, type, fullName, description, deprecatedWarning);
|
|
503
503
|
};
|
|
504
|
-
protoOf(ArgParser).
|
|
505
|
-
if (argValue.
|
|
506
|
-
var tmp0_safe_receiver = this.
|
|
504
|
+
protoOf(ArgParser).n1v = function (argValue) {
|
|
505
|
+
if (argValue.f1v_1.z1u_1 === 'help') {
|
|
506
|
+
var tmp0_safe_receiver = this.w1u_1;
|
|
507
507
|
if (tmp0_safe_receiver == null)
|
|
508
508
|
null;
|
|
509
509
|
else {
|
|
@@ -512,20 +512,20 @@
|
|
|
512
512
|
// Inline function 'kotlin.contracts.contract' call
|
|
513
513
|
var tmp$ret$0;
|
|
514
514
|
// Inline function 'kotlinx.cli.ArgParser.saveOptionWithoutParameter.<anonymous>' call
|
|
515
|
-
tmp$ret$0 = tmp0_safe_receiver.
|
|
515
|
+
tmp$ret$0 = tmp0_safe_receiver.z1v(listOf(tmp0_safe_receiver.q1u_1 + argValue.f1v_1.z1u_1));
|
|
516
516
|
tmp$ret$1 = tmp$ret$0;
|
|
517
517
|
}
|
|
518
|
-
this.
|
|
518
|
+
this.x1u_1(this.j1v(), 0);
|
|
519
519
|
throwKotlinNothingValueException();
|
|
520
520
|
}
|
|
521
521
|
saveAsOption(this, argValue, 'true');
|
|
522
522
|
};
|
|
523
|
-
protoOf(ArgParser).
|
|
524
|
-
return this.
|
|
523
|
+
protoOf(ArgParser).a1w = function (args) {
|
|
524
|
+
return this.z1v(asList(args));
|
|
525
525
|
};
|
|
526
|
-
protoOf(ArgParser).
|
|
526
|
+
protoOf(ArgParser).z1v = function (args) {
|
|
527
527
|
// Inline function 'kotlin.check' call
|
|
528
|
-
var tmp0_check = this.
|
|
528
|
+
var tmp0_check = this.n1u_1 == null;
|
|
529
529
|
// Inline function 'kotlin.contracts.contract' call
|
|
530
530
|
if (!tmp0_check) {
|
|
531
531
|
var tmp$ret$0;
|
|
@@ -534,17 +534,17 @@
|
|
|
534
534
|
var message = tmp$ret$0;
|
|
535
535
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
536
536
|
}
|
|
537
|
-
var helpDescriptor = this.
|
|
537
|
+
var helpDescriptor = this.f1u_1 ? new OptionDescriptor(this.q1u_1, this.r1u_1, Boolean_getInstance(), 'help', 'h', 'Usage info') : new OptionDescriptor(this.q1u_1, this.r1u_1, Boolean_getInstance(), 'help', VOID, 'Usage info');
|
|
538
538
|
var helpOption = new SingleNullableOption(helpDescriptor, new CLIEntityWrapper());
|
|
539
|
-
helpOption.s1v_1
|
|
540
|
-
this.
|
|
541
|
-
if (this.
|
|
542
|
-
vararg(this.
|
|
539
|
+
helpOption.u1v_1.s1v_1 = helpOption;
|
|
540
|
+
this.l1u_1.a(helpOption.u1v_1);
|
|
541
|
+
if (this.h1u_1) {
|
|
542
|
+
vararg(this.y1v(String_getInstance(), ''));
|
|
543
543
|
}
|
|
544
|
-
this.
|
|
545
|
-
this.
|
|
544
|
+
this.j1u_1.a9();
|
|
545
|
+
this.k1u_1.a9();
|
|
546
546
|
// Inline function 'kotlin.collections.forEachIndexed' call
|
|
547
|
-
var tmp1_forEachIndexed = this.
|
|
547
|
+
var tmp1_forEachIndexed = this.l1u_1;
|
|
548
548
|
var index = 0;
|
|
549
549
|
var tmp0_iterator = tmp1_forEachIndexed.c();
|
|
550
550
|
while (tmp0_iterator.d()) {
|
|
@@ -553,10 +553,10 @@
|
|
|
553
553
|
var tmp1 = index;
|
|
554
554
|
index = tmp1 + 1 | 0;
|
|
555
555
|
var tmp2__anonymous__z9zvc9 = checkIndexOverflow(tmp1);
|
|
556
|
-
var tmp0_safe_receiver = item.
|
|
557
|
-
var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
556
|
+
var tmp0_safe_receiver = item.s1v_1;
|
|
557
|
+
var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.t1v_1;
|
|
558
558
|
var value = tmp instanceof ParsingValue ? tmp : THROW_CCE();
|
|
559
|
-
var tmp1_safe_receiver = value.
|
|
559
|
+
var tmp1_safe_receiver = value.f1v_1.z1u_1;
|
|
560
560
|
var tmp_0;
|
|
561
561
|
if (tmp1_safe_receiver == null) {
|
|
562
562
|
tmp_0 = null;
|
|
@@ -564,24 +564,24 @@
|
|
|
564
564
|
var tmp$ret$4;
|
|
565
565
|
// Inline function 'kotlin.let' call
|
|
566
566
|
// Inline function 'kotlin.contracts.contract' call
|
|
567
|
-
if (this.
|
|
567
|
+
if (this.j1u_1.i2(tmp1_safe_receiver)) {
|
|
568
568
|
// Inline function 'kotlin.error' call
|
|
569
569
|
var tmp0_error = 'Option with full name ' + tmp1_safe_receiver + ' was already added.';
|
|
570
570
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
571
571
|
}
|
|
572
572
|
var tmp$ret$3;
|
|
573
573
|
// Inline function 'kotlin.with' call
|
|
574
|
-
var tmp_1 = value.
|
|
574
|
+
var tmp_1 = value.f1v_1;
|
|
575
575
|
var tmp1_with = tmp_1 instanceof OptionDescriptor ? tmp_1 : THROW_CCE();
|
|
576
576
|
// Inline function 'kotlin.contracts.contract' call
|
|
577
577
|
var tmp$ret$2;
|
|
578
578
|
// Inline function 'kotlinx.cli.ArgParser.parse.<anonymous>.<anonymous>.<anonymous>' call
|
|
579
|
-
if (!(tmp1_with.
|
|
579
|
+
if (!(tmp1_with.k1w_1 == null) ? this.p1u_1.i2(tmp1_with.k1w_1) : false) {
|
|
580
580
|
// Inline function 'kotlin.error' call
|
|
581
|
-
var tmp0_error_0 = 'Option with short name ' + tmp1_with.
|
|
581
|
+
var tmp0_error_0 = 'Option with short name ' + tmp1_with.k1w_1 + ' was already added.';
|
|
582
582
|
throw IllegalStateException_init_$Create$(toString(tmp0_error_0));
|
|
583
583
|
}
|
|
584
|
-
var tmp0_safe_receiver_0 = tmp1_with.
|
|
584
|
+
var tmp0_safe_receiver_0 = tmp1_with.k1w_1;
|
|
585
585
|
var tmp_2;
|
|
586
586
|
if (tmp0_safe_receiver_0 == null) {
|
|
587
587
|
tmp_2 = null;
|
|
@@ -589,14 +589,14 @@
|
|
|
589
589
|
var tmp$ret$1;
|
|
590
590
|
// Inline function 'kotlin.let' call
|
|
591
591
|
// Inline function 'kotlin.contracts.contract' call
|
|
592
|
-
var tmp0_set = this.
|
|
592
|
+
var tmp0_set = this.p1u_1;
|
|
593
593
|
tmp0_set.k3(tmp0_safe_receiver_0, value);
|
|
594
594
|
tmp$ret$1 = Unit_getInstance();
|
|
595
595
|
tmp_2 = Unit_getInstance();
|
|
596
596
|
}
|
|
597
597
|
tmp$ret$2 = tmp_2;
|
|
598
598
|
tmp$ret$3 = tmp$ret$2;
|
|
599
|
-
var tmp2_set = this.
|
|
599
|
+
var tmp2_set = this.j1u_1;
|
|
600
600
|
tmp2_set.k3(tmp1_safe_receiver, value);
|
|
601
601
|
tmp$ret$4 = Unit_getInstance();
|
|
602
602
|
tmp_0 = Unit_getInstance();
|
|
@@ -610,7 +610,7 @@
|
|
|
610
610
|
}
|
|
611
611
|
}
|
|
612
612
|
// Inline function 'kotlin.collections.forEachIndexed' call
|
|
613
|
-
var tmp3_forEachIndexed = this.
|
|
613
|
+
var tmp3_forEachIndexed = this.m1u_1;
|
|
614
614
|
var index_0 = 0;
|
|
615
615
|
var tmp0_iterator_0 = tmp3_forEachIndexed.c();
|
|
616
616
|
while (tmp0_iterator_0.d()) {
|
|
@@ -619,10 +619,10 @@
|
|
|
619
619
|
var tmp1_0 = index_0;
|
|
620
620
|
index_0 = tmp1_0 + 1 | 0;
|
|
621
621
|
var tmp4__anonymous__pkmkx7 = checkIndexOverflow(tmp1_0);
|
|
622
|
-
var tmp0_safe_receiver_1 = item_0.
|
|
623
|
-
var tmp_3 = tmp0_safe_receiver_1 == null ? null : tmp0_safe_receiver_1.
|
|
622
|
+
var tmp0_safe_receiver_1 = item_0.s1v_1;
|
|
623
|
+
var tmp_3 = tmp0_safe_receiver_1 == null ? null : tmp0_safe_receiver_1.t1v_1;
|
|
624
624
|
var value_0 = tmp_3 instanceof ParsingValue ? tmp_3 : THROW_CCE();
|
|
625
|
-
var tmp1_safe_receiver_0 = value_0.
|
|
625
|
+
var tmp1_safe_receiver_0 = value_0.f1v_1.z1u_1;
|
|
626
626
|
var tmp_4;
|
|
627
627
|
if (tmp1_safe_receiver_0 == null) {
|
|
628
628
|
tmp_4 = null;
|
|
@@ -630,12 +630,12 @@
|
|
|
630
630
|
var tmp$ret$5;
|
|
631
631
|
// Inline function 'kotlin.let' call
|
|
632
632
|
// Inline function 'kotlin.contracts.contract' call
|
|
633
|
-
if (this.
|
|
633
|
+
if (this.k1u_1.i2(tmp1_safe_receiver_0)) {
|
|
634
634
|
// Inline function 'kotlin.error' call
|
|
635
635
|
var tmp0_error_2 = 'Argument with full name ' + tmp1_safe_receiver_0 + ' was already added.';
|
|
636
636
|
throw IllegalStateException_init_$Create$(toString(tmp0_error_2));
|
|
637
637
|
}
|
|
638
|
-
var tmp1_set = this.
|
|
638
|
+
var tmp1_set = this.k1u_1;
|
|
639
639
|
tmp1_set.k3(tmp1_safe_receiver_0, value_0);
|
|
640
640
|
tmp$ret$5 = Unit_getInstance();
|
|
641
641
|
tmp_4 = Unit_getInstance();
|
|
@@ -650,7 +650,7 @@
|
|
|
650
650
|
}
|
|
651
651
|
inspectRequiredAndDefaultUsage(this);
|
|
652
652
|
// Inline function 'kotlin.collections.forEach' call
|
|
653
|
-
var tmp5_forEach = listOf_0([this.
|
|
653
|
+
var tmp5_forEach = listOf_0([this.k1u_1, this.j1u_1]);
|
|
654
654
|
var tmp0_iterator_1 = tmp5_forEach.c();
|
|
655
655
|
while (tmp0_iterator_1.d()) {
|
|
656
656
|
var element = tmp0_iterator_1.e();
|
|
@@ -667,12 +667,12 @@
|
|
|
667
667
|
// Inline function 'kotlin.collections.component2' call
|
|
668
668
|
tmp$ret$7 = element_0.w();
|
|
669
669
|
var value_1 = tmp$ret$7;
|
|
670
|
-
value_1.
|
|
670
|
+
value_1.h1v_1 = ValueOrigin_UNSET_getInstance();
|
|
671
671
|
}
|
|
672
672
|
}
|
|
673
673
|
var tmp$ret$11;
|
|
674
674
|
// Inline function 'kotlin.collections.map' call
|
|
675
|
-
var tmp7_map = this.
|
|
675
|
+
var tmp7_map = this.k1u_1;
|
|
676
676
|
var tmp$ret$10;
|
|
677
677
|
// Inline function 'kotlin.collections.mapTo' call
|
|
678
678
|
var tmp6_mapTo = ArrayList_init_$Create$_0(tmp7_map.f());
|
|
@@ -684,34 +684,34 @@
|
|
|
684
684
|
var item_1 = tmp0_iterator_3.e();
|
|
685
685
|
var tmp$ret$9;
|
|
686
686
|
// Inline function 'kotlinx.cli.ArgParser.parse.<anonymous>' call
|
|
687
|
-
var tmp_5 = item_1.w().
|
|
687
|
+
var tmp_5 = item_1.w().f1v_1;
|
|
688
688
|
tmp$ret$9 = tmp_5 instanceof ArgDescriptor ? tmp_5 : THROW_CCE();
|
|
689
689
|
tmp6_mapTo.a(tmp$ret$9);
|
|
690
690
|
}
|
|
691
691
|
tmp$ret$10 = tmp6_mapTo;
|
|
692
692
|
tmp$ret$11 = tmp$ret$10;
|
|
693
693
|
var argumentsQueue = new ArgumentsQueue(tmp$ret$11);
|
|
694
|
-
this.
|
|
695
|
-
this.
|
|
696
|
-
this.
|
|
694
|
+
this.w1u_1 = null;
|
|
695
|
+
this.v1u_1.a9();
|
|
696
|
+
this.u1u_1.a9();
|
|
697
697
|
var argIterator = args.p1();
|
|
698
698
|
try {
|
|
699
699
|
$l$loop: while (argIterator.d()) {
|
|
700
700
|
var arg = argIterator.e();
|
|
701
701
|
var tmp$ret$13;
|
|
702
702
|
// Inline function 'kotlin.collections.contains' call
|
|
703
|
-
var tmp8_contains = this.
|
|
703
|
+
var tmp8_contains = this.o1u_1;
|
|
704
704
|
var tmp$ret$12;
|
|
705
705
|
// Inline function 'kotlin.collections.containsKey' call
|
|
706
706
|
tmp$ret$12 = (isInterface(tmp8_contains, Map) ? tmp8_contains : THROW_CCE()).i2(arg);
|
|
707
707
|
tmp$ret$13 = tmp$ret$12;
|
|
708
708
|
if (!tmp$ret$13) {
|
|
709
|
-
if (this.
|
|
709
|
+
if (this.t1u_1 ? startsWith_0(arg, _Char___init__impl__6a9atx(45)) : false) {
|
|
710
710
|
if (!(recognizeAndSaveOptionShortForm(this, arg, argIterator) ? true : recognizeAndSaveOptionFullForm(this, arg, argIterator))) {
|
|
711
|
-
if (!this.
|
|
711
|
+
if (!this.t1u_1) {
|
|
712
712
|
treatAsArgument(this, argIterator.e(), argumentsQueue);
|
|
713
713
|
} else {
|
|
714
|
-
var tmp0_safe_receiver_2 = this.
|
|
714
|
+
var tmp0_safe_receiver_2 = this.w1u_1;
|
|
715
715
|
var tmp_6;
|
|
716
716
|
if (tmp0_safe_receiver_2 == null) {
|
|
717
717
|
tmp_6 = null;
|
|
@@ -721,7 +721,7 @@
|
|
|
721
721
|
// Inline function 'kotlin.contracts.contract' call
|
|
722
722
|
var tmp$ret$14;
|
|
723
723
|
// Inline function 'kotlinx.cli.ArgParser.parse.<anonymous>' call
|
|
724
|
-
tmp$ret$14 = this.
|
|
724
|
+
tmp$ret$14 = this.v1u_1.a(arg);
|
|
725
725
|
tmp$ret$15 = tmp$ret$14;
|
|
726
726
|
tmp_6 = tmp$ret$15;
|
|
727
727
|
}
|
|
@@ -743,34 +743,34 @@
|
|
|
743
743
|
treatAsArgument(this, arg, argumentsQueue);
|
|
744
744
|
}
|
|
745
745
|
} else {
|
|
746
|
-
this.
|
|
747
|
-
if (this.
|
|
746
|
+
this.w1u_1 = this.o1u_1.m2(arg);
|
|
747
|
+
if (this.i1u_1) {
|
|
748
748
|
break $l$loop;
|
|
749
749
|
}
|
|
750
750
|
}
|
|
751
751
|
}
|
|
752
752
|
// Inline function 'kotlin.collections.forEach' call
|
|
753
|
-
var tmp9_forEach = union(this.
|
|
753
|
+
var tmp9_forEach = union(this.j1u_1.ha(), this.k1u_1.ha());
|
|
754
754
|
var tmp0_iterator_4 = tmp9_forEach.c();
|
|
755
755
|
while (tmp0_iterator_4.d()) {
|
|
756
756
|
var element_1 = tmp0_iterator_4.e();
|
|
757
757
|
// Inline function 'kotlinx.cli.ArgParser.parse.<anonymous>' call
|
|
758
758
|
if (element_1.g()) {
|
|
759
|
-
element_1.
|
|
759
|
+
element_1.n1w();
|
|
760
760
|
}
|
|
761
|
-
if (!element_1.
|
|
762
|
-
printError(this, 'Value for ' + element_1.
|
|
761
|
+
if (!element_1.h1v_1.equals(ValueOrigin_SET_BY_USER_getInstance()) ? element_1.f1v_1.c1v_1 : false) {
|
|
762
|
+
printError(this, 'Value for ' + element_1.f1v_1.p1v() + ' should be always provided in command line.');
|
|
763
763
|
}
|
|
764
764
|
}
|
|
765
|
-
var tmp2_safe_receiver = this.
|
|
765
|
+
var tmp2_safe_receiver = this.w1u_1;
|
|
766
766
|
if (tmp2_safe_receiver == null)
|
|
767
767
|
null;
|
|
768
768
|
else {
|
|
769
769
|
var tmp$ret$19;
|
|
770
770
|
// Inline function 'kotlin.let' call
|
|
771
771
|
// Inline function 'kotlin.contracts.contract' call
|
|
772
|
-
if (this.
|
|
773
|
-
tmp2_safe_receiver.
|
|
772
|
+
if (this.i1u_1) {
|
|
773
|
+
tmp2_safe_receiver.z1v(slice(args, until(argIterator.w1(), args.f())));
|
|
774
774
|
} else {
|
|
775
775
|
var tmp$ret$18;
|
|
776
776
|
// Inline function 'kotlin.takeUnless' call
|
|
@@ -778,18 +778,18 @@
|
|
|
778
778
|
var tmp_8;
|
|
779
779
|
var tmp$ret$17;
|
|
780
780
|
// Inline function 'kotlinx.cli.ArgParser.parse.<anonymous>.<anonymous>' call
|
|
781
|
-
tmp$ret$17 = this.
|
|
781
|
+
tmp$ret$17 = this.t1u_1;
|
|
782
782
|
if (!tmp$ret$17) {
|
|
783
783
|
tmp_8 = '--';
|
|
784
784
|
} else {
|
|
785
785
|
tmp_8 = null;
|
|
786
786
|
}
|
|
787
787
|
tmp$ret$18 = tmp_8;
|
|
788
|
-
tmp2_safe_receiver.
|
|
788
|
+
tmp2_safe_receiver.z1v(plus(plus(this.v1u_1, listOfNotNull(tmp$ret$18)), this.u1u_1));
|
|
789
789
|
}
|
|
790
|
-
tmp2_safe_receiver.
|
|
791
|
-
this.
|
|
792
|
-
return ensureNotNull(this.
|
|
790
|
+
tmp2_safe_receiver.k1x();
|
|
791
|
+
this.n1u_1 = new ArgParserResult(tmp2_safe_receiver.i1x_1);
|
|
792
|
+
return ensureNotNull(this.n1u_1);
|
|
793
793
|
}
|
|
794
794
|
} catch ($p) {
|
|
795
795
|
if ($p instanceof ParsingException) {
|
|
@@ -799,20 +799,20 @@
|
|
|
799
799
|
throw $p;
|
|
800
800
|
}
|
|
801
801
|
}
|
|
802
|
-
this.
|
|
803
|
-
return ensureNotNull(this.
|
|
802
|
+
this.n1u_1 = new ArgParserResult(this.e1u_1);
|
|
803
|
+
return ensureNotNull(this.n1u_1);
|
|
804
804
|
};
|
|
805
|
-
protoOf(ArgParser).
|
|
805
|
+
protoOf(ArgParser).j1v = function () {
|
|
806
806
|
var result = StringBuilder_init_$Create$();
|
|
807
|
-
result.y5('Usage: ' + joinToString(this.
|
|
807
|
+
result.y5('Usage: ' + joinToString(this.s1u_1, ' ') + ' options_list\n');
|
|
808
808
|
var tmp$ret$0;
|
|
809
809
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
810
|
-
var tmp0_isNotEmpty = this.
|
|
810
|
+
var tmp0_isNotEmpty = this.o1u_1;
|
|
811
811
|
tmp$ret$0 = !tmp0_isNotEmpty.g();
|
|
812
812
|
if (tmp$ret$0) {
|
|
813
813
|
result.y5('Subcommands: \n');
|
|
814
814
|
// Inline function 'kotlin.collections.forEach' call
|
|
815
|
-
var tmp1_forEach = this.
|
|
815
|
+
var tmp1_forEach = this.o1u_1;
|
|
816
816
|
var tmp$ret$1;
|
|
817
817
|
// Inline function 'kotlin.collections.iterator' call
|
|
818
818
|
tmp$ret$1 = tmp1_forEach.u().c();
|
|
@@ -824,18 +824,18 @@
|
|
|
824
824
|
// Inline function 'kotlin.collections.component2' call
|
|
825
825
|
tmp$ret$2 = element.w();
|
|
826
826
|
var subcommand = tmp$ret$2;
|
|
827
|
-
result.y5(subcommand.
|
|
827
|
+
result.y5(subcommand.l1x());
|
|
828
828
|
}
|
|
829
829
|
result.y5('\n');
|
|
830
830
|
}
|
|
831
831
|
var tmp$ret$3;
|
|
832
832
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
833
|
-
var tmp2_isNotEmpty = this.
|
|
833
|
+
var tmp2_isNotEmpty = this.k1u_1;
|
|
834
834
|
tmp$ret$3 = !tmp2_isNotEmpty.g();
|
|
835
835
|
if (tmp$ret$3) {
|
|
836
836
|
result.y5('Arguments: \n');
|
|
837
837
|
// Inline function 'kotlin.collections.forEach' call
|
|
838
|
-
var tmp3_forEach = this.
|
|
838
|
+
var tmp3_forEach = this.k1u_1;
|
|
839
839
|
var tmp$ret$4;
|
|
840
840
|
// Inline function 'kotlin.collections.iterator' call
|
|
841
841
|
tmp$ret$4 = tmp3_forEach.u().c();
|
|
@@ -843,17 +843,17 @@
|
|
|
843
843
|
while (tmp0_iterator_0.d()) {
|
|
844
844
|
var element_0 = tmp0_iterator_0.e();
|
|
845
845
|
// Inline function 'kotlinx.cli.ArgParser.makeUsage.<anonymous>' call
|
|
846
|
-
result.y5(element_0.w().
|
|
846
|
+
result.y5(element_0.w().f1v_1.l1x());
|
|
847
847
|
}
|
|
848
848
|
}
|
|
849
849
|
var tmp$ret$5;
|
|
850
850
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
851
|
-
var tmp4_isNotEmpty = this.
|
|
851
|
+
var tmp4_isNotEmpty = this.j1u_1;
|
|
852
852
|
tmp$ret$5 = !tmp4_isNotEmpty.g();
|
|
853
853
|
if (tmp$ret$5) {
|
|
854
854
|
result.y5('Options: \n');
|
|
855
855
|
// Inline function 'kotlin.collections.forEach' call
|
|
856
|
-
var tmp5_forEach = this.
|
|
856
|
+
var tmp5_forEach = this.j1u_1;
|
|
857
857
|
var tmp$ret$6;
|
|
858
858
|
// Inline function 'kotlin.collections.iterator' call
|
|
859
859
|
tmp$ret$6 = tmp5_forEach.u().c();
|
|
@@ -861,7 +861,7 @@
|
|
|
861
861
|
while (tmp0_iterator_1.d()) {
|
|
862
862
|
var element_1 = tmp0_iterator_1.e();
|
|
863
863
|
// Inline function 'kotlinx.cli.ArgParser.makeUsage.<anonymous>' call
|
|
864
|
-
result.y5(element_1.w().
|
|
864
|
+
result.y5(element_1.w().f1v_1.l1x());
|
|
865
865
|
}
|
|
866
866
|
}
|
|
867
867
|
return result.toString();
|
|
@@ -869,7 +869,7 @@
|
|
|
869
869
|
function ArgumentValueDelegate() {
|
|
870
870
|
}
|
|
871
871
|
function ArgParserResult(commandName) {
|
|
872
|
-
this.
|
|
872
|
+
this.n1x_1 = commandName;
|
|
873
873
|
}
|
|
874
874
|
function ArgumentsQueue(argumentsDescriptors) {
|
|
875
875
|
var tmp = this;
|
|
@@ -892,14 +892,14 @@
|
|
|
892
892
|
tmp$ret$2 = tmp$ret$1;
|
|
893
893
|
var tmp1_toTypedArray = tmp$ret$2;
|
|
894
894
|
tmp$ret$3 = copyToArray(tmp1_toTypedArray);
|
|
895
|
-
tmp.
|
|
895
|
+
tmp.k1v_1 = linkedMapOf(tmp$ret$3.slice());
|
|
896
896
|
}
|
|
897
|
-
protoOf(ArgumentsQueue).
|
|
898
|
-
if (this.
|
|
897
|
+
protoOf(ArgumentsQueue).l1v = function () {
|
|
898
|
+
if (this.k1v_1.g())
|
|
899
899
|
return null;
|
|
900
900
|
var tmp$ret$0;
|
|
901
901
|
// Inline function 'kotlin.collections.iterator' call
|
|
902
|
-
var tmp0_iterator = this.
|
|
902
|
+
var tmp0_iterator = this.k1v_1;
|
|
903
903
|
tmp$ret$0 = tmp0_iterator.u().c();
|
|
904
904
|
var tmp0_container = tmp$ret$0.e();
|
|
905
905
|
var tmp$ret$1;
|
|
@@ -910,7 +910,7 @@
|
|
|
910
910
|
// Inline function 'kotlin.collections.component2' call
|
|
911
911
|
tmp$ret$2 = tmp0_container.w();
|
|
912
912
|
var usageNumber = tmp$ret$2;
|
|
913
|
-
var tmp1_safe_receiver = currentDescriptor.
|
|
913
|
+
var tmp1_safe_receiver = currentDescriptor.v1x_1;
|
|
914
914
|
if (tmp1_safe_receiver == null)
|
|
915
915
|
null;
|
|
916
916
|
else {
|
|
@@ -920,10 +920,10 @@
|
|
|
920
920
|
var tmp$ret$3;
|
|
921
921
|
// Inline function 'kotlinx.cli.ArgumentsQueue.pop.<anonymous>' call
|
|
922
922
|
var tmp;
|
|
923
|
-
if ((usageNumber + 1 | 0) >= currentDescriptor.
|
|
924
|
-
tmp = this.
|
|
923
|
+
if ((usageNumber + 1 | 0) >= currentDescriptor.v1x_1) {
|
|
924
|
+
tmp = this.k1v_1.xa(currentDescriptor);
|
|
925
925
|
} else {
|
|
926
|
-
var tmp0_set = this.
|
|
926
|
+
var tmp0_set = this.k1v_1;
|
|
927
927
|
var tmp1_set = usageNumber + 1 | 0;
|
|
928
928
|
tmp0_set.k3(currentDescriptor, tmp1_set);
|
|
929
929
|
tmp = Unit_getInstance();
|
|
@@ -931,7 +931,7 @@
|
|
|
931
931
|
tmp$ret$3 = tmp;
|
|
932
932
|
tmp$ret$4 = tmp$ret$3;
|
|
933
933
|
}
|
|
934
|
-
return currentDescriptor.
|
|
934
|
+
return currentDescriptor.z1u_1;
|
|
935
935
|
};
|
|
936
936
|
function printWarning(message) {
|
|
937
937
|
println('WARNING ' + message);
|
|
@@ -943,10 +943,10 @@
|
|
|
943
943
|
Boolean_instance = this;
|
|
944
944
|
ArgType.call(this, false);
|
|
945
945
|
}
|
|
946
|
-
protoOf(Boolean_0).
|
|
946
|
+
protoOf(Boolean_0).q1v = function () {
|
|
947
947
|
return '';
|
|
948
948
|
};
|
|
949
|
-
protoOf(Boolean_0).
|
|
949
|
+
protoOf(Boolean_0).x1x = function (value, name) {
|
|
950
950
|
return !(value === 'false');
|
|
951
951
|
};
|
|
952
952
|
var Boolean_instance;
|
|
@@ -959,10 +959,10 @@
|
|
|
959
959
|
String_instance = this;
|
|
960
960
|
ArgType.call(this, true);
|
|
961
961
|
}
|
|
962
|
-
protoOf(String_0).
|
|
962
|
+
protoOf(String_0).q1v = function () {
|
|
963
963
|
return '{ String }';
|
|
964
964
|
};
|
|
965
|
-
protoOf(String_0).
|
|
965
|
+
protoOf(String_0).x1x = function (value, name) {
|
|
966
966
|
return value;
|
|
967
967
|
};
|
|
968
968
|
var String_instance;
|
|
@@ -989,8 +989,8 @@
|
|
|
989
989
|
}
|
|
990
990
|
variantToString = tmp;
|
|
991
991
|
ArgType.call(this, true);
|
|
992
|
-
this.
|
|
993
|
-
this.
|
|
992
|
+
this.a1y_1 = toVariant;
|
|
993
|
+
this.b1y_1 = variantToString;
|
|
994
994
|
var tmp_0 = this;
|
|
995
995
|
var tmp$ret$2;
|
|
996
996
|
// Inline function 'kotlin.collections.associateBy' call
|
|
@@ -1003,14 +1003,14 @@
|
|
|
1003
1003
|
var element = tmp0_iterator.e();
|
|
1004
1004
|
var tmp$ret$0;
|
|
1005
1005
|
// Inline function 'kotlinx.cli.Choice.choicesMap.<anonymous>' call
|
|
1006
|
-
tmp$ret$0 = this.
|
|
1006
|
+
tmp$ret$0 = this.b1y_1(element);
|
|
1007
1007
|
tmp0_associateByTo.k3(tmp$ret$0, element);
|
|
1008
1008
|
}
|
|
1009
1009
|
tmp$ret$1 = tmp0_associateByTo;
|
|
1010
1010
|
tmp$ret$2 = tmp$ret$1;
|
|
1011
|
-
tmp_0.
|
|
1011
|
+
tmp_0.c1y_1 = tmp$ret$2;
|
|
1012
1012
|
// Inline function 'kotlin.require' call
|
|
1013
|
-
var tmp0_require = this.
|
|
1013
|
+
var tmp0_require = this.c1y_1.f() === choices.f();
|
|
1014
1014
|
// Inline function 'kotlin.contracts.contract' call
|
|
1015
1015
|
if (!tmp0_require) {
|
|
1016
1016
|
var tmp$ret$3;
|
|
@@ -1020,18 +1020,18 @@
|
|
|
1020
1020
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1021
1021
|
}
|
|
1022
1022
|
}
|
|
1023
|
-
protoOf(Choice).
|
|
1024
|
-
return '{ Value should be one of ' + this.
|
|
1023
|
+
protoOf(Choice).q1v = function () {
|
|
1024
|
+
return '{ Value should be one of ' + this.c1y_1.n2() + ' }';
|
|
1025
1025
|
};
|
|
1026
|
-
protoOf(Choice).
|
|
1026
|
+
protoOf(Choice).x1x = function (value, name) {
|
|
1027
1027
|
var tmp;
|
|
1028
1028
|
try {
|
|
1029
|
-
tmp = this.
|
|
1029
|
+
tmp = this.a1y_1(value);
|
|
1030
1030
|
} catch ($p) {
|
|
1031
1031
|
var tmp_0;
|
|
1032
1032
|
if ($p instanceof Exception) {
|
|
1033
1033
|
var e = $p;
|
|
1034
|
-
throw new ParsingException('Option ' + name + ' is expected to be one of ' + this.
|
|
1034
|
+
throw new ParsingException('Option ' + name + ' is expected to be one of ' + this.c1y_1.n2() + '. ' + value + ' is provided.');
|
|
1035
1035
|
} else {
|
|
1036
1036
|
throw $p;
|
|
1037
1037
|
}
|
|
@@ -1041,34 +1041,34 @@
|
|
|
1041
1041
|
};
|
|
1042
1042
|
function ArgType(hasParameter) {
|
|
1043
1043
|
Companion_getInstance();
|
|
1044
|
-
this.
|
|
1044
|
+
this.o1v_1 = hasParameter;
|
|
1045
1045
|
}
|
|
1046
1046
|
function ParsingException(message) {
|
|
1047
1047
|
Exception_init_$Init$(message, this);
|
|
1048
1048
|
captureStack(this, ParsingException);
|
|
1049
1049
|
}
|
|
1050
1050
|
function ParsingValue(descriptor) {
|
|
1051
|
-
this.
|
|
1052
|
-
this.
|
|
1051
|
+
this.f1v_1 = descriptor;
|
|
1052
|
+
this.h1v_1 = ValueOrigin_UNDEFINED_getInstance();
|
|
1053
1053
|
}
|
|
1054
|
-
protoOf(ParsingValue).
|
|
1055
|
-
var tmp = this.
|
|
1054
|
+
protoOf(ParsingValue).d1y = function () {
|
|
1055
|
+
var tmp = this.g1v_1;
|
|
1056
1056
|
if (!(tmp == null))
|
|
1057
1057
|
return tmp;
|
|
1058
1058
|
else {
|
|
1059
1059
|
throwUninitializedPropertyAccessException('parsedValue');
|
|
1060
1060
|
}
|
|
1061
1061
|
};
|
|
1062
|
-
protoOf(ParsingValue).
|
|
1063
|
-
return !(this.
|
|
1062
|
+
protoOf(ParsingValue).e1y = function () {
|
|
1063
|
+
return !(this.g1v_1 == null);
|
|
1064
1064
|
};
|
|
1065
|
-
protoOf(ParsingValue).
|
|
1065
|
+
protoOf(ParsingValue).m1v = function (stringValue) {
|
|
1066
1066
|
var tmp;
|
|
1067
1067
|
var tmp_0;
|
|
1068
1068
|
var tmp_1;
|
|
1069
|
-
var tmp_2 = this.
|
|
1069
|
+
var tmp_2 = this.f1v_1;
|
|
1070
1070
|
if (tmp_2 instanceof OptionDescriptor) {
|
|
1071
|
-
tmp_1 = !this.
|
|
1071
|
+
tmp_1 = !this.f1v_1.l1w_1;
|
|
1072
1072
|
} else {
|
|
1073
1073
|
tmp_1 = false;
|
|
1074
1074
|
}
|
|
@@ -1078,14 +1078,14 @@
|
|
|
1078
1078
|
tmp_0 = false;
|
|
1079
1079
|
}
|
|
1080
1080
|
if (tmp_0) {
|
|
1081
|
-
tmp = this.
|
|
1081
|
+
tmp = this.f1v_1.m1w_1 == null;
|
|
1082
1082
|
} else {
|
|
1083
1083
|
tmp = false;
|
|
1084
1084
|
}
|
|
1085
1085
|
if (tmp) {
|
|
1086
|
-
throw new ParsingException('Try to provide more than one value for ' + this.
|
|
1086
|
+
throw new ParsingException('Try to provide more than one value for ' + this.f1v_1.z1u_1 + '.');
|
|
1087
1087
|
}
|
|
1088
|
-
var tmp0_safe_receiver = this.d1v_1
|
|
1088
|
+
var tmp0_safe_receiver = this.f1v_1.d1v_1;
|
|
1089
1089
|
if (tmp0_safe_receiver == null)
|
|
1090
1090
|
null;
|
|
1091
1091
|
else {
|
|
@@ -1100,38 +1100,38 @@
|
|
|
1100
1100
|
tmp$ret$0 = tmp_3;
|
|
1101
1101
|
}
|
|
1102
1102
|
var tmp_4;
|
|
1103
|
-
var tmp_5 = this.
|
|
1103
|
+
var tmp_5 = this.f1v_1;
|
|
1104
1104
|
if (tmp_5 instanceof OptionDescriptor) {
|
|
1105
|
-
tmp_4 = !(this.
|
|
1105
|
+
tmp_4 = !(this.f1v_1.m1w_1 == null);
|
|
1106
1106
|
} else {
|
|
1107
1107
|
tmp_4 = false;
|
|
1108
1108
|
}
|
|
1109
1109
|
if (tmp_4) {
|
|
1110
1110
|
// Inline function 'kotlin.collections.forEach' call
|
|
1111
|
-
var tmp0_forEach = split_0(stringValue, [this.
|
|
1111
|
+
var tmp0_forEach = split_0(stringValue, [this.f1v_1.m1w_1]);
|
|
1112
1112
|
var tmp0_iterator = tmp0_forEach.c();
|
|
1113
1113
|
while (tmp0_iterator.d()) {
|
|
1114
1114
|
var element = tmp0_iterator.e();
|
|
1115
1115
|
// Inline function 'kotlinx.cli.ParsingValue.addValue.<anonymous>' call
|
|
1116
|
-
this.
|
|
1116
|
+
this.f1y(element);
|
|
1117
1117
|
}
|
|
1118
1118
|
} else {
|
|
1119
|
-
this.
|
|
1119
|
+
this.f1y(stringValue);
|
|
1120
1120
|
}
|
|
1121
1121
|
};
|
|
1122
|
-
protoOf(ParsingValue).
|
|
1123
|
-
if (this.
|
|
1124
|
-
this.
|
|
1125
|
-
this.
|
|
1122
|
+
protoOf(ParsingValue).n1w = function () {
|
|
1123
|
+
if (this.f1v_1.i1v()) {
|
|
1124
|
+
this.g1v_1 = ensureNotNull(this.f1v_1.b1v_1);
|
|
1125
|
+
this.h1v_1 = ValueOrigin_SET_DEFAULT_VALUE_getInstance();
|
|
1126
1126
|
}
|
|
1127
1127
|
};
|
|
1128
|
-
protoOf(ParsingValue).
|
|
1129
|
-
var tmp0_elvis_lhs = this.
|
|
1128
|
+
protoOf(ParsingValue).g1y = function (name) {
|
|
1129
|
+
var tmp0_elvis_lhs = this.f1v_1.z1u_1;
|
|
1130
1130
|
if (tmp0_elvis_lhs == null) {
|
|
1131
1131
|
var tmp$ret$0;
|
|
1132
1132
|
// Inline function 'kotlin.run' call
|
|
1133
1133
|
// Inline function 'kotlin.contracts.contract' call
|
|
1134
|
-
this.
|
|
1134
|
+
this.f1v_1.z1u_1 = name;
|
|
1135
1135
|
tmp$ret$0 = Unit_getInstance();
|
|
1136
1136
|
} else
|
|
1137
1137
|
tmp0_elvis_lhs;
|
|
@@ -1142,19 +1142,19 @@
|
|
|
1142
1142
|
protoOf(ArgumentSingleValue).w = function () {
|
|
1143
1143
|
var tmp;
|
|
1144
1144
|
if (!this.g()) {
|
|
1145
|
-
tmp = this.
|
|
1145
|
+
tmp = this.d1y();
|
|
1146
1146
|
} else {
|
|
1147
|
-
var tmp0_error = 'Value for argument ' + this.
|
|
1147
|
+
var tmp0_error = 'Value for argument ' + this.f1v_1.z1u_1 + " isn't set. " + 'ArgParser.parse(...) method should be called before.';
|
|
1148
1148
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
1149
1149
|
}
|
|
1150
1150
|
return tmp;
|
|
1151
1151
|
};
|
|
1152
1152
|
function ArgumentSingleNullableValue(descriptor) {
|
|
1153
1153
|
AbstractArgumentSingleValue.call(this, descriptor);
|
|
1154
|
-
this.
|
|
1154
|
+
this.q1y_1 = false;
|
|
1155
1155
|
}
|
|
1156
1156
|
protoOf(ArgumentSingleNullableValue).w = function () {
|
|
1157
|
-
return (!this.g() ? !this.
|
|
1157
|
+
return (!this.g() ? !this.q1y_1 : false) ? this.d1y() : null;
|
|
1158
1158
|
};
|
|
1159
1159
|
function ArgumentMultipleValues(descriptor) {
|
|
1160
1160
|
ParsingValue.call(this, descriptor);
|
|
@@ -1162,46 +1162,46 @@
|
|
|
1162
1162
|
var tmp$ret$0;
|
|
1163
1163
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
1164
1164
|
tmp$ret$0 = ArrayList_init_$Create$();
|
|
1165
|
-
tmp.
|
|
1166
|
-
this.
|
|
1165
|
+
tmp.u1y_1 = tmp$ret$0;
|
|
1166
|
+
this.g1v_1 = this.u1y_1;
|
|
1167
1167
|
}
|
|
1168
1168
|
protoOf(ArgumentMultipleValues).w = function () {
|
|
1169
|
-
return this.
|
|
1169
|
+
return this.d1y();
|
|
1170
1170
|
};
|
|
1171
|
-
protoOf(ArgumentMultipleValues).
|
|
1172
|
-
this.
|
|
1173
|
-
this.
|
|
1171
|
+
protoOf(ArgumentMultipleValues).f1y = function (stringValue) {
|
|
1172
|
+
this.u1y_1.a(this.f1v_1.y1u_1.x1x(stringValue, ensureNotNull(this.f1v_1.z1u_1)));
|
|
1173
|
+
this.h1v_1 = ValueOrigin_SET_BY_USER_getInstance();
|
|
1174
1174
|
};
|
|
1175
1175
|
protoOf(ArgumentMultipleValues).g = function () {
|
|
1176
|
-
return this.
|
|
1176
|
+
return this.d1y().g();
|
|
1177
1177
|
};
|
|
1178
1178
|
function AbstractArgumentSingleValue(descriptor) {
|
|
1179
1179
|
ParsingValue.call(this, descriptor);
|
|
1180
1180
|
}
|
|
1181
|
-
protoOf(AbstractArgumentSingleValue).
|
|
1182
|
-
if (!this.
|
|
1183
|
-
this.
|
|
1184
|
-
this.
|
|
1181
|
+
protoOf(AbstractArgumentSingleValue).f1y = function (stringValue) {
|
|
1182
|
+
if (!this.e1y()) {
|
|
1183
|
+
this.g1v_1 = this.f1v_1.y1u_1.x1x(stringValue, ensureNotNull(this.f1v_1.z1u_1));
|
|
1184
|
+
this.h1v_1 = ValueOrigin_SET_BY_USER_getInstance();
|
|
1185
1185
|
} else {
|
|
1186
|
-
throw new ParsingException('Try to provide more than one value ' + this.
|
|
1186
|
+
throw new ParsingException('Try to provide more than one value ' + this.d1y() + ' and ' + stringValue + ' for ' + this.f1v_1.z1u_1 + '.');
|
|
1187
1187
|
}
|
|
1188
1188
|
};
|
|
1189
1189
|
protoOf(AbstractArgumentSingleValue).g = function () {
|
|
1190
|
-
return !this.
|
|
1190
|
+
return !this.e1y();
|
|
1191
1191
|
};
|
|
1192
1192
|
function SingleArgument(descriptor, owner) {
|
|
1193
1193
|
AbstractSingleArgument.call(this, new ArgumentSingleValue(descriptor), owner);
|
|
1194
|
-
this.
|
|
1194
|
+
this.y1y(descriptor);
|
|
1195
1195
|
}
|
|
1196
1196
|
function CLIEntityWrapper(entity) {
|
|
1197
1197
|
entity = entity === VOID ? null : entity;
|
|
1198
|
-
this.
|
|
1198
|
+
this.s1v_1 = entity;
|
|
1199
1199
|
}
|
|
1200
1200
|
protoOf(CLIEntityWrapper).toString = function () {
|
|
1201
|
-
return 'CLIEntityWrapper(entity=' + this.
|
|
1201
|
+
return 'CLIEntityWrapper(entity=' + this.s1v_1 + ')';
|
|
1202
1202
|
};
|
|
1203
1203
|
protoOf(CLIEntityWrapper).hashCode = function () {
|
|
1204
|
-
return this.
|
|
1204
|
+
return this.s1v_1 == null ? 0 : hashCode(this.s1v_1);
|
|
1205
1205
|
};
|
|
1206
1206
|
protoOf(CLIEntityWrapper).equals = function (other) {
|
|
1207
1207
|
if (this === other)
|
|
@@ -1209,13 +1209,13 @@
|
|
|
1209
1209
|
if (!(other instanceof CLIEntityWrapper))
|
|
1210
1210
|
return false;
|
|
1211
1211
|
var tmp0_other_with_cast = other instanceof CLIEntityWrapper ? other : THROW_CCE();
|
|
1212
|
-
if (!equals(this.
|
|
1212
|
+
if (!equals(this.s1v_1, tmp0_other_with_cast.s1v_1))
|
|
1213
1213
|
return false;
|
|
1214
1214
|
return true;
|
|
1215
1215
|
};
|
|
1216
1216
|
function MultipleArgument(descriptor, owner) {
|
|
1217
1217
|
Argument.call(this, new ArgumentMultipleValues(descriptor), owner);
|
|
1218
|
-
if (!(descriptor.
|
|
1218
|
+
if (!(descriptor.v1x_1 == null) ? descriptor.v1x_1 < 2 : false) {
|
|
1219
1219
|
failAssertion("Argument with multiple values can't be initialized with descriptor for single one.");
|
|
1220
1220
|
}
|
|
1221
1221
|
}
|
|
@@ -1224,40 +1224,40 @@
|
|
|
1224
1224
|
// Inline function 'kotlin.with' call
|
|
1225
1225
|
var tmp$ret$0;
|
|
1226
1226
|
// Inline function 'kotlinx.cli.cast' call
|
|
1227
|
-
var tmp0_cast = _this__u8e3s4.
|
|
1227
|
+
var tmp0_cast = _this__u8e3s4.t1v_1;
|
|
1228
1228
|
tmp$ret$0 = tmp0_cast instanceof ParsingValue ? tmp0_cast : THROW_CCE();
|
|
1229
|
-
var tmp = tmp$ret$0.
|
|
1229
|
+
var tmp = tmp$ret$0.f1v_1;
|
|
1230
1230
|
var tmp1_with = tmp instanceof ArgDescriptor ? tmp : THROW_CCE();
|
|
1231
1231
|
// Inline function 'kotlin.contracts.contract' call
|
|
1232
1232
|
var tmp$ret$1;
|
|
1233
1233
|
// Inline function 'kotlinx.cli.vararg.<anonymous>' call
|
|
1234
|
-
tmp$ret$1 = new MultipleArgument(new ArgDescriptor(tmp1_with.
|
|
1234
|
+
tmp$ret$1 = new MultipleArgument(new ArgDescriptor(tmp1_with.y1u_1, tmp1_with.z1u_1, null, tmp1_with.a1v_1, listOfNotNull(tmp1_with.b1v_1), tmp1_with.c1v_1, tmp1_with.d1v_1), _this__u8e3s4.u1v_1);
|
|
1235
1235
|
tmp$ret$2 = tmp$ret$1;
|
|
1236
1236
|
var newArgument = tmp$ret$2;
|
|
1237
|
-
_this__u8e3s4.s1v_1
|
|
1237
|
+
_this__u8e3s4.u1v_1.s1v_1 = newArgument;
|
|
1238
1238
|
return newArgument;
|
|
1239
1239
|
}
|
|
1240
1240
|
function CLIEntity(delegate, owner) {
|
|
1241
|
-
this.
|
|
1242
|
-
this.
|
|
1243
|
-
this.
|
|
1241
|
+
this.t1v_1 = delegate;
|
|
1242
|
+
this.u1v_1 = owner;
|
|
1243
|
+
this.v1v_1 = false;
|
|
1244
1244
|
}
|
|
1245
|
-
protoOf(CLIEntity).
|
|
1245
|
+
protoOf(CLIEntity).z1y = function (thisRef, prop) {
|
|
1246
1246
|
// Inline function 'kotlin.check' call
|
|
1247
|
-
var tmp0_check = !this.
|
|
1247
|
+
var tmp0_check = !this.v1v_1;
|
|
1248
1248
|
// Inline function 'kotlin.contracts.contract' call
|
|
1249
1249
|
if (!tmp0_check) {
|
|
1250
1250
|
var tmp$ret$0;
|
|
1251
1251
|
// Inline function 'kotlinx.cli.CLIEntity.provideDelegate.<anonymous>' call
|
|
1252
|
-
var tmp = this.
|
|
1253
|
-
tmp$ret$0 = 'There is already used delegate for ' + (tmp instanceof ParsingValue ? tmp : THROW_CCE()).
|
|
1252
|
+
var tmp = this.t1v_1;
|
|
1253
|
+
tmp$ret$0 = 'There is already used delegate for ' + (tmp instanceof ParsingValue ? tmp : THROW_CCE()).f1v_1.z1u_1 + '.';
|
|
1254
1254
|
var message = tmp$ret$0;
|
|
1255
1255
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
1256
1256
|
}
|
|
1257
|
-
var tmp_0 = this.
|
|
1258
|
-
(tmp_0 instanceof ParsingValue ? tmp_0 : THROW_CCE()).
|
|
1259
|
-
this.
|
|
1260
|
-
return this.
|
|
1257
|
+
var tmp_0 = this.t1v_1;
|
|
1258
|
+
(tmp_0 instanceof ParsingValue ? tmp_0 : THROW_CCE()).g1y(prop.callableName);
|
|
1259
|
+
this.v1v_1 = true;
|
|
1260
|
+
return this.t1v_1;
|
|
1261
1261
|
};
|
|
1262
1262
|
function failAssertion(message) {
|
|
1263
1263
|
throw AssertionError_init_$Create$(message);
|
|
@@ -1265,8 +1265,8 @@
|
|
|
1265
1265
|
function AbstractSingleArgument(delegate, owner) {
|
|
1266
1266
|
Argument.call(this, delegate, owner);
|
|
1267
1267
|
}
|
|
1268
|
-
protoOf(AbstractSingleArgument).
|
|
1269
|
-
if (descriptor.
|
|
1268
|
+
protoOf(AbstractSingleArgument).y1y = function (descriptor) {
|
|
1269
|
+
if (descriptor.v1x_1 == null ? true : descriptor.v1x_1 > 1) {
|
|
1270
1270
|
failAssertion("Argument with single value can't be initialized with descriptor for multiple values.");
|
|
1271
1271
|
}
|
|
1272
1272
|
};
|
|
@@ -1283,19 +1283,19 @@
|
|
|
1283
1283
|
delimiter = delimiter === VOID ? null : delimiter;
|
|
1284
1284
|
deprecatedWarning = deprecatedWarning === VOID ? null : deprecatedWarning;
|
|
1285
1285
|
Descriptor.call(this, type, fullName, description, defaultValue, required, deprecatedWarning);
|
|
1286
|
-
this.
|
|
1287
|
-
this.
|
|
1288
|
-
this.
|
|
1289
|
-
this.
|
|
1290
|
-
this.
|
|
1286
|
+
this.i1w_1 = optionFullFormPrefix;
|
|
1287
|
+
this.j1w_1 = optionShortFromPrefix;
|
|
1288
|
+
this.k1w_1 = shortName;
|
|
1289
|
+
this.l1w_1 = multiple;
|
|
1290
|
+
this.m1w_1 = delimiter;
|
|
1291
1291
|
}
|
|
1292
|
-
protoOf(OptionDescriptor).
|
|
1293
|
-
return 'option ' + this.
|
|
1292
|
+
protoOf(OptionDescriptor).p1v = function () {
|
|
1293
|
+
return 'option ' + this.i1w_1 + this.z1u_1;
|
|
1294
1294
|
};
|
|
1295
|
-
protoOf(OptionDescriptor).
|
|
1295
|
+
protoOf(OptionDescriptor).l1x = function () {
|
|
1296
1296
|
var result = StringBuilder_init_$Create$();
|
|
1297
|
-
result.y5(' ' + this.
|
|
1298
|
-
var tmp0_safe_receiver = this.
|
|
1297
|
+
result.y5(' ' + this.i1w_1 + this.z1u_1);
|
|
1298
|
+
var tmp0_safe_receiver = this.k1w_1;
|
|
1299
1299
|
if (tmp0_safe_receiver == null)
|
|
1300
1300
|
null;
|
|
1301
1301
|
else {
|
|
@@ -1304,10 +1304,10 @@
|
|
|
1304
1304
|
// Inline function 'kotlin.contracts.contract' call
|
|
1305
1305
|
var tmp$ret$0;
|
|
1306
1306
|
// Inline function 'kotlinx.cli.OptionDescriptor.<get-helpMessage>.<anonymous>' call
|
|
1307
|
-
tmp$ret$0 = result.y5(', ' + this.
|
|
1307
|
+
tmp$ret$0 = result.y5(', ' + this.j1w_1 + tmp0_safe_receiver);
|
|
1308
1308
|
tmp$ret$1 = tmp$ret$0;
|
|
1309
1309
|
}
|
|
1310
|
-
var tmp1_safe_receiver = this.
|
|
1310
|
+
var tmp1_safe_receiver = this.a1z(this.b1v_1);
|
|
1311
1311
|
if (tmp1_safe_receiver == null)
|
|
1312
1312
|
null;
|
|
1313
1313
|
else {
|
|
@@ -1319,7 +1319,7 @@
|
|
|
1319
1319
|
tmp$ret$2 = result.y5(tmp1_safe_receiver);
|
|
1320
1320
|
tmp$ret$3 = tmp$ret$2;
|
|
1321
1321
|
}
|
|
1322
|
-
var tmp2_safe_receiver = this.
|
|
1322
|
+
var tmp2_safe_receiver = this.a1v_1;
|
|
1323
1323
|
if (tmp2_safe_receiver == null)
|
|
1324
1324
|
null;
|
|
1325
1325
|
else {
|
|
@@ -1331,11 +1331,11 @@
|
|
|
1331
1331
|
tmp$ret$4 = result.y5(' -> ' + tmp2_safe_receiver);
|
|
1332
1332
|
tmp$ret$5 = tmp$ret$4;
|
|
1333
1333
|
}
|
|
1334
|
-
if (this.
|
|
1334
|
+
if (this.c1v_1) {
|
|
1335
1335
|
result.y5(' (always required)');
|
|
1336
1336
|
}
|
|
1337
|
-
result.y5(' ' + this.
|
|
1338
|
-
var tmp3_safe_receiver = this.
|
|
1337
|
+
result.y5(' ' + this.y1u_1.q1v());
|
|
1338
|
+
var tmp3_safe_receiver = this.d1v_1;
|
|
1339
1339
|
if (tmp3_safe_receiver == null)
|
|
1340
1340
|
null;
|
|
1341
1341
|
else {
|
|
@@ -1353,14 +1353,14 @@
|
|
|
1353
1353
|
function Descriptor$defaultValueSet$delegate$lambda(this$0) {
|
|
1354
1354
|
return function () {
|
|
1355
1355
|
var tmp;
|
|
1356
|
-
if (!(this$0.
|
|
1356
|
+
if (!(this$0.b1v_1 == null)) {
|
|
1357
1357
|
var tmp_0;
|
|
1358
1358
|
var tmp_1;
|
|
1359
|
-
var tmp_2 = this$0.
|
|
1359
|
+
var tmp_2 = this$0.b1v_1;
|
|
1360
1360
|
if (!(tmp_2 == null) ? isInterface(tmp_2, List) : false) {
|
|
1361
1361
|
var tmp$ret$0;
|
|
1362
1362
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
1363
|
-
var tmp0_isNotEmpty = this$0.
|
|
1363
|
+
var tmp0_isNotEmpty = this$0.b1v_1;
|
|
1364
1364
|
tmp$ret$0 = !tmp0_isNotEmpty.g();
|
|
1365
1365
|
tmp_1 = tmp$ret$0;
|
|
1366
1366
|
} else {
|
|
@@ -1369,7 +1369,7 @@
|
|
|
1369
1369
|
if (tmp_1) {
|
|
1370
1370
|
tmp_0 = true;
|
|
1371
1371
|
} else {
|
|
1372
|
-
var tmp_3 = this$0.
|
|
1372
|
+
var tmp_3 = this$0.b1v_1;
|
|
1373
1373
|
tmp_0 = !(!(tmp_3 == null) ? isInterface(tmp_3, List) : false);
|
|
1374
1374
|
}
|
|
1375
1375
|
tmp = tmp_0;
|
|
@@ -1385,16 +1385,16 @@
|
|
|
1385
1385
|
defaultValue = defaultValue === VOID ? null : defaultValue;
|
|
1386
1386
|
required = required === VOID ? false : required;
|
|
1387
1387
|
deprecatedWarning = deprecatedWarning === VOID ? null : deprecatedWarning;
|
|
1388
|
-
this.
|
|
1389
|
-
this.
|
|
1390
|
-
this.
|
|
1391
|
-
this.
|
|
1392
|
-
this.
|
|
1393
|
-
this.
|
|
1388
|
+
this.y1u_1 = type;
|
|
1389
|
+
this.z1u_1 = fullName;
|
|
1390
|
+
this.a1v_1 = description;
|
|
1391
|
+
this.b1v_1 = defaultValue;
|
|
1392
|
+
this.c1v_1 = required;
|
|
1393
|
+
this.d1v_1 = deprecatedWarning;
|
|
1394
1394
|
var tmp = this;
|
|
1395
|
-
tmp.
|
|
1395
|
+
tmp.e1v_1 = lazy(Descriptor$defaultValueSet$delegate$lambda(this));
|
|
1396
1396
|
}
|
|
1397
|
-
protoOf(Descriptor).
|
|
1397
|
+
protoOf(Descriptor).a1z = function (value) {
|
|
1398
1398
|
var tmp0_safe_receiver = value;
|
|
1399
1399
|
var tmp;
|
|
1400
1400
|
if (tmp0_safe_receiver == null) {
|
|
@@ -1431,11 +1431,11 @@
|
|
|
1431
1431
|
}
|
|
1432
1432
|
return tmp;
|
|
1433
1433
|
};
|
|
1434
|
-
protoOf(Descriptor).
|
|
1434
|
+
protoOf(Descriptor).i1v = function () {
|
|
1435
1435
|
var tmp$ret$0;
|
|
1436
1436
|
// Inline function 'kotlin.getValue' call
|
|
1437
1437
|
var tmp0_getValue = defaultValueSet$factory();
|
|
1438
|
-
tmp$ret$0 = this.
|
|
1438
|
+
tmp$ret$0 = this.e1v_1.w();
|
|
1439
1439
|
return tmp$ret$0;
|
|
1440
1440
|
};
|
|
1441
1441
|
function ArgDescriptor(type, fullName, number, description, defaultValue, required, deprecatedWarning) {
|
|
@@ -1445,8 +1445,8 @@
|
|
|
1445
1445
|
required = required === VOID ? true : required;
|
|
1446
1446
|
deprecatedWarning = deprecatedWarning === VOID ? null : deprecatedWarning;
|
|
1447
1447
|
Descriptor.call(this, type, fullName, description, defaultValue, required, deprecatedWarning);
|
|
1448
|
-
this.
|
|
1449
|
-
var tmp0_safe_receiver = this.
|
|
1448
|
+
this.v1x_1 = number;
|
|
1449
|
+
var tmp0_safe_receiver = this.v1x_1;
|
|
1450
1450
|
if (tmp0_safe_receiver == null)
|
|
1451
1451
|
null;
|
|
1452
1452
|
else {
|
|
@@ -1461,13 +1461,13 @@
|
|
|
1461
1461
|
tmp$ret$0 = tmp;
|
|
1462
1462
|
}
|
|
1463
1463
|
}
|
|
1464
|
-
protoOf(ArgDescriptor).
|
|
1465
|
-
return 'argument ' + this.
|
|
1464
|
+
protoOf(ArgDescriptor).p1v = function () {
|
|
1465
|
+
return 'argument ' + this.z1u_1;
|
|
1466
1466
|
};
|
|
1467
|
-
protoOf(ArgDescriptor).
|
|
1467
|
+
protoOf(ArgDescriptor).l1x = function () {
|
|
1468
1468
|
var result = StringBuilder_init_$Create$();
|
|
1469
|
-
result.y5(' ' + this.
|
|
1470
|
-
var tmp0_safe_receiver = this.
|
|
1469
|
+
result.y5(' ' + this.z1u_1);
|
|
1470
|
+
var tmp0_safe_receiver = this.a1z(this.b1v_1);
|
|
1471
1471
|
if (tmp0_safe_receiver == null)
|
|
1472
1472
|
null;
|
|
1473
1473
|
else {
|
|
@@ -1479,7 +1479,7 @@
|
|
|
1479
1479
|
tmp$ret$0 = result.y5(tmp0_safe_receiver);
|
|
1480
1480
|
tmp$ret$1 = tmp$ret$0;
|
|
1481
1481
|
}
|
|
1482
|
-
var tmp1_safe_receiver = this.
|
|
1482
|
+
var tmp1_safe_receiver = this.a1v_1;
|
|
1483
1483
|
if (tmp1_safe_receiver == null)
|
|
1484
1484
|
null;
|
|
1485
1485
|
else {
|
|
@@ -1491,11 +1491,11 @@
|
|
|
1491
1491
|
tmp$ret$2 = result.y5(' -> ' + tmp1_safe_receiver);
|
|
1492
1492
|
tmp$ret$3 = tmp$ret$2;
|
|
1493
1493
|
}
|
|
1494
|
-
if (!this.
|
|
1494
|
+
if (!this.c1v_1) {
|
|
1495
1495
|
result.y5(' (optional)');
|
|
1496
1496
|
}
|
|
1497
|
-
result.y5(' ' + this.
|
|
1498
|
-
var tmp2_safe_receiver = this.
|
|
1497
|
+
result.y5(' ' + this.y1u_1.q1v());
|
|
1498
|
+
var tmp2_safe_receiver = this.d1v_1;
|
|
1499
1499
|
if (tmp2_safe_receiver == null)
|
|
1500
1500
|
null;
|
|
1501
1501
|
else {
|
|
@@ -1512,38 +1512,38 @@
|
|
|
1512
1512
|
};
|
|
1513
1513
|
function defaultValueSet$factory() {
|
|
1514
1514
|
return getPropertyCallableRef('defaultValueSet', 1, KProperty1, function (receiver) {
|
|
1515
|
-
return receiver.
|
|
1515
|
+
return receiver.i1v();
|
|
1516
1516
|
}, null);
|
|
1517
1517
|
}
|
|
1518
1518
|
function SingleOption(descriptor, owner) {
|
|
1519
1519
|
AbstractSingleOption.call(this, new ArgumentSingleValue(descriptor), owner);
|
|
1520
|
-
this.
|
|
1520
|
+
this.e1z(descriptor);
|
|
1521
1521
|
}
|
|
1522
1522
|
function default_0(_this__u8e3s4, value) {
|
|
1523
1523
|
var tmp$ret$2;
|
|
1524
1524
|
// Inline function 'kotlin.with' call
|
|
1525
1525
|
var tmp$ret$0;
|
|
1526
1526
|
// Inline function 'kotlinx.cli.cast' call
|
|
1527
|
-
var tmp0_cast = _this__u8e3s4.
|
|
1527
|
+
var tmp0_cast = _this__u8e3s4.t1v_1;
|
|
1528
1528
|
tmp$ret$0 = tmp0_cast instanceof ParsingValue ? tmp0_cast : THROW_CCE();
|
|
1529
|
-
var tmp = tmp$ret$0.
|
|
1529
|
+
var tmp = tmp$ret$0.f1v_1;
|
|
1530
1530
|
var tmp1_with = tmp instanceof OptionDescriptor ? tmp : THROW_CCE();
|
|
1531
1531
|
// Inline function 'kotlin.contracts.contract' call
|
|
1532
1532
|
var tmp$ret$1;
|
|
1533
1533
|
// Inline function 'kotlinx.cli.default.<anonymous>' call
|
|
1534
|
-
tmp$ret$1 = new SingleOption(new OptionDescriptor(tmp1_with.
|
|
1534
|
+
tmp$ret$1 = new SingleOption(new OptionDescriptor(tmp1_with.i1w_1, tmp1_with.j1w_1, tmp1_with.y1u_1, tmp1_with.z1u_1, tmp1_with.k1w_1, tmp1_with.a1v_1, value, tmp1_with.c1v_1, tmp1_with.l1w_1, tmp1_with.m1w_1, tmp1_with.d1v_1), _this__u8e3s4.u1v_1);
|
|
1535
1535
|
tmp$ret$2 = tmp$ret$1;
|
|
1536
1536
|
var newOption = tmp$ret$2;
|
|
1537
|
-
_this__u8e3s4.s1v_1
|
|
1537
|
+
_this__u8e3s4.u1v_1.s1v_1 = newOption;
|
|
1538
1538
|
return newOption;
|
|
1539
1539
|
}
|
|
1540
1540
|
function SingleNullableOption(descriptor, owner) {
|
|
1541
1541
|
AbstractSingleOption.call(this, new ArgumentSingleNullableValue(descriptor), owner);
|
|
1542
|
-
this.
|
|
1542
|
+
this.e1z(descriptor);
|
|
1543
1543
|
}
|
|
1544
1544
|
function MultipleOption(descriptor, owner) {
|
|
1545
1545
|
Option.call(this, new ArgumentMultipleValues(descriptor), owner);
|
|
1546
|
-
if (!descriptor.
|
|
1546
|
+
if (!descriptor.l1w_1 ? descriptor.m1w_1 == null : false) {
|
|
1547
1547
|
failAssertion("Option with multiple values can't be initialized with descriptor for single one.");
|
|
1548
1548
|
}
|
|
1549
1549
|
}
|
|
@@ -1552,24 +1552,24 @@
|
|
|
1552
1552
|
// Inline function 'kotlin.with' call
|
|
1553
1553
|
var tmp$ret$0;
|
|
1554
1554
|
// Inline function 'kotlinx.cli.cast' call
|
|
1555
|
-
var tmp0_cast = _this__u8e3s4.
|
|
1555
|
+
var tmp0_cast = _this__u8e3s4.t1v_1;
|
|
1556
1556
|
tmp$ret$0 = tmp0_cast instanceof ParsingValue ? tmp0_cast : THROW_CCE();
|
|
1557
|
-
var tmp = tmp$ret$0.
|
|
1557
|
+
var tmp = tmp$ret$0.f1v_1;
|
|
1558
1558
|
var tmp1_with = tmp instanceof OptionDescriptor ? tmp : THROW_CCE();
|
|
1559
1559
|
// Inline function 'kotlin.contracts.contract' call
|
|
1560
1560
|
var tmp$ret$1;
|
|
1561
1561
|
// Inline function 'kotlinx.cli.multiple.<anonymous>' call
|
|
1562
|
-
tmp$ret$1 = new MultipleOption(new OptionDescriptor(tmp1_with.
|
|
1562
|
+
tmp$ret$1 = new MultipleOption(new OptionDescriptor(tmp1_with.i1w_1, tmp1_with.j1w_1, tmp1_with.y1u_1, tmp1_with.z1u_1, tmp1_with.k1w_1, tmp1_with.a1v_1, listOfNotNull(tmp1_with.b1v_1), tmp1_with.c1v_1, true, tmp1_with.m1w_1, tmp1_with.d1v_1), _this__u8e3s4.u1v_1);
|
|
1563
1563
|
tmp$ret$2 = tmp$ret$1;
|
|
1564
1564
|
var newOption = tmp$ret$2;
|
|
1565
|
-
_this__u8e3s4.s1v_1
|
|
1565
|
+
_this__u8e3s4.u1v_1.s1v_1 = newOption;
|
|
1566
1566
|
return newOption;
|
|
1567
1567
|
}
|
|
1568
1568
|
function AbstractSingleOption(delegate, owner) {
|
|
1569
1569
|
Option.call(this, delegate, owner);
|
|
1570
1570
|
}
|
|
1571
|
-
protoOf(AbstractSingleOption).
|
|
1572
|
-
if (descriptor.
|
|
1571
|
+
protoOf(AbstractSingleOption).e1z = function (descriptor) {
|
|
1572
|
+
if (descriptor.l1w_1 ? true : !(descriptor.m1w_1 == null)) {
|
|
1573
1573
|
failAssertion("Option with single value can't be initialized with descriptor for multiple values.");
|
|
1574
1574
|
}
|
|
1575
1575
|
};
|
|
@@ -1581,9 +1581,9 @@
|
|
|
1581
1581
|
throw IllegalStateException_init_$Create$('Not implemented for JS!');
|
|
1582
1582
|
}
|
|
1583
1583
|
//region block: post-declaration
|
|
1584
|
-
protoOf(ArgumentSingleValue).
|
|
1585
|
-
protoOf(ArgumentSingleNullableValue).
|
|
1586
|
-
protoOf(ArgumentMultipleValues).
|
|
1584
|
+
protoOf(ArgumentSingleValue).m1x = getValue;
|
|
1585
|
+
protoOf(ArgumentSingleNullableValue).m1x = getValue;
|
|
1586
|
+
protoOf(ArgumentMultipleValues).m1x = getValue;
|
|
1587
1587
|
//endregion
|
|
1588
1588
|
//region block: exports
|
|
1589
1589
|
_.$_$ = _.$_$ || {};
|