@flock/wirespec 0.8.37 → 0.8.38
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 → Kotlinx-Cli-Library-kotlinx-cli.js} +427 -379
- package/Kotlinx-Cli-Library-kotlinx-cli.js.map +1 -0
- package/arrow-arrow-atomic.js +15 -15
- package/arrow-arrow-continuations.js +3 -3
- package/arrow-arrow-core.js +86 -86
- package/kotlin-kotlin-stdlib-js-ir.js +1081 -1262
- package/kotlin-kotlin-stdlib-js-ir.js.map +1 -1
- package/kotlin-openapi-bindings.js +3627 -5777
- package/kotlin-openapi-bindings.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core-js-ir.js +1478 -2508
- package/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json-js-ir.js +1182 -2319
- package/kotlinx-serialization-kotlinx-serialization-json-js-ir.js.map +1 -1
- package/package.json +1 -1
- package/wirespec-src-compiler-cli.js +656 -450
- package/wirespec-src-compiler-cli.js.map +1 -1
- package/wirespec-src-compiler-core.js +1450 -1782
- package/wirespec-src-compiler-core.js.map +1 -1
- package/wirespec-src-compiler-lib.js +251 -251
- package/wirespec-src-compiler-lib.js.map +1 -1
- package/wirespec-src-openapi.js +502 -502
- package/wirespec-src-openapi.js.map +1 -1
- package/Kotlinx-Cli-Library-kotlinx-cli-js-ir.js.map +0 -1
|
@@ -5,72 +5,72 @@
|
|
|
5
5
|
factory(module.exports, require('./kotlin-kotlin-stdlib-js-ir.js'));
|
|
6
6
|
else {
|
|
7
7
|
if (typeof this['kotlin-kotlin-stdlib-js-ir'] === 'undefined') {
|
|
8
|
-
throw new Error("Error loading module 'Kotlinx-Cli-Library-kotlinx-cli
|
|
8
|
+
throw new Error("Error loading module 'Kotlinx-Cli-Library-kotlinx-cli'. Its dependency 'kotlin-kotlin-stdlib-js-ir' was not found. Please, check whether 'kotlin-kotlin-stdlib-js-ir' is loaded prior to 'Kotlinx-Cli-Library-kotlinx-cli'.");
|
|
9
9
|
}
|
|
10
|
-
root['Kotlinx-Cli-Library-kotlinx-cli
|
|
10
|
+
root['Kotlinx-Cli-Library-kotlinx-cli'] = factory(typeof this['Kotlinx-Cli-Library-kotlinx-cli'] === 'undefined' ? {} : this['Kotlinx-Cli-Library-kotlinx-cli'], this['kotlin-kotlin-stdlib-js-ir']);
|
|
11
11
|
}
|
|
12
12
|
}(this, function (_, kotlin_kotlin) {
|
|
13
13
|
'use strict';
|
|
14
14
|
//region block: imports
|
|
15
|
-
var Unit_getInstance = kotlin_kotlin.$_$.
|
|
16
|
-
var Enum = kotlin_kotlin.$_$.
|
|
17
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
18
|
-
var classMeta = kotlin_kotlin.$_$.
|
|
19
|
-
var VOID = kotlin_kotlin.$_$.
|
|
20
|
-
var setMetadataFor = kotlin_kotlin.$_$.
|
|
21
|
-
var toString = kotlin_kotlin.$_$.
|
|
22
|
-
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.
|
|
23
|
-
var throwKotlinNothingValueException = kotlin_kotlin.$_$.
|
|
24
|
-
var ensureNotNull = kotlin_kotlin.$_$.
|
|
25
|
-
var startsWith = kotlin_kotlin.$_$.
|
|
26
|
-
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.
|
|
27
|
-
var charArrayOf = kotlin_kotlin.$_$.
|
|
28
|
-
var split = kotlin_kotlin.$_$.
|
|
29
|
-
var charSequenceLength = kotlin_kotlin.$_$.
|
|
30
|
-
var charSequenceGet = kotlin_kotlin.$_$.
|
|
31
|
-
var Char = kotlin_kotlin.$_$.
|
|
32
|
-
var println = kotlin_kotlin.$_$.
|
|
15
|
+
var Unit_getInstance = kotlin_kotlin.$_$.h3;
|
|
16
|
+
var Enum = kotlin_kotlin.$_$.z9;
|
|
17
|
+
var protoOf = kotlin_kotlin.$_$.v7;
|
|
18
|
+
var classMeta = kotlin_kotlin.$_$.t6;
|
|
19
|
+
var VOID = kotlin_kotlin.$_$.ib;
|
|
20
|
+
var setMetadataFor = kotlin_kotlin.$_$.w7;
|
|
21
|
+
var toString = kotlin_kotlin.$_$.a8;
|
|
22
|
+
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.e1;
|
|
23
|
+
var throwKotlinNothingValueException = kotlin_kotlin.$_$.fb;
|
|
24
|
+
var ensureNotNull = kotlin_kotlin.$_$.xa;
|
|
25
|
+
var startsWith = kotlin_kotlin.$_$.g9;
|
|
26
|
+
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.h1;
|
|
27
|
+
var charArrayOf = kotlin_kotlin.$_$.o6;
|
|
28
|
+
var split = kotlin_kotlin.$_$.e9;
|
|
29
|
+
var charSequenceLength = kotlin_kotlin.$_$.r6;
|
|
30
|
+
var charSequenceGet = kotlin_kotlin.$_$.q6;
|
|
31
|
+
var Char = kotlin_kotlin.$_$.w9;
|
|
32
|
+
var println = kotlin_kotlin.$_$.k6;
|
|
33
33
|
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.p;
|
|
34
34
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.g;
|
|
35
|
-
var mutableListOf = kotlin_kotlin.$_$.
|
|
36
|
-
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.
|
|
37
|
-
var
|
|
38
|
-
var
|
|
39
|
-
var
|
|
40
|
-
var
|
|
41
|
-
var
|
|
35
|
+
var mutableListOf = kotlin_kotlin.$_$.o5;
|
|
36
|
+
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.b1;
|
|
37
|
+
var THROW_CCE = kotlin_kotlin.$_$.ia;
|
|
38
|
+
var Map = kotlin_kotlin.$_$.t3;
|
|
39
|
+
var isInterface = kotlin_kotlin.$_$.k7;
|
|
40
|
+
var checkIndexOverflow = kotlin_kotlin.$_$.a4;
|
|
41
|
+
var listOf = kotlin_kotlin.$_$.k5;
|
|
42
|
+
var asList = kotlin_kotlin.$_$.z3;
|
|
43
|
+
var listOf_0 = kotlin_kotlin.$_$.l5;
|
|
42
44
|
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.f;
|
|
43
|
-
var
|
|
44
|
-
var
|
|
45
|
-
var
|
|
46
|
-
var
|
|
47
|
-
var
|
|
48
|
-
var
|
|
49
|
-
var
|
|
50
|
-
var
|
|
51
|
-
var
|
|
52
|
-
var
|
|
53
|
-
var
|
|
54
|
-
var
|
|
55
|
-
var
|
|
56
|
-
var
|
|
57
|
-
var
|
|
58
|
-
var
|
|
59
|
-
var mapCapacity = kotlin_kotlin.$_$.y5;
|
|
60
|
-
var coerceAtLeast = kotlin_kotlin.$_$.q8;
|
|
45
|
+
var startsWith_0 = kotlin_kotlin.$_$.h9;
|
|
46
|
+
var union = kotlin_kotlin.$_$.e6;
|
|
47
|
+
var listOfNotNull = kotlin_kotlin.$_$.j5;
|
|
48
|
+
var plus = kotlin_kotlin.$_$.r5;
|
|
49
|
+
var until = kotlin_kotlin.$_$.e8;
|
|
50
|
+
var slice = kotlin_kotlin.$_$.w5;
|
|
51
|
+
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.w;
|
|
52
|
+
var joinToString = kotlin_kotlin.$_$.d5;
|
|
53
|
+
var interfaceMeta = kotlin_kotlin.$_$.b7;
|
|
54
|
+
var collectionSizeOrDefault = kotlin_kotlin.$_$.b4;
|
|
55
|
+
var to = kotlin_kotlin.$_$.hb;
|
|
56
|
+
var copyToArray = kotlin_kotlin.$_$.n4;
|
|
57
|
+
var linkedMapOf = kotlin_kotlin.$_$.i5;
|
|
58
|
+
var objectMeta = kotlin_kotlin.$_$.u7;
|
|
59
|
+
var mapCapacity = kotlin_kotlin.$_$.m5;
|
|
60
|
+
var coerceAtLeast = kotlin_kotlin.$_$.b8;
|
|
61
61
|
var LinkedHashMap_init_$Create$_0 = kotlin_kotlin.$_$.o;
|
|
62
|
-
var Exception = kotlin_kotlin.$_$.
|
|
63
|
-
var Exception_init_$Init$ = kotlin_kotlin.$_$.
|
|
64
|
-
var captureStack = kotlin_kotlin.$_$.
|
|
65
|
-
var throwUninitializedPropertyAccessException = kotlin_kotlin.$_$.
|
|
66
|
-
var split_0 = kotlin_kotlin.$_$.
|
|
67
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
68
|
-
var equals = kotlin_kotlin.$_$.
|
|
69
|
-
var AssertionError_init_$Create$ = kotlin_kotlin.$_$.
|
|
70
|
-
var List = kotlin_kotlin.$_$.
|
|
71
|
-
var lazy = kotlin_kotlin.$_$.
|
|
72
|
-
var KProperty1 = kotlin_kotlin.$_$.
|
|
73
|
-
var getPropertyCallableRef = kotlin_kotlin.$_$.
|
|
62
|
+
var Exception = kotlin_kotlin.$_$.aa;
|
|
63
|
+
var Exception_init_$Init$ = kotlin_kotlin.$_$.y;
|
|
64
|
+
var captureStack = kotlin_kotlin.$_$.n6;
|
|
65
|
+
var throwUninitializedPropertyAccessException = kotlin_kotlin.$_$.gb;
|
|
66
|
+
var split_0 = kotlin_kotlin.$_$.f9;
|
|
67
|
+
var hashCode = kotlin_kotlin.$_$.a7;
|
|
68
|
+
var equals = kotlin_kotlin.$_$.v6;
|
|
69
|
+
var AssertionError_init_$Create$ = kotlin_kotlin.$_$.x;
|
|
70
|
+
var List = kotlin_kotlin.$_$.r3;
|
|
71
|
+
var lazy = kotlin_kotlin.$_$.cb;
|
|
72
|
+
var KProperty1 = kotlin_kotlin.$_$.g8;
|
|
73
|
+
var getPropertyCallableRef = kotlin_kotlin.$_$.y6;
|
|
74
74
|
//endregion
|
|
75
75
|
//region block: pre-declaration
|
|
76
76
|
setMetadataFor(ValueOrigin, 'ValueOrigin', classMeta, Enum);
|
|
@@ -80,6 +80,7 @@
|
|
|
80
80
|
return this.w();
|
|
81
81
|
}
|
|
82
82
|
setMetadataFor(ArgumentValueDelegate, 'ArgumentValueDelegate', interfaceMeta);
|
|
83
|
+
setMetadataFor(Subcommand, 'Subcommand', classMeta, ArgParser);
|
|
83
84
|
setMetadataFor(ArgParserResult, 'ArgParserResult', classMeta);
|
|
84
85
|
setMetadataFor(ArgumentsQueue, 'ArgumentsQueue', classMeta);
|
|
85
86
|
setMetadataFor(ArgType, 'ArgType', classMeta);
|
|
@@ -90,8 +91,8 @@
|
|
|
90
91
|
setMetadataFor(ParsingException, 'ParsingException', classMeta, Exception);
|
|
91
92
|
setMetadataFor(ParsingValue, 'ParsingValue', classMeta);
|
|
92
93
|
setMetadataFor(AbstractArgumentSingleValue, 'AbstractArgumentSingleValue', classMeta, ParsingValue);
|
|
93
|
-
setMetadataFor(ArgumentSingleValue, 'ArgumentSingleValue', classMeta, AbstractArgumentSingleValue, [AbstractArgumentSingleValue, ArgumentValueDelegate]);
|
|
94
94
|
setMetadataFor(ArgumentSingleNullableValue, 'ArgumentSingleNullableValue', classMeta, AbstractArgumentSingleValue, [AbstractArgumentSingleValue, ArgumentValueDelegate]);
|
|
95
|
+
setMetadataFor(ArgumentSingleValue, 'ArgumentSingleValue', classMeta, AbstractArgumentSingleValue, [AbstractArgumentSingleValue, ArgumentValueDelegate]);
|
|
95
96
|
setMetadataFor(ArgumentMultipleValues, 'ArgumentMultipleValues', classMeta, ParsingValue, [ParsingValue, ArgumentValueDelegate]);
|
|
96
97
|
setMetadataFor(CLIEntity, 'CLIEntity', classMeta);
|
|
97
98
|
setMetadataFor(Argument, 'Argument', classMeta, CLIEntity);
|
|
@@ -104,8 +105,8 @@
|
|
|
104
105
|
setMetadataFor(ArgDescriptor, 'ArgDescriptor', classMeta, Descriptor);
|
|
105
106
|
setMetadataFor(Option, 'Option', classMeta, CLIEntity);
|
|
106
107
|
setMetadataFor(AbstractSingleOption, 'AbstractSingleOption', classMeta, Option);
|
|
107
|
-
setMetadataFor(SingleOption, 'SingleOption', classMeta, AbstractSingleOption);
|
|
108
108
|
setMetadataFor(SingleNullableOption, 'SingleNullableOption', classMeta, AbstractSingleOption);
|
|
109
|
+
setMetadataFor(SingleOption, 'SingleOption', classMeta, AbstractSingleOption);
|
|
109
110
|
setMetadataFor(MultipleOption, 'MultipleOption', classMeta, Option);
|
|
110
111
|
//endregion
|
|
111
112
|
var ValueOrigin_SET_BY_USER_instance;
|
|
@@ -146,7 +147,7 @@
|
|
|
146
147
|
var previousArgument = null;
|
|
147
148
|
// Inline function 'kotlin.collections.forEach' call
|
|
148
149
|
// Inline function 'kotlin.collections.iterator' call
|
|
149
|
-
var tmp0_iterator = $this.
|
|
150
|
+
var tmp0_iterator = $this.y1w_1.u().c();
|
|
150
151
|
while (tmp0_iterator.d()) {
|
|
151
152
|
var element = tmp0_iterator.e();
|
|
152
153
|
// Inline function 'kotlinx.cli.ArgParser.inspectRequiredAndDefaultUsage.<anonymous>' call
|
|
@@ -158,18 +159,18 @@
|
|
|
158
159
|
else {
|
|
159
160
|
// Inline function 'kotlin.let' call
|
|
160
161
|
// Inline function 'kotlin.contracts.contract' call
|
|
161
|
-
if (tmp0_safe_receiver.
|
|
162
|
-
if (!currentArgument.
|
|
162
|
+
if (tmp0_safe_receiver.t1x_1.w1x()) {
|
|
163
|
+
if (!currentArgument.t1x_1.w1x() ? currentArgument.t1x_1.q1x_1 : false) {
|
|
163
164
|
// Inline function 'kotlin.error' call
|
|
164
|
-
var tmp0_error = 'Default value of argument ' + tmp0_safe_receiver.
|
|
165
|
+
var tmp0_error = 'Default value of argument ' + tmp0_safe_receiver.t1x_1.n1x_1 + ' will be unused, ' + ('because next argument ' + currentArgument.t1x_1.n1x_1 + ' is always required and has no default value.');
|
|
165
166
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
166
167
|
}
|
|
167
168
|
}
|
|
168
169
|
var tmp;
|
|
169
|
-
if (!tmp0_safe_receiver.
|
|
170
|
+
if (!tmp0_safe_receiver.t1x_1.q1x_1) {
|
|
170
171
|
var tmp_0;
|
|
171
|
-
if (!currentArgument.
|
|
172
|
-
var tmp1_error = 'Argument ' + tmp0_safe_receiver.
|
|
172
|
+
if (!currentArgument.t1x_1.w1x() ? currentArgument.t1x_1.q1x_1 : false) {
|
|
173
|
+
var tmp1_error = 'Argument ' + tmp0_safe_receiver.t1x_1.n1x_1 + ' will be always required, ' + ('because next argument ' + currentArgument.t1x_1.n1x_1 + ' is always required.');
|
|
173
174
|
throw IllegalStateException_init_$Create$(toString(tmp1_error));
|
|
174
175
|
}
|
|
175
176
|
tmp = tmp_0;
|
|
@@ -179,18 +180,18 @@
|
|
|
179
180
|
}
|
|
180
181
|
}
|
|
181
182
|
function printError($this, message) {
|
|
182
|
-
$this.
|
|
183
|
+
$this.l1x_1(message + '\n' + $this.x1x(), 127);
|
|
183
184
|
throwKotlinNothingValueException();
|
|
184
185
|
}
|
|
185
186
|
function saveAsArg($this, arg, argumentsQueue) {
|
|
186
|
-
var name = argumentsQueue.
|
|
187
|
+
var name = argumentsQueue.z1x();
|
|
187
188
|
if (name == null)
|
|
188
189
|
null;
|
|
189
190
|
else {
|
|
190
191
|
// Inline function 'kotlin.let' call
|
|
191
192
|
// Inline function 'kotlin.contracts.contract' call
|
|
192
|
-
var argumentValue = ensureNotNull($this.
|
|
193
|
-
var tmp0_safe_receiver = argumentValue.
|
|
193
|
+
var argumentValue = ensureNotNull($this.y1w_1.o2(name));
|
|
194
|
+
var tmp0_safe_receiver = argumentValue.t1x_1.r1x_1;
|
|
194
195
|
if (tmp0_safe_receiver == null)
|
|
195
196
|
null;
|
|
196
197
|
else {
|
|
@@ -198,7 +199,7 @@
|
|
|
198
199
|
// Inline function 'kotlin.contracts.contract' call
|
|
199
200
|
printWarning(tmp0_safe_receiver);
|
|
200
201
|
}
|
|
201
|
-
argumentValue.
|
|
202
|
+
argumentValue.a1y(arg);
|
|
202
203
|
return true;
|
|
203
204
|
}
|
|
204
205
|
return false;
|
|
@@ -206,13 +207,13 @@
|
|
|
206
207
|
function treatAsArgument($this, arg, argumentsQueue) {
|
|
207
208
|
if (!saveAsArg($this, arg, argumentsQueue)) {
|
|
208
209
|
var tmp;
|
|
209
|
-
if ($this.
|
|
210
|
+
if ($this.k1x_1 == null) {
|
|
210
211
|
tmp = null;
|
|
211
212
|
} else {
|
|
212
213
|
// Inline function 'kotlin.let' call
|
|
213
214
|
// Inline function 'kotlin.contracts.contract' call
|
|
214
215
|
// Inline function 'kotlinx.cli.ArgParser.treatAsArgument.<anonymous>' call
|
|
215
|
-
tmp = ($this.
|
|
216
|
+
tmp = ($this.h1x_1 ? $this.j1x_1 : $this.i1x_1).a(arg);
|
|
216
217
|
}
|
|
217
218
|
if (tmp == null) {
|
|
218
219
|
printError($this, "Too many arguments! Couldn't process argument " + arg + '!');
|
|
@@ -220,37 +221,37 @@
|
|
|
220
221
|
}
|
|
221
222
|
}
|
|
222
223
|
function saveAsOption($this, parsingValue, value) {
|
|
223
|
-
parsingValue.
|
|
224
|
+
parsingValue.a1y(value);
|
|
224
225
|
}
|
|
225
226
|
function recognizeAndSaveOptionFullForm($this, candidate, argIterator) {
|
|
226
|
-
if ($this.
|
|
227
|
-
$this.
|
|
227
|
+
if ($this.u1w_1.equals(OptionPrefixStyle_GNU_getInstance()) ? candidate === $this.e1x_1 : false) {
|
|
228
|
+
$this.h1x_1 = false;
|
|
228
229
|
return false;
|
|
229
230
|
}
|
|
230
|
-
if (!startsWith(candidate, $this.
|
|
231
|
+
if (!startsWith(candidate, $this.e1x_1))
|
|
231
232
|
return false;
|
|
232
233
|
// Inline function 'kotlin.text.substring' call
|
|
233
|
-
var tmp0_substring = $this.
|
|
234
|
+
var tmp0_substring = $this.e1x_1.length;
|
|
234
235
|
// Inline function 'kotlin.js.asDynamic' call
|
|
235
236
|
var optionString = candidate.substring(tmp0_substring);
|
|
236
|
-
var argValue = $this.
|
|
237
|
+
var argValue = $this.u1w_1.equals(OptionPrefixStyle_GNU_getInstance()) ? null : $this.x1w_1.o2(optionString);
|
|
237
238
|
if (!(argValue == null)) {
|
|
238
239
|
saveStandardOptionForm($this, argValue, argIterator);
|
|
239
240
|
return true;
|
|
240
241
|
} 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.
|
|
242
|
+
if ($this.u1w_1.equals(OptionPrefixStyle_GNU_getInstance())) {
|
|
243
|
+
var tmp0_safe_receiver = $this.x1w_1.o2(optionString);
|
|
244
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.t1x_1;
|
|
245
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.m1x_1;
|
|
246
|
+
if ((tmp2_safe_receiver == null ? null : tmp2_safe_receiver.c1y_1) === false) {
|
|
247
|
+
$this.b1y(ensureNotNull($this.x1w_1.o2(optionString)));
|
|
247
248
|
return true;
|
|
248
249
|
}
|
|
249
250
|
var optionParts = split(optionString, charArrayOf([_Char___init__impl__6a9atx(61)]), VOID, 2);
|
|
250
251
|
if (!(optionParts.f() === 2))
|
|
251
252
|
return false;
|
|
252
|
-
if (!($this.
|
|
253
|
-
saveAsOption($this, ensureNotNull($this.
|
|
253
|
+
if (!($this.x1w_1.o2(optionParts.h(0)) == null)) {
|
|
254
|
+
saveAsOption($this, ensureNotNull($this.x1w_1.o2(optionParts.h(0))), optionParts.h(1));
|
|
254
255
|
return true;
|
|
255
256
|
}
|
|
256
257
|
}
|
|
@@ -258,29 +259,29 @@
|
|
|
258
259
|
return false;
|
|
259
260
|
}
|
|
260
261
|
function saveStandardOptionForm($this, argValue, argIterator) {
|
|
261
|
-
if (argValue.
|
|
262
|
+
if (argValue.t1x_1.m1x_1.c1y_1) {
|
|
262
263
|
if (argIterator.d()) {
|
|
263
264
|
saveAsOption($this, argValue, argIterator.e());
|
|
264
265
|
} else {
|
|
265
|
-
printError($this, 'No value for ' + argValue.
|
|
266
|
+
printError($this, 'No value for ' + argValue.t1x_1.d1y());
|
|
266
267
|
}
|
|
267
268
|
} else {
|
|
268
|
-
$this.
|
|
269
|
+
$this.b1y(argValue);
|
|
269
270
|
}
|
|
270
271
|
}
|
|
271
272
|
function recognizeAndSaveOptionShortForm($this, candidate, argIterator) {
|
|
272
|
-
if (!startsWith(candidate, $this.
|
|
273
|
+
if (!startsWith(candidate, $this.f1x_1) ? true : !($this.e1x_1 === $this.f1x_1) ? startsWith(candidate, $this.e1x_1) : false)
|
|
273
274
|
return false;
|
|
274
275
|
// Inline function 'kotlin.text.substring' call
|
|
275
|
-
var tmp0_substring = $this.
|
|
276
|
+
var tmp0_substring = $this.f1x_1.length;
|
|
276
277
|
// Inline function 'kotlin.js.asDynamic' call
|
|
277
278
|
var option = candidate.substring(tmp0_substring);
|
|
278
|
-
var argValue = $this.
|
|
279
|
+
var argValue = $this.d1x_1.o2(option);
|
|
279
280
|
if (!(argValue == null)) {
|
|
280
281
|
saveStandardOptionForm($this, argValue, argIterator);
|
|
281
282
|
} else {
|
|
282
283
|
var tmp;
|
|
283
|
-
if (!$this.
|
|
284
|
+
if (!$this.u1w_1.equals(OptionPrefixStyle_GNU_getInstance())) {
|
|
284
285
|
tmp = true;
|
|
285
286
|
} else {
|
|
286
287
|
// Inline function 'kotlin.text.isEmpty' call
|
|
@@ -288,7 +289,7 @@
|
|
|
288
289
|
}
|
|
289
290
|
if (tmp)
|
|
290
291
|
return false;
|
|
291
|
-
var tmp0_elvis_lhs = $this.
|
|
292
|
+
var tmp0_elvis_lhs = $this.d1x_1.o2('' + new Char(charSequenceGet(option, 0)));
|
|
292
293
|
var tmp_0;
|
|
293
294
|
if (tmp0_elvis_lhs == null) {
|
|
294
295
|
return false;
|
|
@@ -296,7 +297,7 @@
|
|
|
296
297
|
tmp_0 = tmp0_elvis_lhs;
|
|
297
298
|
}
|
|
298
299
|
var firstOption = tmp_0;
|
|
299
|
-
if (firstOption.
|
|
300
|
+
if (firstOption.t1x_1.m1x_1.c1y_1) {
|
|
300
301
|
var tmp$ret$4;
|
|
301
302
|
// Inline function 'kotlin.text.substring' call
|
|
302
303
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -306,13 +307,13 @@
|
|
|
306
307
|
// Inline function 'kotlin.text.substring' call
|
|
307
308
|
// Inline function 'kotlin.js.asDynamic' call
|
|
308
309
|
var otherBooleanOptions = option.substring(1);
|
|
309
|
-
$this.
|
|
310
|
+
$this.b1y(firstOption);
|
|
310
311
|
var inductionVariable = 0;
|
|
311
312
|
var last = otherBooleanOptions.length;
|
|
312
313
|
while (inductionVariable < last) {
|
|
313
314
|
var opt = charSequenceGet(otherBooleanOptions, inductionVariable);
|
|
314
315
|
inductionVariable = inductionVariable + 1 | 0;
|
|
315
|
-
var tmp2_safe_receiver = $this.
|
|
316
|
+
var tmp2_safe_receiver = $this.d1x_1.o2('' + new Char(opt));
|
|
316
317
|
var tmp_1;
|
|
317
318
|
if (tmp2_safe_receiver == null) {
|
|
318
319
|
tmp_1 = null;
|
|
@@ -320,15 +321,15 @@
|
|
|
320
321
|
// Inline function 'kotlin.let' call
|
|
321
322
|
// Inline function 'kotlin.contracts.contract' call
|
|
322
323
|
var tmp_2;
|
|
323
|
-
if (tmp2_safe_receiver.
|
|
324
|
-
printError($this, 'Option ' + $this.
|
|
324
|
+
if (tmp2_safe_receiver.t1x_1.m1x_1.c1y_1) {
|
|
325
|
+
printError($this, 'Option ' + $this.f1x_1 + new Char(opt) + " can't be used in option combination " + candidate + ', ' + ('because parameter value of type ' + tmp2_safe_receiver.t1x_1.m1x_1.e1y() + ' should be ') + 'provided for current option.');
|
|
325
326
|
}
|
|
326
327
|
tmp_1 = Unit_getInstance();
|
|
327
328
|
}
|
|
328
329
|
if (tmp_1 == null) {
|
|
329
|
-
printError($this, 'Unknown option ' + $this.
|
|
330
|
+
printError($this, 'Unknown option ' + $this.f1x_1 + new Char(opt) + ' in option combination ' + candidate + '.');
|
|
330
331
|
}
|
|
331
|
-
$this.
|
|
332
|
+
$this.b1y(ensureNotNull($this.d1x_1.o2('' + new Char(opt))));
|
|
332
333
|
}
|
|
333
334
|
}
|
|
334
335
|
}
|
|
@@ -371,46 +372,46 @@
|
|
|
371
372
|
prefixStyle = prefixStyle === VOID ? OptionPrefixStyle_LINUX_getInstance() : prefixStyle;
|
|
372
373
|
skipExtraArguments = skipExtraArguments === VOID ? false : skipExtraArguments;
|
|
373
374
|
strictSubcommandOptionsOrder = strictSubcommandOptionsOrder === VOID ? false : strictSubcommandOptionsOrder;
|
|
374
|
-
this.
|
|
375
|
-
this.
|
|
376
|
-
this.
|
|
377
|
-
this.
|
|
378
|
-
this.
|
|
375
|
+
this.s1w_1 = programName;
|
|
376
|
+
this.t1w_1 = useDefaultHelpShortName;
|
|
377
|
+
this.u1w_1 = prefixStyle;
|
|
378
|
+
this.v1w_1 = skipExtraArguments;
|
|
379
|
+
this.w1w_1 = strictSubcommandOptionsOrder;
|
|
379
380
|
var tmp = this;
|
|
380
381
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
381
|
-
tmp.
|
|
382
|
+
tmp.x1w_1 = LinkedHashMap_init_$Create$();
|
|
382
383
|
var tmp_0 = this;
|
|
383
384
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
384
|
-
tmp_0.
|
|
385
|
+
tmp_0.y1w_1 = LinkedHashMap_init_$Create$();
|
|
385
386
|
var tmp_1 = this;
|
|
386
387
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
387
|
-
tmp_1.
|
|
388
|
+
tmp_1.z1w_1 = ArrayList_init_$Create$();
|
|
388
389
|
var tmp_2 = this;
|
|
389
390
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
390
|
-
tmp_2.
|
|
391
|
-
this.
|
|
391
|
+
tmp_2.a1x_1 = ArrayList_init_$Create$();
|
|
392
|
+
this.b1x_1 = null;
|
|
392
393
|
var tmp_3 = this;
|
|
393
394
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
394
|
-
tmp_3.
|
|
395
|
+
tmp_3.c1x_1 = LinkedHashMap_init_$Create$();
|
|
395
396
|
var tmp_4 = this;
|
|
396
397
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
397
|
-
tmp_4.
|
|
398
|
-
this.
|
|
399
|
-
this.
|
|
400
|
-
this.
|
|
401
|
-
this.
|
|
398
|
+
tmp_4.d1x_1 = LinkedHashMap_init_$Create$();
|
|
399
|
+
this.e1x_1 = this.u1w_1.equals(OptionPrefixStyle_JVM_getInstance()) ? '-' : '--';
|
|
400
|
+
this.f1x_1 = '-';
|
|
401
|
+
this.g1x_1 = mutableListOf([this.s1w_1]);
|
|
402
|
+
this.h1x_1 = true;
|
|
402
403
|
var tmp_5 = this;
|
|
403
404
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
404
|
-
tmp_5.
|
|
405
|
+
tmp_5.i1x_1 = ArrayList_init_$Create$();
|
|
405
406
|
var tmp_6 = this;
|
|
406
407
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
407
|
-
tmp_6.
|
|
408
|
-
this.
|
|
408
|
+
tmp_6.j1x_1 = ArrayList_init_$Create$();
|
|
409
|
+
this.k1x_1 = null;
|
|
409
410
|
var tmp_7 = this;
|
|
410
|
-
tmp_7.
|
|
411
|
+
tmp_7.l1x_1 = ArgParser$outputAndTerminate$lambda;
|
|
411
412
|
}
|
|
412
|
-
protoOf(ArgParser).
|
|
413
|
-
if (this.
|
|
413
|
+
protoOf(ArgParser).f1y = function (type, fullName, shortName, description, deprecatedWarning) {
|
|
414
|
+
if (this.u1w_1.equals(OptionPrefixStyle_GNU_getInstance()) ? !(shortName == null) : false) {
|
|
414
415
|
// Inline function 'kotlin.require' call
|
|
415
416
|
// Inline function 'kotlin.contracts.contract' call
|
|
416
417
|
if (!(shortName.length === 1)) {
|
|
@@ -419,111 +420,149 @@
|
|
|
419
420
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
420
421
|
}
|
|
421
422
|
}
|
|
422
|
-
var option = new SingleNullableOption(new OptionDescriptor(this.
|
|
423
|
-
option.
|
|
424
|
-
this.
|
|
423
|
+
var option = new SingleNullableOption(new OptionDescriptor(this.e1x_1, this.f1x_1, type, fullName, shortName, description, VOID, VOID, VOID, VOID, deprecatedWarning), new CLIEntityWrapper());
|
|
424
|
+
option.i1y_1.g1y_1 = option;
|
|
425
|
+
this.z1w_1.a(option.i1y_1);
|
|
425
426
|
return option;
|
|
426
427
|
};
|
|
427
|
-
protoOf(ArgParser).
|
|
428
|
+
protoOf(ArgParser).k1y = function (type, fullName, shortName, description, deprecatedWarning, $super) {
|
|
428
429
|
fullName = fullName === VOID ? null : fullName;
|
|
429
430
|
shortName = shortName === VOID ? null : shortName;
|
|
430
431
|
description = description === VOID ? null : description;
|
|
431
432
|
deprecatedWarning = deprecatedWarning === VOID ? null : deprecatedWarning;
|
|
432
|
-
return $super === VOID ? this.
|
|
433
|
+
return $super === VOID ? this.f1y(type, fullName, shortName, description, deprecatedWarning) : $super.f1y.call(this, type, fullName, shortName, description, deprecatedWarning);
|
|
433
434
|
};
|
|
434
|
-
protoOf(ArgParser).
|
|
435
|
+
protoOf(ArgParser).l1y = function (type, fullName, description, deprecatedWarning) {
|
|
435
436
|
var argument = new SingleArgument(new ArgDescriptor(type, fullName, 1, description, VOID, VOID, deprecatedWarning), new CLIEntityWrapper());
|
|
436
|
-
argument.
|
|
437
|
-
this.
|
|
437
|
+
argument.i1y_1.g1y_1 = argument;
|
|
438
|
+
this.a1x_1.a(argument.i1y_1);
|
|
438
439
|
return argument;
|
|
439
440
|
};
|
|
440
|
-
protoOf(ArgParser).
|
|
441
|
+
protoOf(ArgParser).m1y = function (type, fullName, description, deprecatedWarning, $super) {
|
|
441
442
|
fullName = fullName === VOID ? null : fullName;
|
|
442
443
|
description = description === VOID ? null : description;
|
|
443
444
|
deprecatedWarning = deprecatedWarning === VOID ? null : deprecatedWarning;
|
|
444
|
-
return $super === VOID ? this.
|
|
445
|
+
return $super === VOID ? this.l1y(type, fullName, description, deprecatedWarning) : $super.l1y.call(this, type, fullName, description, deprecatedWarning);
|
|
445
446
|
};
|
|
446
|
-
protoOf(ArgParser).
|
|
447
|
-
|
|
448
|
-
|
|
447
|
+
protoOf(ArgParser).n1y = function (subcommandsList) {
|
|
448
|
+
// Inline function 'kotlin.collections.forEach' call
|
|
449
|
+
var inductionVariable = 0;
|
|
450
|
+
var last = subcommandsList.length;
|
|
451
|
+
while (inductionVariable < last) {
|
|
452
|
+
var element = subcommandsList[inductionVariable];
|
|
453
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
454
|
+
// Inline function 'kotlinx.cli.ArgParser.subcommands.<anonymous>' call
|
|
455
|
+
// Inline function 'kotlin.collections.contains' call
|
|
456
|
+
var tmp0_contains = this.c1x_1;
|
|
457
|
+
var tmp1_contains = element.i1z_1;
|
|
458
|
+
// Inline function 'kotlin.collections.containsKey' call
|
|
459
|
+
if ((isInterface(tmp0_contains, Map) ? tmp0_contains : THROW_CCE()).k2(tmp1_contains)) {
|
|
460
|
+
// Inline function 'kotlin.error' call
|
|
461
|
+
var tmp2_error = 'Subcommand with name ' + element.i1z_1 + ' was already defined.';
|
|
462
|
+
throw IllegalStateException_init_$Create$(toString(tmp2_error));
|
|
463
|
+
}
|
|
464
|
+
element.u1w_1 = this.u1w_1;
|
|
465
|
+
element.t1w_1 = this.t1w_1;
|
|
466
|
+
element.w1w_1 = this.w1w_1;
|
|
467
|
+
// Inline function 'kotlin.collections.forEachIndexed' call
|
|
468
|
+
var index = 0;
|
|
469
|
+
var tmp0_iterator = this.g1x_1.c();
|
|
470
|
+
while (tmp0_iterator.d()) {
|
|
471
|
+
var item = tmp0_iterator.e();
|
|
472
|
+
// Inline function 'kotlinx.cli.ArgParser.subcommands.<anonymous>.<anonymous>' call
|
|
473
|
+
var tmp1 = index;
|
|
474
|
+
index = tmp1 + 1 | 0;
|
|
475
|
+
var tmp4_anonymous = checkIndexOverflow(tmp1);
|
|
476
|
+
element.g1x_1.v9(tmp4_anonymous, item);
|
|
477
|
+
}
|
|
478
|
+
element.l1x_1 = this.l1x_1;
|
|
479
|
+
// Inline function 'kotlin.collections.set' call
|
|
480
|
+
var tmp5_set = this.c1x_1;
|
|
481
|
+
var tmp6_set = element.i1z_1;
|
|
482
|
+
tmp5_set.m3(tmp6_set, element);
|
|
483
|
+
}
|
|
484
|
+
};
|
|
485
|
+
protoOf(ArgParser).b1y = function (argValue) {
|
|
486
|
+
if (argValue.t1x_1.n1x_1 === 'help') {
|
|
487
|
+
var tmp0_safe_receiver = this.k1x_1;
|
|
449
488
|
if (tmp0_safe_receiver == null)
|
|
450
489
|
null;
|
|
451
490
|
else {
|
|
452
491
|
// Inline function 'kotlin.let' call
|
|
453
492
|
// Inline function 'kotlin.contracts.contract' call
|
|
454
493
|
// Inline function 'kotlinx.cli.ArgParser.saveOptionWithoutParameter.<anonymous>' call
|
|
455
|
-
tmp0_safe_receiver.
|
|
494
|
+
tmp0_safe_receiver.k1z(listOf(tmp0_safe_receiver.e1x_1 + argValue.t1x_1.n1x_1));
|
|
456
495
|
}
|
|
457
|
-
this.
|
|
496
|
+
this.l1x_1(this.x1x(), 0);
|
|
458
497
|
throwKotlinNothingValueException();
|
|
459
498
|
}
|
|
460
499
|
saveAsOption(this, argValue, 'true');
|
|
461
500
|
};
|
|
462
|
-
protoOf(ArgParser).
|
|
463
|
-
return this.
|
|
501
|
+
protoOf(ArgParser).l1z = function (args) {
|
|
502
|
+
return this.k1z(asList(args));
|
|
464
503
|
};
|
|
465
|
-
protoOf(ArgParser).
|
|
504
|
+
protoOf(ArgParser).k1z = function (args) {
|
|
466
505
|
// Inline function 'kotlin.check' call
|
|
467
506
|
// Inline function 'kotlin.contracts.contract' call
|
|
468
|
-
if (!(this.
|
|
507
|
+
if (!(this.b1x_1 == null)) {
|
|
469
508
|
// Inline function 'kotlinx.cli.ArgParser.parse.<anonymous>' call
|
|
470
509
|
var message = 'Parsing of command line options can be called only once.';
|
|
471
510
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
472
511
|
}
|
|
473
|
-
var helpDescriptor = this.
|
|
512
|
+
var helpDescriptor = this.t1w_1 ? new OptionDescriptor(this.e1x_1, this.f1x_1, Boolean_getInstance(), 'help', 'h', 'Usage info') : new OptionDescriptor(this.e1x_1, this.f1x_1, Boolean_getInstance(), 'help', VOID, 'Usage info');
|
|
474
513
|
var helpOption = new SingleNullableOption(helpDescriptor, new CLIEntityWrapper());
|
|
475
|
-
helpOption.
|
|
476
|
-
this.
|
|
477
|
-
if (this.
|
|
478
|
-
vararg(this.
|
|
514
|
+
helpOption.i1y_1.g1y_1 = helpOption;
|
|
515
|
+
this.z1w_1.a(helpOption.i1y_1);
|
|
516
|
+
if (this.v1w_1) {
|
|
517
|
+
vararg(this.m1y(String_getInstance(), ''));
|
|
479
518
|
}
|
|
480
|
-
this.
|
|
481
|
-
this.
|
|
519
|
+
this.x1w_1.h9();
|
|
520
|
+
this.y1w_1.h9();
|
|
482
521
|
// Inline function 'kotlin.collections.forEachIndexed' call
|
|
483
522
|
var index = 0;
|
|
484
|
-
var tmp0_iterator = this.
|
|
523
|
+
var tmp0_iterator = this.z1w_1.c();
|
|
485
524
|
while (tmp0_iterator.d()) {
|
|
486
525
|
var item = tmp0_iterator.e();
|
|
487
526
|
// Inline function 'kotlinx.cli.ArgParser.parse.<anonymous>' call
|
|
488
527
|
var tmp1 = index;
|
|
489
528
|
index = tmp1 + 1 | 0;
|
|
490
529
|
var tmp2_anonymous = checkIndexOverflow(tmp1);
|
|
491
|
-
var tmp0_safe_receiver = item.
|
|
492
|
-
var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
530
|
+
var tmp0_safe_receiver = item.g1y_1;
|
|
531
|
+
var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.h1y_1;
|
|
493
532
|
var value = tmp instanceof ParsingValue ? tmp : THROW_CCE();
|
|
494
|
-
var tmp1_safe_receiver = value.
|
|
533
|
+
var tmp1_safe_receiver = value.t1x_1.n1x_1;
|
|
495
534
|
var tmp_0;
|
|
496
535
|
if (tmp1_safe_receiver == null) {
|
|
497
536
|
tmp_0 = null;
|
|
498
537
|
} else {
|
|
499
538
|
// Inline function 'kotlin.let' call
|
|
500
539
|
// Inline function 'kotlin.contracts.contract' call
|
|
501
|
-
if (this.
|
|
540
|
+
if (this.x1w_1.k2(tmp1_safe_receiver)) {
|
|
502
541
|
// Inline function 'kotlin.error' call
|
|
503
542
|
var tmp0_error = 'Option with full name ' + tmp1_safe_receiver + ' was already added.';
|
|
504
543
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
505
544
|
}
|
|
506
545
|
// Inline function 'kotlin.with' call
|
|
507
|
-
var tmp_1 = value.
|
|
546
|
+
var tmp_1 = value.t1x_1;
|
|
508
547
|
var tmp1_with = tmp_1 instanceof OptionDescriptor ? tmp_1 : THROW_CCE();
|
|
509
548
|
// Inline function 'kotlin.contracts.contract' call
|
|
510
549
|
// Inline function 'kotlinx.cli.ArgParser.parse.<anonymous>.<anonymous>.<anonymous>' call
|
|
511
|
-
if (!(tmp1_with.
|
|
550
|
+
if (!(tmp1_with.v1z_1 == null) ? this.d1x_1.k2(tmp1_with.v1z_1) : false) {
|
|
512
551
|
// Inline function 'kotlin.error' call
|
|
513
|
-
var tmp0_error_0 = 'Option with short name ' + tmp1_with.
|
|
552
|
+
var tmp0_error_0 = 'Option with short name ' + tmp1_with.v1z_1 + ' was already added.';
|
|
514
553
|
throw IllegalStateException_init_$Create$(toString(tmp0_error_0));
|
|
515
554
|
}
|
|
516
|
-
var tmp0_safe_receiver_0 = tmp1_with.
|
|
555
|
+
var tmp0_safe_receiver_0 = tmp1_with.v1z_1;
|
|
517
556
|
var tmp_2;
|
|
518
557
|
if (tmp0_safe_receiver_0 == null) {
|
|
519
558
|
tmp_2 = null;
|
|
520
559
|
} else {
|
|
521
560
|
// Inline function 'kotlin.let' call
|
|
522
561
|
// Inline function 'kotlin.contracts.contract' call
|
|
523
|
-
this.
|
|
562
|
+
this.d1x_1.m3(tmp0_safe_receiver_0, value);
|
|
524
563
|
tmp_2 = Unit_getInstance();
|
|
525
564
|
}
|
|
526
|
-
this.
|
|
565
|
+
this.x1w_1.m3(tmp1_safe_receiver, value);
|
|
527
566
|
tmp_0 = Unit_getInstance();
|
|
528
567
|
}
|
|
529
568
|
if (tmp_0 == null) {
|
|
@@ -534,29 +573,29 @@
|
|
|
534
573
|
}
|
|
535
574
|
// Inline function 'kotlin.collections.forEachIndexed' call
|
|
536
575
|
var index_0 = 0;
|
|
537
|
-
var tmp0_iterator_0 = this.
|
|
576
|
+
var tmp0_iterator_0 = this.a1x_1.c();
|
|
538
577
|
while (tmp0_iterator_0.d()) {
|
|
539
578
|
var item_0 = tmp0_iterator_0.e();
|
|
540
579
|
// Inline function 'kotlinx.cli.ArgParser.parse.<anonymous>' call
|
|
541
580
|
var tmp1_0 = index_0;
|
|
542
581
|
index_0 = tmp1_0 + 1 | 0;
|
|
543
582
|
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.
|
|
583
|
+
var tmp0_safe_receiver_1 = item_0.g1y_1;
|
|
584
|
+
var tmp_3 = tmp0_safe_receiver_1 == null ? null : tmp0_safe_receiver_1.h1y_1;
|
|
546
585
|
var value_0 = tmp_3 instanceof ParsingValue ? tmp_3 : THROW_CCE();
|
|
547
|
-
var tmp1_safe_receiver_0 = value_0.
|
|
586
|
+
var tmp1_safe_receiver_0 = value_0.t1x_1.n1x_1;
|
|
548
587
|
var tmp_4;
|
|
549
588
|
if (tmp1_safe_receiver_0 == null) {
|
|
550
589
|
tmp_4 = null;
|
|
551
590
|
} else {
|
|
552
591
|
// Inline function 'kotlin.let' call
|
|
553
592
|
// Inline function 'kotlin.contracts.contract' call
|
|
554
|
-
if (this.
|
|
593
|
+
if (this.y1w_1.k2(tmp1_safe_receiver_0)) {
|
|
555
594
|
// Inline function 'kotlin.error' call
|
|
556
595
|
var tmp0_error_2 = 'Argument with full name ' + tmp1_safe_receiver_0 + ' was already added.';
|
|
557
596
|
throw IllegalStateException_init_$Create$(toString(tmp0_error_2));
|
|
558
597
|
}
|
|
559
|
-
this.
|
|
598
|
+
this.y1w_1.m3(tmp1_safe_receiver_0, value_0);
|
|
560
599
|
tmp_4 = Unit_getInstance();
|
|
561
600
|
}
|
|
562
601
|
if (tmp_4 == null) {
|
|
@@ -567,7 +606,7 @@
|
|
|
567
606
|
}
|
|
568
607
|
inspectRequiredAndDefaultUsage(this);
|
|
569
608
|
// Inline function 'kotlin.collections.forEach' call
|
|
570
|
-
var tmp0_iterator_1 = listOf_0([this.
|
|
609
|
+
var tmp0_iterator_1 = listOf_0([this.y1w_1, this.x1w_1]).c();
|
|
571
610
|
while (tmp0_iterator_1.d()) {
|
|
572
611
|
var element = tmp0_iterator_1.e();
|
|
573
612
|
// Inline function 'kotlinx.cli.ArgParser.parse.<anonymous>' call
|
|
@@ -579,11 +618,11 @@
|
|
|
579
618
|
// Inline function 'kotlinx.cli.ArgParser.parse.<anonymous>.<anonymous>' call
|
|
580
619
|
// Inline function 'kotlin.collections.component2' call
|
|
581
620
|
var value_1 = element_0.w();
|
|
582
|
-
value_1.
|
|
621
|
+
value_1.v1x_1 = ValueOrigin_UNSET_getInstance();
|
|
583
622
|
}
|
|
584
623
|
}
|
|
585
624
|
// Inline function 'kotlin.collections.map' call
|
|
586
|
-
var tmp6_map = this.
|
|
625
|
+
var tmp6_map = this.y1w_1;
|
|
587
626
|
// Inline function 'kotlin.collections.mapTo' call
|
|
588
627
|
var tmp0_mapTo = ArrayList_init_$Create$_0(tmp6_map.f());
|
|
589
628
|
// Inline function 'kotlin.collections.iterator' call
|
|
@@ -592,35 +631,35 @@
|
|
|
592
631
|
var item_1 = tmp0_iterator_3.e();
|
|
593
632
|
var tmp$ret$9;
|
|
594
633
|
// Inline function 'kotlinx.cli.ArgParser.parse.<anonymous>' call
|
|
595
|
-
var tmp_5 = item_1.w().
|
|
634
|
+
var tmp_5 = item_1.w().t1x_1;
|
|
596
635
|
tmp$ret$9 = tmp_5 instanceof ArgDescriptor ? tmp_5 : THROW_CCE();
|
|
597
636
|
tmp0_mapTo.a(tmp$ret$9);
|
|
598
637
|
}
|
|
599
638
|
var argumentsQueue = new ArgumentsQueue(tmp0_mapTo);
|
|
600
|
-
this.
|
|
601
|
-
this.
|
|
602
|
-
this.
|
|
639
|
+
this.k1x_1 = null;
|
|
640
|
+
this.j1x_1.h9();
|
|
641
|
+
this.i1x_1.h9();
|
|
603
642
|
var argIterator = args.r1();
|
|
604
643
|
try {
|
|
605
644
|
$l$loop: while (argIterator.d()) {
|
|
606
645
|
var arg = argIterator.e();
|
|
607
646
|
// Inline function 'kotlin.collections.contains' call
|
|
608
|
-
var tmp7_contains = this.
|
|
647
|
+
var tmp7_contains = this.c1x_1;
|
|
609
648
|
// Inline function 'kotlin.collections.containsKey' call
|
|
610
649
|
if (!(isInterface(tmp7_contains, Map) ? tmp7_contains : THROW_CCE()).k2(arg)) {
|
|
611
|
-
if (this.
|
|
650
|
+
if (this.h1x_1 ? startsWith_0(arg, _Char___init__impl__6a9atx(45)) : false) {
|
|
612
651
|
if (!(recognizeAndSaveOptionShortForm(this, arg, argIterator) ? true : recognizeAndSaveOptionFullForm(this, arg, argIterator))) {
|
|
613
|
-
if (!this.
|
|
652
|
+
if (!this.h1x_1) {
|
|
614
653
|
treatAsArgument(this, argIterator.e(), argumentsQueue);
|
|
615
654
|
} else {
|
|
616
655
|
var tmp_6;
|
|
617
|
-
if (this.
|
|
656
|
+
if (this.k1x_1 == null) {
|
|
618
657
|
tmp_6 = null;
|
|
619
658
|
} else {
|
|
620
659
|
// Inline function 'kotlin.let' call
|
|
621
660
|
// Inline function 'kotlin.contracts.contract' call
|
|
622
661
|
// Inline function 'kotlinx.cli.ArgParser.parse.<anonymous>' call
|
|
623
|
-
tmp_6 = this.
|
|
662
|
+
tmp_6 = this.j1x_1.a(arg);
|
|
624
663
|
}
|
|
625
664
|
if (tmp_6 == null) {
|
|
626
665
|
// Inline function 'kotlin.run' call
|
|
@@ -636,49 +675,49 @@
|
|
|
636
675
|
treatAsArgument(this, arg, argumentsQueue);
|
|
637
676
|
}
|
|
638
677
|
} else {
|
|
639
|
-
this.
|
|
640
|
-
if (this.
|
|
678
|
+
this.k1x_1 = this.c1x_1.o2(arg);
|
|
679
|
+
if (this.w1w_1) {
|
|
641
680
|
break $l$loop;
|
|
642
681
|
}
|
|
643
682
|
}
|
|
644
683
|
}
|
|
645
684
|
// Inline function 'kotlin.collections.forEach' call
|
|
646
|
-
var tmp0_iterator_4 = union(this.
|
|
685
|
+
var tmp0_iterator_4 = union(this.x1w_1.oa(), this.y1w_1.oa()).c();
|
|
647
686
|
while (tmp0_iterator_4.d()) {
|
|
648
687
|
var element_1 = tmp0_iterator_4.e();
|
|
649
688
|
// Inline function 'kotlinx.cli.ArgParser.parse.<anonymous>' call
|
|
650
689
|
if (element_1.g()) {
|
|
651
|
-
element_1.
|
|
690
|
+
element_1.y1z();
|
|
652
691
|
}
|
|
653
|
-
if (!element_1.
|
|
654
|
-
printError(this, 'Value for ' + element_1.
|
|
692
|
+
if (!element_1.v1x_1.equals(ValueOrigin_SET_BY_USER_getInstance()) ? element_1.t1x_1.q1x_1 : false) {
|
|
693
|
+
printError(this, 'Value for ' + element_1.t1x_1.d1y() + ' should be always provided in command line.');
|
|
655
694
|
}
|
|
656
695
|
}
|
|
657
|
-
var tmp2_safe_receiver = this.
|
|
696
|
+
var tmp2_safe_receiver = this.k1x_1;
|
|
658
697
|
if (tmp2_safe_receiver == null)
|
|
659
698
|
null;
|
|
660
699
|
else {
|
|
661
700
|
// Inline function 'kotlin.let' call
|
|
662
701
|
// Inline function 'kotlin.contracts.contract' call
|
|
663
|
-
if (this.
|
|
664
|
-
tmp2_safe_receiver.
|
|
702
|
+
if (this.w1w_1) {
|
|
703
|
+
tmp2_safe_receiver.k1z(slice(args, until(argIterator.y1(), args.f())));
|
|
665
704
|
} else {
|
|
666
705
|
var tmp$ret$18;
|
|
667
706
|
// Inline function 'kotlin.takeUnless' call
|
|
668
707
|
// Inline function 'kotlin.contracts.contract' call
|
|
669
708
|
var tmp_8;
|
|
670
709
|
// Inline function 'kotlinx.cli.ArgParser.parse.<anonymous>.<anonymous>' call
|
|
671
|
-
if (!this.
|
|
710
|
+
if (!this.h1x_1) {
|
|
672
711
|
tmp_8 = '--';
|
|
673
712
|
} else {
|
|
674
713
|
tmp_8 = null;
|
|
675
714
|
}
|
|
676
715
|
tmp$ret$18 = tmp_8;
|
|
677
|
-
tmp2_safe_receiver.
|
|
716
|
+
tmp2_safe_receiver.k1z(plus(plus(this.j1x_1, listOfNotNull(tmp$ret$18)), this.i1x_1));
|
|
678
717
|
}
|
|
679
|
-
tmp2_safe_receiver.
|
|
680
|
-
this.
|
|
681
|
-
return ensureNotNull(this.
|
|
718
|
+
tmp2_safe_receiver.z1z();
|
|
719
|
+
this.b1x_1 = new ArgParserResult(tmp2_safe_receiver.i1z_1);
|
|
720
|
+
return ensureNotNull(this.b1x_1);
|
|
682
721
|
}
|
|
683
722
|
} catch ($p) {
|
|
684
723
|
if ($p instanceof ParsingException) {
|
|
@@ -688,57 +727,65 @@
|
|
|
688
727
|
throw $p;
|
|
689
728
|
}
|
|
690
729
|
}
|
|
691
|
-
this.
|
|
692
|
-
return ensureNotNull(this.
|
|
730
|
+
this.b1x_1 = new ArgParserResult(this.s1w_1);
|
|
731
|
+
return ensureNotNull(this.b1x_1);
|
|
693
732
|
};
|
|
694
|
-
protoOf(ArgParser).
|
|
733
|
+
protoOf(ArgParser).x1x = function () {
|
|
695
734
|
var result = StringBuilder_init_$Create$();
|
|
696
|
-
result.
|
|
735
|
+
result.f6('Usage: ' + joinToString(this.g1x_1, ' ') + ' options_list\n');
|
|
697
736
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
698
|
-
if (!this.
|
|
699
|
-
result.
|
|
737
|
+
if (!this.c1x_1.g()) {
|
|
738
|
+
result.f6('Subcommands: \n');
|
|
700
739
|
// Inline function 'kotlin.collections.forEach' call
|
|
701
740
|
// Inline function 'kotlin.collections.iterator' call
|
|
702
|
-
var tmp0_iterator = this.
|
|
741
|
+
var tmp0_iterator = this.c1x_1.u().c();
|
|
703
742
|
while (tmp0_iterator.d()) {
|
|
704
743
|
var element = tmp0_iterator.e();
|
|
705
744
|
// Inline function 'kotlinx.cli.ArgParser.makeUsage.<anonymous>' call
|
|
706
745
|
// Inline function 'kotlin.collections.component2' call
|
|
707
746
|
var subcommand = element.w();
|
|
708
|
-
result.
|
|
747
|
+
result.f6(subcommand.a20());
|
|
709
748
|
}
|
|
710
|
-
result.
|
|
749
|
+
result.f6('\n');
|
|
711
750
|
}
|
|
712
751
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
713
|
-
if (!this.
|
|
714
|
-
result.
|
|
752
|
+
if (!this.y1w_1.g()) {
|
|
753
|
+
result.f6('Arguments: \n');
|
|
715
754
|
// Inline function 'kotlin.collections.forEach' call
|
|
716
755
|
// Inline function 'kotlin.collections.iterator' call
|
|
717
|
-
var tmp0_iterator_0 = this.
|
|
756
|
+
var tmp0_iterator_0 = this.y1w_1.u().c();
|
|
718
757
|
while (tmp0_iterator_0.d()) {
|
|
719
758
|
var element_0 = tmp0_iterator_0.e();
|
|
720
759
|
// Inline function 'kotlinx.cli.ArgParser.makeUsage.<anonymous>' call
|
|
721
|
-
result.
|
|
760
|
+
result.f6(element_0.w().t1x_1.a20());
|
|
722
761
|
}
|
|
723
762
|
}
|
|
724
763
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
725
|
-
if (!this.
|
|
726
|
-
result.
|
|
764
|
+
if (!this.x1w_1.g()) {
|
|
765
|
+
result.f6('Options: \n');
|
|
727
766
|
// Inline function 'kotlin.collections.forEach' call
|
|
728
767
|
// Inline function 'kotlin.collections.iterator' call
|
|
729
|
-
var tmp0_iterator_1 = this.
|
|
768
|
+
var tmp0_iterator_1 = this.x1w_1.u().c();
|
|
730
769
|
while (tmp0_iterator_1.d()) {
|
|
731
770
|
var element_1 = tmp0_iterator_1.e();
|
|
732
771
|
// Inline function 'kotlinx.cli.ArgParser.makeUsage.<anonymous>' call
|
|
733
|
-
result.
|
|
772
|
+
result.f6(element_1.w().t1x_1.a20());
|
|
734
773
|
}
|
|
735
774
|
}
|
|
736
775
|
return result.toString();
|
|
737
776
|
};
|
|
738
777
|
function ArgumentValueDelegate() {
|
|
739
778
|
}
|
|
779
|
+
function Subcommand(name, actionDescription) {
|
|
780
|
+
ArgParser.call(this, name);
|
|
781
|
+
this.i1z_1 = name;
|
|
782
|
+
this.j1z_1 = actionDescription;
|
|
783
|
+
}
|
|
784
|
+
protoOf(Subcommand).a20 = function () {
|
|
785
|
+
return ' ' + this.i1z_1 + ' - ' + this.j1z_1 + '\n';
|
|
786
|
+
};
|
|
740
787
|
function ArgParserResult(commandName) {
|
|
741
|
-
this.
|
|
788
|
+
this.c20_1 = commandName;
|
|
742
789
|
}
|
|
743
790
|
function ArgumentsQueue(argumentsDescriptors) {
|
|
744
791
|
var tmp = this;
|
|
@@ -756,34 +803,34 @@
|
|
|
756
803
|
tmp0_mapTo.a(tmp$ret$0);
|
|
757
804
|
}
|
|
758
805
|
tmp$ret$3 = copyToArray(tmp0_mapTo);
|
|
759
|
-
tmp.
|
|
806
|
+
tmp.y1x_1 = linkedMapOf(tmp$ret$3.slice());
|
|
760
807
|
}
|
|
761
|
-
protoOf(ArgumentsQueue).
|
|
762
|
-
if (this.
|
|
808
|
+
protoOf(ArgumentsQueue).z1x = function () {
|
|
809
|
+
if (this.y1x_1.g())
|
|
763
810
|
return null;
|
|
764
811
|
// Inline function 'kotlin.collections.iterator' call
|
|
765
|
-
var tmp0_container = this.
|
|
812
|
+
var tmp0_container = this.y1x_1.u().c().e();
|
|
766
813
|
// Inline function 'kotlin.collections.component1' call
|
|
767
814
|
var currentDescriptor = tmp0_container.v();
|
|
768
815
|
// Inline function 'kotlin.collections.component2' call
|
|
769
816
|
var usageNumber = tmp0_container.w();
|
|
770
|
-
if (currentDescriptor.
|
|
817
|
+
if (currentDescriptor.k20_1 == null)
|
|
771
818
|
null;
|
|
772
819
|
else {
|
|
773
820
|
// Inline function 'kotlin.let' call
|
|
774
821
|
// Inline function 'kotlin.contracts.contract' call
|
|
775
822
|
// Inline function 'kotlinx.cli.ArgumentsQueue.pop.<anonymous>' call
|
|
776
823
|
var tmp;
|
|
777
|
-
if ((usageNumber + 1 | 0) >= currentDescriptor.
|
|
778
|
-
tmp = this.
|
|
824
|
+
if ((usageNumber + 1 | 0) >= currentDescriptor.k20_1) {
|
|
825
|
+
tmp = this.y1x_1.fb(currentDescriptor);
|
|
779
826
|
} else {
|
|
780
|
-
var tmp0_set = this.
|
|
827
|
+
var tmp0_set = this.y1x_1;
|
|
781
828
|
var tmp1_set = usageNumber + 1 | 0;
|
|
782
829
|
tmp0_set.m3(currentDescriptor, tmp1_set);
|
|
783
830
|
tmp = Unit_getInstance();
|
|
784
831
|
}
|
|
785
832
|
}
|
|
786
|
-
return currentDescriptor.
|
|
833
|
+
return currentDescriptor.n1x_1;
|
|
787
834
|
};
|
|
788
835
|
function printWarning(message) {
|
|
789
836
|
println('WARNING ' + message);
|
|
@@ -795,10 +842,10 @@
|
|
|
795
842
|
Boolean_instance = this;
|
|
796
843
|
ArgType.call(this, false);
|
|
797
844
|
}
|
|
798
|
-
protoOf(Boolean_0).
|
|
845
|
+
protoOf(Boolean_0).e1y = function () {
|
|
799
846
|
return '';
|
|
800
847
|
};
|
|
801
|
-
protoOf(Boolean_0).
|
|
848
|
+
protoOf(Boolean_0).m20 = function (value, name) {
|
|
802
849
|
return !(value === 'false');
|
|
803
850
|
};
|
|
804
851
|
var Boolean_instance;
|
|
@@ -811,10 +858,10 @@
|
|
|
811
858
|
String_instance = this;
|
|
812
859
|
ArgType.call(this, true);
|
|
813
860
|
}
|
|
814
|
-
protoOf(String_0).
|
|
861
|
+
protoOf(String_0).e1y = function () {
|
|
815
862
|
return '{ String }';
|
|
816
863
|
};
|
|
817
|
-
protoOf(String_0).
|
|
864
|
+
protoOf(String_0).m20 = function (value, name) {
|
|
818
865
|
return value;
|
|
819
866
|
};
|
|
820
867
|
var String_instance;
|
|
@@ -841,8 +888,8 @@
|
|
|
841
888
|
}
|
|
842
889
|
variantToString = tmp;
|
|
843
890
|
ArgType.call(this, true);
|
|
844
|
-
this.
|
|
845
|
-
this.
|
|
891
|
+
this.p20_1 = toVariant;
|
|
892
|
+
this.q20_1 = variantToString;
|
|
846
893
|
var tmp_0 = this;
|
|
847
894
|
// Inline function 'kotlin.collections.associateBy' call
|
|
848
895
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(choices, 10)), 16);
|
|
@@ -853,30 +900,30 @@
|
|
|
853
900
|
var element = tmp0_iterator.e();
|
|
854
901
|
var tmp$ret$0;
|
|
855
902
|
// Inline function 'kotlinx.cli.Choice.choicesMap.<anonymous>' call
|
|
856
|
-
tmp$ret$0 = this.
|
|
903
|
+
tmp$ret$0 = this.q20_1(element);
|
|
857
904
|
tmp0_associateByTo.m3(tmp$ret$0, element);
|
|
858
905
|
}
|
|
859
|
-
tmp_0.
|
|
906
|
+
tmp_0.r20_1 = tmp0_associateByTo;
|
|
860
907
|
// Inline function 'kotlin.require' call
|
|
861
908
|
// Inline function 'kotlin.contracts.contract' call
|
|
862
|
-
if (!(this.
|
|
909
|
+
if (!(this.r20_1.f() === choices.f())) {
|
|
863
910
|
// Inline function 'kotlinx.cli.Choice.<anonymous>' call
|
|
864
911
|
var message = 'Command line representations of enum choices are not distinct';
|
|
865
912
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
866
913
|
}
|
|
867
914
|
}
|
|
868
|
-
protoOf(Choice).
|
|
869
|
-
return '{ Value should be one of ' + this.
|
|
915
|
+
protoOf(Choice).e1y = function () {
|
|
916
|
+
return '{ Value should be one of ' + this.r20_1.p2() + ' }';
|
|
870
917
|
};
|
|
871
|
-
protoOf(Choice).
|
|
918
|
+
protoOf(Choice).m20 = function (value, name) {
|
|
872
919
|
var tmp;
|
|
873
920
|
try {
|
|
874
|
-
tmp = this.
|
|
921
|
+
tmp = this.p20_1(value);
|
|
875
922
|
} catch ($p) {
|
|
876
923
|
var tmp_0;
|
|
877
924
|
if ($p instanceof Exception) {
|
|
878
925
|
var e = $p;
|
|
879
|
-
throw new ParsingException('Option ' + name + ' is expected to be one of ' + this.
|
|
926
|
+
throw new ParsingException('Option ' + name + ' is expected to be one of ' + this.r20_1.p2() + '. ' + value + ' is provided.');
|
|
880
927
|
} else {
|
|
881
928
|
throw $p;
|
|
882
929
|
}
|
|
@@ -885,34 +932,34 @@
|
|
|
885
932
|
};
|
|
886
933
|
function ArgType(hasParameter) {
|
|
887
934
|
Companion_getInstance();
|
|
888
|
-
this.
|
|
935
|
+
this.c1y_1 = hasParameter;
|
|
889
936
|
}
|
|
890
937
|
function ParsingException(message) {
|
|
891
938
|
Exception_init_$Init$(message, this);
|
|
892
939
|
captureStack(this, ParsingException);
|
|
893
940
|
}
|
|
894
941
|
function ParsingValue(descriptor) {
|
|
895
|
-
this.
|
|
896
|
-
this.
|
|
942
|
+
this.t1x_1 = descriptor;
|
|
943
|
+
this.v1x_1 = ValueOrigin_UNDEFINED_getInstance();
|
|
897
944
|
}
|
|
898
|
-
protoOf(ParsingValue).
|
|
899
|
-
var tmp = this.
|
|
945
|
+
protoOf(ParsingValue).s20 = function () {
|
|
946
|
+
var tmp = this.u1x_1;
|
|
900
947
|
if (!(tmp == null))
|
|
901
948
|
return tmp;
|
|
902
949
|
else {
|
|
903
950
|
throwUninitializedPropertyAccessException('parsedValue');
|
|
904
951
|
}
|
|
905
952
|
};
|
|
906
|
-
protoOf(ParsingValue).
|
|
907
|
-
return !(this.
|
|
953
|
+
protoOf(ParsingValue).t20 = function () {
|
|
954
|
+
return !(this.u1x_1 == null);
|
|
908
955
|
};
|
|
909
|
-
protoOf(ParsingValue).
|
|
956
|
+
protoOf(ParsingValue).a1y = function (stringValue) {
|
|
910
957
|
var tmp;
|
|
911
958
|
var tmp_0;
|
|
912
959
|
var tmp_1;
|
|
913
|
-
var tmp_2 = this.
|
|
960
|
+
var tmp_2 = this.t1x_1;
|
|
914
961
|
if (tmp_2 instanceof OptionDescriptor) {
|
|
915
|
-
tmp_1 = !this.
|
|
962
|
+
tmp_1 = !this.t1x_1.w1z_1;
|
|
916
963
|
} else {
|
|
917
964
|
tmp_1 = false;
|
|
918
965
|
}
|
|
@@ -922,14 +969,14 @@
|
|
|
922
969
|
tmp_0 = false;
|
|
923
970
|
}
|
|
924
971
|
if (tmp_0) {
|
|
925
|
-
tmp = this.
|
|
972
|
+
tmp = this.t1x_1.x1z_1 == null;
|
|
926
973
|
} else {
|
|
927
974
|
tmp = false;
|
|
928
975
|
}
|
|
929
976
|
if (tmp) {
|
|
930
|
-
throw new ParsingException('Try to provide more than one value for ' + this.
|
|
977
|
+
throw new ParsingException('Try to provide more than one value for ' + this.t1x_1.n1x_1 + '.');
|
|
931
978
|
}
|
|
932
|
-
var tmp0_safe_receiver = this.
|
|
979
|
+
var tmp0_safe_receiver = this.t1x_1.r1x_1;
|
|
933
980
|
if (tmp0_safe_receiver == null)
|
|
934
981
|
null;
|
|
935
982
|
else {
|
|
@@ -942,101 +989,101 @@
|
|
|
942
989
|
}
|
|
943
990
|
}
|
|
944
991
|
var tmp_4;
|
|
945
|
-
var tmp_5 = this.
|
|
992
|
+
var tmp_5 = this.t1x_1;
|
|
946
993
|
if (tmp_5 instanceof OptionDescriptor) {
|
|
947
|
-
tmp_4 = !(this.
|
|
994
|
+
tmp_4 = !(this.t1x_1.x1z_1 == null);
|
|
948
995
|
} else {
|
|
949
996
|
tmp_4 = false;
|
|
950
997
|
}
|
|
951
998
|
if (tmp_4) {
|
|
952
999
|
// Inline function 'kotlin.collections.forEach' call
|
|
953
|
-
var tmp0_iterator = split_0(stringValue, [this.
|
|
1000
|
+
var tmp0_iterator = split_0(stringValue, [this.t1x_1.x1z_1]).c();
|
|
954
1001
|
while (tmp0_iterator.d()) {
|
|
955
1002
|
var element = tmp0_iterator.e();
|
|
956
1003
|
// Inline function 'kotlinx.cli.ParsingValue.addValue.<anonymous>' call
|
|
957
|
-
this.
|
|
1004
|
+
this.u20(element);
|
|
958
1005
|
}
|
|
959
1006
|
} else {
|
|
960
|
-
this.
|
|
1007
|
+
this.u20(stringValue);
|
|
961
1008
|
}
|
|
962
1009
|
};
|
|
963
|
-
protoOf(ParsingValue).
|
|
964
|
-
if (this.
|
|
965
|
-
this.
|
|
966
|
-
this.
|
|
1010
|
+
protoOf(ParsingValue).y1z = function () {
|
|
1011
|
+
if (this.t1x_1.w1x()) {
|
|
1012
|
+
this.u1x_1 = ensureNotNull(this.t1x_1.p1x_1);
|
|
1013
|
+
this.v1x_1 = ValueOrigin_SET_DEFAULT_VALUE_getInstance();
|
|
967
1014
|
}
|
|
968
1015
|
};
|
|
969
|
-
protoOf(ParsingValue).
|
|
970
|
-
if (this.
|
|
1016
|
+
protoOf(ParsingValue).v20 = function (name) {
|
|
1017
|
+
if (this.t1x_1.n1x_1 == null) {
|
|
971
1018
|
// Inline function 'kotlin.run' call
|
|
972
1019
|
// Inline function 'kotlin.contracts.contract' call
|
|
973
|
-
this.
|
|
1020
|
+
this.t1x_1.n1x_1 = name;
|
|
974
1021
|
}
|
|
975
1022
|
};
|
|
1023
|
+
function ArgumentSingleNullableValue(descriptor) {
|
|
1024
|
+
AbstractArgumentSingleValue.call(this, descriptor);
|
|
1025
|
+
this.z20_1 = false;
|
|
1026
|
+
}
|
|
1027
|
+
protoOf(ArgumentSingleNullableValue).w = function () {
|
|
1028
|
+
return (!this.g() ? !this.z20_1 : false) ? this.s20() : null;
|
|
1029
|
+
};
|
|
976
1030
|
function ArgumentSingleValue(descriptor) {
|
|
977
1031
|
AbstractArgumentSingleValue.call(this, descriptor);
|
|
978
1032
|
}
|
|
979
1033
|
protoOf(ArgumentSingleValue).w = function () {
|
|
980
1034
|
var tmp;
|
|
981
1035
|
if (!this.g()) {
|
|
982
|
-
tmp = this.
|
|
1036
|
+
tmp = this.s20();
|
|
983
1037
|
} else {
|
|
984
|
-
var tmp0_error = 'Value for argument ' + this.
|
|
1038
|
+
var tmp0_error = 'Value for argument ' + this.t1x_1.n1x_1 + " isn't set. " + 'ArgParser.parse(...) method should be called before.';
|
|
985
1039
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
986
1040
|
}
|
|
987
1041
|
return tmp;
|
|
988
1042
|
};
|
|
989
|
-
function ArgumentSingleNullableValue(descriptor) {
|
|
990
|
-
AbstractArgumentSingleValue.call(this, descriptor);
|
|
991
|
-
this.q2c_1 = false;
|
|
992
|
-
}
|
|
993
|
-
protoOf(ArgumentSingleNullableValue).w = function () {
|
|
994
|
-
return (!this.g() ? !this.q2c_1 : false) ? this.d2c() : null;
|
|
995
|
-
};
|
|
996
1043
|
function ArgumentMultipleValues(descriptor) {
|
|
997
1044
|
ParsingValue.call(this, descriptor);
|
|
998
1045
|
var tmp = this;
|
|
999
1046
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
1000
|
-
tmp.
|
|
1001
|
-
this.
|
|
1047
|
+
tmp.j21_1 = ArrayList_init_$Create$();
|
|
1048
|
+
this.u1x_1 = this.j21_1;
|
|
1002
1049
|
}
|
|
1003
1050
|
protoOf(ArgumentMultipleValues).w = function () {
|
|
1004
|
-
return this.
|
|
1051
|
+
return this.s20();
|
|
1005
1052
|
};
|
|
1006
|
-
protoOf(ArgumentMultipleValues).
|
|
1007
|
-
this.
|
|
1008
|
-
this.
|
|
1053
|
+
protoOf(ArgumentMultipleValues).u20 = function (stringValue) {
|
|
1054
|
+
this.j21_1.a(this.t1x_1.m1x_1.m20(stringValue, ensureNotNull(this.t1x_1.n1x_1)));
|
|
1055
|
+
this.v1x_1 = ValueOrigin_SET_BY_USER_getInstance();
|
|
1009
1056
|
};
|
|
1010
1057
|
protoOf(ArgumentMultipleValues).g = function () {
|
|
1011
|
-
return this.
|
|
1058
|
+
return this.s20().g();
|
|
1012
1059
|
};
|
|
1013
1060
|
function AbstractArgumentSingleValue(descriptor) {
|
|
1014
1061
|
ParsingValue.call(this, descriptor);
|
|
1015
1062
|
}
|
|
1016
|
-
protoOf(AbstractArgumentSingleValue).
|
|
1017
|
-
if (!this.
|
|
1018
|
-
this.
|
|
1019
|
-
this.
|
|
1063
|
+
protoOf(AbstractArgumentSingleValue).u20 = function (stringValue) {
|
|
1064
|
+
if (!this.t20()) {
|
|
1065
|
+
this.u1x_1 = this.t1x_1.m1x_1.m20(stringValue, ensureNotNull(this.t1x_1.n1x_1));
|
|
1066
|
+
this.v1x_1 = ValueOrigin_SET_BY_USER_getInstance();
|
|
1020
1067
|
} else {
|
|
1021
|
-
throw new ParsingException('Try to provide more than one value ' + this.
|
|
1068
|
+
throw new ParsingException('Try to provide more than one value ' + this.s20() + ' and ' + stringValue + ' for ' + this.t1x_1.n1x_1 + '.');
|
|
1022
1069
|
}
|
|
1023
1070
|
};
|
|
1024
1071
|
protoOf(AbstractArgumentSingleValue).g = function () {
|
|
1025
|
-
return !this.
|
|
1072
|
+
return !this.t20();
|
|
1026
1073
|
};
|
|
1027
1074
|
function SingleArgument(descriptor, owner) {
|
|
1028
1075
|
AbstractSingleArgument.call(this, new ArgumentSingleValue(descriptor), owner);
|
|
1029
|
-
this.
|
|
1076
|
+
this.n21(descriptor);
|
|
1030
1077
|
}
|
|
1031
1078
|
function CLIEntityWrapper(entity) {
|
|
1032
1079
|
entity = entity === VOID ? null : entity;
|
|
1033
|
-
this.
|
|
1080
|
+
this.g1y_1 = entity;
|
|
1034
1081
|
}
|
|
1035
1082
|
protoOf(CLIEntityWrapper).toString = function () {
|
|
1036
|
-
return 'CLIEntityWrapper(entity=' + this.
|
|
1083
|
+
return 'CLIEntityWrapper(entity=' + this.g1y_1 + ')';
|
|
1037
1084
|
};
|
|
1038
1085
|
protoOf(CLIEntityWrapper).hashCode = function () {
|
|
1039
|
-
return this.
|
|
1086
|
+
return this.g1y_1 == null ? 0 : hashCode(this.g1y_1);
|
|
1040
1087
|
};
|
|
1041
1088
|
protoOf(CLIEntityWrapper).equals = function (other) {
|
|
1042
1089
|
if (this === other)
|
|
@@ -1044,46 +1091,46 @@
|
|
|
1044
1091
|
if (!(other instanceof CLIEntityWrapper))
|
|
1045
1092
|
return false;
|
|
1046
1093
|
var tmp0_other_with_cast = other instanceof CLIEntityWrapper ? other : THROW_CCE();
|
|
1047
|
-
if (!equals(this.
|
|
1094
|
+
if (!equals(this.g1y_1, tmp0_other_with_cast.g1y_1))
|
|
1048
1095
|
return false;
|
|
1049
1096
|
return true;
|
|
1050
1097
|
};
|
|
1051
1098
|
function MultipleArgument(descriptor, owner) {
|
|
1052
1099
|
Argument.call(this, new ArgumentMultipleValues(descriptor), owner);
|
|
1053
|
-
if (!(descriptor.
|
|
1100
|
+
if (!(descriptor.k20_1 == null) ? descriptor.k20_1 < 2 : false) {
|
|
1054
1101
|
failAssertion("Argument with multiple values can't be initialized with descriptor for single one.");
|
|
1055
1102
|
}
|
|
1056
1103
|
}
|
|
1057
1104
|
function vararg(_this__u8e3s4) {
|
|
1058
1105
|
// Inline function 'kotlin.with' call
|
|
1059
1106
|
// Inline function 'kotlinx.cli.cast' call
|
|
1060
|
-
var tmp0_cast = _this__u8e3s4.
|
|
1061
|
-
var tmp = (tmp0_cast instanceof ParsingValue ? tmp0_cast : THROW_CCE()).
|
|
1107
|
+
var tmp0_cast = _this__u8e3s4.h1y_1;
|
|
1108
|
+
var tmp = (tmp0_cast instanceof ParsingValue ? tmp0_cast : THROW_CCE()).t1x_1;
|
|
1062
1109
|
var tmp1_with = tmp instanceof ArgDescriptor ? tmp : THROW_CCE();
|
|
1063
1110
|
// Inline function 'kotlin.contracts.contract' call
|
|
1064
1111
|
// Inline function 'kotlinx.cli.vararg.<anonymous>' call
|
|
1065
|
-
var newArgument = new MultipleArgument(new ArgDescriptor(tmp1_with.
|
|
1066
|
-
_this__u8e3s4.
|
|
1112
|
+
var newArgument = new MultipleArgument(new ArgDescriptor(tmp1_with.m1x_1, tmp1_with.n1x_1, null, tmp1_with.o1x_1, listOfNotNull(tmp1_with.p1x_1), tmp1_with.q1x_1, tmp1_with.r1x_1), _this__u8e3s4.i1y_1);
|
|
1113
|
+
_this__u8e3s4.i1y_1.g1y_1 = newArgument;
|
|
1067
1114
|
return newArgument;
|
|
1068
1115
|
}
|
|
1069
1116
|
function CLIEntity(delegate, owner) {
|
|
1070
|
-
this.
|
|
1071
|
-
this.
|
|
1072
|
-
this.
|
|
1117
|
+
this.h1y_1 = delegate;
|
|
1118
|
+
this.i1y_1 = owner;
|
|
1119
|
+
this.j1y_1 = false;
|
|
1073
1120
|
}
|
|
1074
|
-
protoOf(CLIEntity).
|
|
1121
|
+
protoOf(CLIEntity).o21 = function (thisRef, prop) {
|
|
1075
1122
|
// Inline function 'kotlin.check' call
|
|
1076
1123
|
// Inline function 'kotlin.contracts.contract' call
|
|
1077
|
-
if (!!this.
|
|
1124
|
+
if (!!this.j1y_1) {
|
|
1078
1125
|
// 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()).
|
|
1126
|
+
var tmp = this.h1y_1;
|
|
1127
|
+
var message = 'There is already used delegate for ' + (tmp instanceof ParsingValue ? tmp : THROW_CCE()).t1x_1.n1x_1 + '.';
|
|
1081
1128
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
1082
1129
|
}
|
|
1083
|
-
var tmp_0 = this.
|
|
1084
|
-
(tmp_0 instanceof ParsingValue ? tmp_0 : THROW_CCE()).
|
|
1085
|
-
this.
|
|
1086
|
-
return this.
|
|
1130
|
+
var tmp_0 = this.h1y_1;
|
|
1131
|
+
(tmp_0 instanceof ParsingValue ? tmp_0 : THROW_CCE()).v20(prop.callableName);
|
|
1132
|
+
this.j1y_1 = true;
|
|
1133
|
+
return this.h1y_1;
|
|
1087
1134
|
};
|
|
1088
1135
|
function failAssertion(message) {
|
|
1089
1136
|
throw AssertionError_init_$Create$(message);
|
|
@@ -1091,8 +1138,8 @@
|
|
|
1091
1138
|
function AbstractSingleArgument(delegate, owner) {
|
|
1092
1139
|
Argument.call(this, delegate, owner);
|
|
1093
1140
|
}
|
|
1094
|
-
protoOf(AbstractSingleArgument).
|
|
1095
|
-
if (descriptor.
|
|
1141
|
+
protoOf(AbstractSingleArgument).n21 = function (descriptor) {
|
|
1142
|
+
if (descriptor.k20_1 == null ? true : descriptor.k20_1 > 1) {
|
|
1096
1143
|
failAssertion("Argument with single value can't be initialized with descriptor for multiple values.");
|
|
1097
1144
|
}
|
|
1098
1145
|
};
|
|
@@ -1109,72 +1156,72 @@
|
|
|
1109
1156
|
delimiter = delimiter === VOID ? null : delimiter;
|
|
1110
1157
|
deprecatedWarning = deprecatedWarning === VOID ? null : deprecatedWarning;
|
|
1111
1158
|
Descriptor.call(this, type, fullName, description, defaultValue, required, deprecatedWarning);
|
|
1112
|
-
this.
|
|
1113
|
-
this.
|
|
1114
|
-
this.
|
|
1115
|
-
this.
|
|
1116
|
-
this.
|
|
1117
|
-
}
|
|
1118
|
-
protoOf(OptionDescriptor).
|
|
1119
|
-
return 'option ' + this.
|
|
1159
|
+
this.t1z_1 = optionFullFormPrefix;
|
|
1160
|
+
this.u1z_1 = optionShortFromPrefix;
|
|
1161
|
+
this.v1z_1 = shortName;
|
|
1162
|
+
this.w1z_1 = multiple;
|
|
1163
|
+
this.x1z_1 = delimiter;
|
|
1164
|
+
}
|
|
1165
|
+
protoOf(OptionDescriptor).d1y = function () {
|
|
1166
|
+
return 'option ' + this.t1z_1 + this.n1x_1;
|
|
1120
1167
|
};
|
|
1121
|
-
protoOf(OptionDescriptor).
|
|
1168
|
+
protoOf(OptionDescriptor).a20 = function () {
|
|
1122
1169
|
var result = StringBuilder_init_$Create$();
|
|
1123
|
-
result.
|
|
1124
|
-
var tmp0_safe_receiver = this.
|
|
1170
|
+
result.f6(' ' + this.t1z_1 + this.n1x_1);
|
|
1171
|
+
var tmp0_safe_receiver = this.v1z_1;
|
|
1125
1172
|
if (tmp0_safe_receiver == null)
|
|
1126
1173
|
null;
|
|
1127
1174
|
else {
|
|
1128
1175
|
// Inline function 'kotlin.let' call
|
|
1129
1176
|
// Inline function 'kotlin.contracts.contract' call
|
|
1130
1177
|
// Inline function 'kotlinx.cli.OptionDescriptor.<get-helpMessage>.<anonymous>' call
|
|
1131
|
-
result.
|
|
1178
|
+
result.f6(', ' + this.u1z_1 + tmp0_safe_receiver);
|
|
1132
1179
|
}
|
|
1133
|
-
var tmp1_safe_receiver = this.
|
|
1180
|
+
var tmp1_safe_receiver = this.p21(this.p1x_1);
|
|
1134
1181
|
if (tmp1_safe_receiver == null)
|
|
1135
1182
|
null;
|
|
1136
1183
|
else {
|
|
1137
1184
|
// Inline function 'kotlin.let' call
|
|
1138
1185
|
// Inline function 'kotlin.contracts.contract' call
|
|
1139
1186
|
// Inline function 'kotlinx.cli.OptionDescriptor.<get-helpMessage>.<anonymous>' call
|
|
1140
|
-
result.
|
|
1187
|
+
result.f6(tmp1_safe_receiver);
|
|
1141
1188
|
}
|
|
1142
|
-
var tmp2_safe_receiver = this.
|
|
1189
|
+
var tmp2_safe_receiver = this.o1x_1;
|
|
1143
1190
|
if (tmp2_safe_receiver == null)
|
|
1144
1191
|
null;
|
|
1145
1192
|
else {
|
|
1146
1193
|
// Inline function 'kotlin.let' call
|
|
1147
1194
|
// Inline function 'kotlin.contracts.contract' call
|
|
1148
1195
|
// Inline function 'kotlinx.cli.OptionDescriptor.<get-helpMessage>.<anonymous>' call
|
|
1149
|
-
result.
|
|
1196
|
+
result.f6(' -> ' + tmp2_safe_receiver);
|
|
1150
1197
|
}
|
|
1151
|
-
if (this.
|
|
1152
|
-
result.
|
|
1198
|
+
if (this.q1x_1) {
|
|
1199
|
+
result.f6(' (always required)');
|
|
1153
1200
|
}
|
|
1154
|
-
result.
|
|
1155
|
-
var tmp3_safe_receiver = this.
|
|
1201
|
+
result.f6(' ' + this.m1x_1.e1y());
|
|
1202
|
+
var tmp3_safe_receiver = this.r1x_1;
|
|
1156
1203
|
if (tmp3_safe_receiver == null)
|
|
1157
1204
|
null;
|
|
1158
1205
|
else {
|
|
1159
1206
|
// Inline function 'kotlin.let' call
|
|
1160
1207
|
// Inline function 'kotlin.contracts.contract' call
|
|
1161
1208
|
// Inline function 'kotlinx.cli.OptionDescriptor.<get-helpMessage>.<anonymous>' call
|
|
1162
|
-
result.
|
|
1209
|
+
result.f6(' Warning: ' + tmp3_safe_receiver);
|
|
1163
1210
|
}
|
|
1164
|
-
result.
|
|
1211
|
+
result.f6('\n');
|
|
1165
1212
|
return result.toString();
|
|
1166
1213
|
};
|
|
1167
1214
|
function Descriptor$defaultValueSet$delegate$lambda(this$0) {
|
|
1168
1215
|
return function () {
|
|
1169
1216
|
var tmp;
|
|
1170
|
-
if (!(this$0.
|
|
1217
|
+
if (!(this$0.p1x_1 == null)) {
|
|
1171
1218
|
var tmp_0;
|
|
1172
1219
|
var tmp_1;
|
|
1173
|
-
var tmp_2 = this$0.
|
|
1220
|
+
var tmp_2 = this$0.p1x_1;
|
|
1174
1221
|
if (!(tmp_2 == null) ? isInterface(tmp_2, List) : false) {
|
|
1175
1222
|
var tmp$ret$0;
|
|
1176
1223
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
1177
|
-
var tmp0_isNotEmpty = this$0.
|
|
1224
|
+
var tmp0_isNotEmpty = this$0.p1x_1;
|
|
1178
1225
|
tmp$ret$0 = !tmp0_isNotEmpty.g();
|
|
1179
1226
|
tmp_1 = tmp$ret$0;
|
|
1180
1227
|
} else {
|
|
@@ -1183,7 +1230,7 @@
|
|
|
1183
1230
|
if (tmp_1) {
|
|
1184
1231
|
tmp_0 = true;
|
|
1185
1232
|
} else {
|
|
1186
|
-
var tmp_3 = this$0.
|
|
1233
|
+
var tmp_3 = this$0.p1x_1;
|
|
1187
1234
|
tmp_0 = !(!(tmp_3 == null) ? isInterface(tmp_3, List) : false);
|
|
1188
1235
|
}
|
|
1189
1236
|
tmp = tmp_0;
|
|
@@ -1199,16 +1246,16 @@
|
|
|
1199
1246
|
defaultValue = defaultValue === VOID ? null : defaultValue;
|
|
1200
1247
|
required = required === VOID ? false : required;
|
|
1201
1248
|
deprecatedWarning = deprecatedWarning === VOID ? null : deprecatedWarning;
|
|
1202
|
-
this.
|
|
1203
|
-
this.
|
|
1204
|
-
this.
|
|
1205
|
-
this.
|
|
1206
|
-
this.
|
|
1207
|
-
this.
|
|
1249
|
+
this.m1x_1 = type;
|
|
1250
|
+
this.n1x_1 = fullName;
|
|
1251
|
+
this.o1x_1 = description;
|
|
1252
|
+
this.p1x_1 = defaultValue;
|
|
1253
|
+
this.q1x_1 = required;
|
|
1254
|
+
this.r1x_1 = deprecatedWarning;
|
|
1208
1255
|
var tmp = this;
|
|
1209
|
-
tmp.
|
|
1256
|
+
tmp.s1x_1 = lazy(Descriptor$defaultValueSet$delegate$lambda(this));
|
|
1210
1257
|
}
|
|
1211
|
-
protoOf(Descriptor).
|
|
1258
|
+
protoOf(Descriptor).p21 = function (value) {
|
|
1212
1259
|
var tmp;
|
|
1213
1260
|
if (value == null) {
|
|
1214
1261
|
tmp = null;
|
|
@@ -1237,10 +1284,10 @@
|
|
|
1237
1284
|
}
|
|
1238
1285
|
return tmp;
|
|
1239
1286
|
};
|
|
1240
|
-
protoOf(Descriptor).
|
|
1287
|
+
protoOf(Descriptor).w1x = function () {
|
|
1241
1288
|
// Inline function 'kotlin.getValue' call
|
|
1242
1289
|
defaultValueSet$factory();
|
|
1243
|
-
return this.
|
|
1290
|
+
return this.s1x_1.w();
|
|
1244
1291
|
};
|
|
1245
1292
|
function ArgDescriptor(type, fullName, number, description, defaultValue, required, deprecatedWarning) {
|
|
1246
1293
|
number = number === VOID ? null : number;
|
|
@@ -1249,8 +1296,8 @@
|
|
|
1249
1296
|
required = required === VOID ? true : required;
|
|
1250
1297
|
deprecatedWarning = deprecatedWarning === VOID ? null : deprecatedWarning;
|
|
1251
1298
|
Descriptor.call(this, type, fullName, description, defaultValue, required, deprecatedWarning);
|
|
1252
|
-
this.
|
|
1253
|
-
var tmp0_safe_receiver = this.
|
|
1299
|
+
this.k20_1 = number;
|
|
1300
|
+
var tmp0_safe_receiver = this.k20_1;
|
|
1254
1301
|
if (tmp0_safe_receiver == null)
|
|
1255
1302
|
null;
|
|
1256
1303
|
else {
|
|
@@ -1263,94 +1310,94 @@
|
|
|
1263
1310
|
}
|
|
1264
1311
|
}
|
|
1265
1312
|
}
|
|
1266
|
-
protoOf(ArgDescriptor).
|
|
1267
|
-
return 'argument ' + this.
|
|
1313
|
+
protoOf(ArgDescriptor).d1y = function () {
|
|
1314
|
+
return 'argument ' + this.n1x_1;
|
|
1268
1315
|
};
|
|
1269
|
-
protoOf(ArgDescriptor).
|
|
1316
|
+
protoOf(ArgDescriptor).a20 = function () {
|
|
1270
1317
|
var result = StringBuilder_init_$Create$();
|
|
1271
|
-
result.
|
|
1272
|
-
var tmp0_safe_receiver = this.
|
|
1318
|
+
result.f6(' ' + this.n1x_1);
|
|
1319
|
+
var tmp0_safe_receiver = this.p21(this.p1x_1);
|
|
1273
1320
|
if (tmp0_safe_receiver == null)
|
|
1274
1321
|
null;
|
|
1275
1322
|
else {
|
|
1276
1323
|
// Inline function 'kotlin.let' call
|
|
1277
1324
|
// Inline function 'kotlin.contracts.contract' call
|
|
1278
1325
|
// Inline function 'kotlinx.cli.ArgDescriptor.<get-helpMessage>.<anonymous>' call
|
|
1279
|
-
result.
|
|
1326
|
+
result.f6(tmp0_safe_receiver);
|
|
1280
1327
|
}
|
|
1281
|
-
var tmp1_safe_receiver = this.
|
|
1328
|
+
var tmp1_safe_receiver = this.o1x_1;
|
|
1282
1329
|
if (tmp1_safe_receiver == null)
|
|
1283
1330
|
null;
|
|
1284
1331
|
else {
|
|
1285
1332
|
// Inline function 'kotlin.let' call
|
|
1286
1333
|
// Inline function 'kotlin.contracts.contract' call
|
|
1287
1334
|
// Inline function 'kotlinx.cli.ArgDescriptor.<get-helpMessage>.<anonymous>' call
|
|
1288
|
-
result.
|
|
1335
|
+
result.f6(' -> ' + tmp1_safe_receiver);
|
|
1289
1336
|
}
|
|
1290
|
-
if (!this.
|
|
1291
|
-
result.
|
|
1337
|
+
if (!this.q1x_1) {
|
|
1338
|
+
result.f6(' (optional)');
|
|
1292
1339
|
}
|
|
1293
|
-
result.
|
|
1294
|
-
var tmp2_safe_receiver = this.
|
|
1340
|
+
result.f6(' ' + this.m1x_1.e1y());
|
|
1341
|
+
var tmp2_safe_receiver = this.r1x_1;
|
|
1295
1342
|
if (tmp2_safe_receiver == null)
|
|
1296
1343
|
null;
|
|
1297
1344
|
else {
|
|
1298
1345
|
// Inline function 'kotlin.let' call
|
|
1299
1346
|
// Inline function 'kotlin.contracts.contract' call
|
|
1300
1347
|
// Inline function 'kotlinx.cli.ArgDescriptor.<get-helpMessage>.<anonymous>' call
|
|
1301
|
-
result.
|
|
1348
|
+
result.f6(' Warning: ' + tmp2_safe_receiver);
|
|
1302
1349
|
}
|
|
1303
|
-
result.
|
|
1350
|
+
result.f6('\n');
|
|
1304
1351
|
return result.toString();
|
|
1305
1352
|
};
|
|
1306
1353
|
function defaultValueSet$factory() {
|
|
1307
1354
|
return getPropertyCallableRef('defaultValueSet', 1, KProperty1, function (receiver) {
|
|
1308
|
-
return receiver.
|
|
1355
|
+
return receiver.w1x();
|
|
1309
1356
|
}, null);
|
|
1310
1357
|
}
|
|
1358
|
+
function SingleNullableOption(descriptor, owner) {
|
|
1359
|
+
AbstractSingleOption.call(this, new ArgumentSingleNullableValue(descriptor), owner);
|
|
1360
|
+
this.t21(descriptor);
|
|
1361
|
+
}
|
|
1311
1362
|
function SingleOption(descriptor, owner) {
|
|
1312
1363
|
AbstractSingleOption.call(this, new ArgumentSingleValue(descriptor), owner);
|
|
1313
|
-
this.
|
|
1364
|
+
this.t21(descriptor);
|
|
1314
1365
|
}
|
|
1315
1366
|
function default_0(_this__u8e3s4, value) {
|
|
1316
1367
|
// Inline function 'kotlin.with' call
|
|
1317
1368
|
// Inline function 'kotlinx.cli.cast' call
|
|
1318
|
-
var tmp0_cast = _this__u8e3s4.
|
|
1319
|
-
var tmp = (tmp0_cast instanceof ParsingValue ? tmp0_cast : THROW_CCE()).
|
|
1369
|
+
var tmp0_cast = _this__u8e3s4.h1y_1;
|
|
1370
|
+
var tmp = (tmp0_cast instanceof ParsingValue ? tmp0_cast : THROW_CCE()).t1x_1;
|
|
1320
1371
|
var tmp1_with = tmp instanceof OptionDescriptor ? tmp : THROW_CCE();
|
|
1321
1372
|
// Inline function 'kotlin.contracts.contract' call
|
|
1322
1373
|
// Inline function 'kotlinx.cli.default.<anonymous>' call
|
|
1323
|
-
var newOption = new SingleOption(new OptionDescriptor(tmp1_with.
|
|
1324
|
-
_this__u8e3s4.
|
|
1374
|
+
var newOption = new SingleOption(new OptionDescriptor(tmp1_with.t1z_1, tmp1_with.u1z_1, tmp1_with.m1x_1, tmp1_with.n1x_1, tmp1_with.v1z_1, tmp1_with.o1x_1, value, tmp1_with.q1x_1, tmp1_with.w1z_1, tmp1_with.x1z_1, tmp1_with.r1x_1), _this__u8e3s4.i1y_1);
|
|
1375
|
+
_this__u8e3s4.i1y_1.g1y_1 = newOption;
|
|
1325
1376
|
return newOption;
|
|
1326
1377
|
}
|
|
1327
|
-
function SingleNullableOption(descriptor, owner) {
|
|
1328
|
-
AbstractSingleOption.call(this, new ArgumentSingleNullableValue(descriptor), owner);
|
|
1329
|
-
this.e2d(descriptor);
|
|
1330
|
-
}
|
|
1331
1378
|
function MultipleOption(descriptor, owner) {
|
|
1332
1379
|
Option.call(this, new ArgumentMultipleValues(descriptor), owner);
|
|
1333
|
-
if (!descriptor.
|
|
1380
|
+
if (!descriptor.w1z_1 ? descriptor.x1z_1 == null : false) {
|
|
1334
1381
|
failAssertion("Option with multiple values can't be initialized with descriptor for single one.");
|
|
1335
1382
|
}
|
|
1336
1383
|
}
|
|
1337
1384
|
function multiple(_this__u8e3s4) {
|
|
1338
1385
|
// Inline function 'kotlin.with' call
|
|
1339
1386
|
// Inline function 'kotlinx.cli.cast' call
|
|
1340
|
-
var tmp0_cast = _this__u8e3s4.
|
|
1341
|
-
var tmp = (tmp0_cast instanceof ParsingValue ? tmp0_cast : THROW_CCE()).
|
|
1387
|
+
var tmp0_cast = _this__u8e3s4.h1y_1;
|
|
1388
|
+
var tmp = (tmp0_cast instanceof ParsingValue ? tmp0_cast : THROW_CCE()).t1x_1;
|
|
1342
1389
|
var tmp1_with = tmp instanceof OptionDescriptor ? tmp : THROW_CCE();
|
|
1343
1390
|
// Inline function 'kotlin.contracts.contract' call
|
|
1344
1391
|
// Inline function 'kotlinx.cli.multiple.<anonymous>' call
|
|
1345
|
-
var newOption = new MultipleOption(new OptionDescriptor(tmp1_with.
|
|
1346
|
-
_this__u8e3s4.
|
|
1392
|
+
var newOption = new MultipleOption(new OptionDescriptor(tmp1_with.t1z_1, tmp1_with.u1z_1, tmp1_with.m1x_1, tmp1_with.n1x_1, tmp1_with.v1z_1, tmp1_with.o1x_1, listOfNotNull(tmp1_with.p1x_1), tmp1_with.q1x_1, true, tmp1_with.x1z_1, tmp1_with.r1x_1), _this__u8e3s4.i1y_1);
|
|
1393
|
+
_this__u8e3s4.i1y_1.g1y_1 = newOption;
|
|
1347
1394
|
return newOption;
|
|
1348
1395
|
}
|
|
1349
1396
|
function AbstractSingleOption(delegate, owner) {
|
|
1350
1397
|
Option.call(this, delegate, owner);
|
|
1351
1398
|
}
|
|
1352
|
-
protoOf(AbstractSingleOption).
|
|
1353
|
-
if (descriptor.
|
|
1399
|
+
protoOf(AbstractSingleOption).t21 = function (descriptor) {
|
|
1400
|
+
if (descriptor.w1z_1 ? true : !(descriptor.x1z_1 == null)) {
|
|
1354
1401
|
failAssertion("Option with single value can't be initialized with descriptor for multiple values.");
|
|
1355
1402
|
}
|
|
1356
1403
|
};
|
|
@@ -1362,9 +1409,9 @@
|
|
|
1362
1409
|
throw IllegalStateException_init_$Create$('Not implemented for JS!');
|
|
1363
1410
|
}
|
|
1364
1411
|
//region block: post-declaration
|
|
1365
|
-
protoOf(
|
|
1366
|
-
protoOf(
|
|
1367
|
-
protoOf(ArgumentMultipleValues).
|
|
1412
|
+
protoOf(ArgumentSingleNullableValue).b20 = getValue;
|
|
1413
|
+
protoOf(ArgumentSingleValue).b20 = getValue;
|
|
1414
|
+
protoOf(ArgumentMultipleValues).b20 = getValue;
|
|
1368
1415
|
//endregion
|
|
1369
1416
|
//region block: exports
|
|
1370
1417
|
_.$_$ = _.$_$ || {};
|
|
@@ -1373,10 +1420,11 @@
|
|
|
1373
1420
|
_.$_$.c = String_getInstance;
|
|
1374
1421
|
_.$_$.d = ArgParser;
|
|
1375
1422
|
_.$_$.e = Choice;
|
|
1376
|
-
_.$_$.f =
|
|
1377
|
-
_.$_$.g =
|
|
1423
|
+
_.$_$.f = Subcommand;
|
|
1424
|
+
_.$_$.g = default_0;
|
|
1425
|
+
_.$_$.h = multiple;
|
|
1378
1426
|
//endregion
|
|
1379
1427
|
return _;
|
|
1380
1428
|
}));
|
|
1381
1429
|
|
|
1382
|
-
//# sourceMappingURL=Kotlinx-Cli-Library-kotlinx-cli
|
|
1430
|
+
//# sourceMappingURL=Kotlinx-Cli-Library-kotlinx-cli.js.map
|