@flock/wirespec 0.8.43 → 0.8.44
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/arrow-arrow-atomic.js +16 -16
- package/arrow-arrow-continuations.js +3 -3
- package/arrow-arrow-core.js +91 -91
- package/clikt-clikt.js +6790 -0
- package/clikt-clikt.js.map +1 -0
- package/colormath-root-colormath.js +1403 -0
- package/colormath-root-colormath.js.map +1 -0
- package/kotlin-kotlin-stdlib-js-ir.js +4064 -2468
- package/kotlin-kotlin-stdlib-js-ir.js.map +1 -1
- package/kotlin-openapi-bindings.js +3577 -3577
- package/kotlin-openapi-bindings.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core-js-ir.js +1559 -1559
- package/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json-js-ir.js +1184 -1179
- package/kotlinx-serialization-kotlinx-serialization-json-js-ir.js.map +1 -1
- package/markdown.js +6858 -0
- package/markdown.js.map +1 -0
- package/mordant-mordant.js +11604 -0
- package/mordant-mordant.js.map +1 -0
- package/package.json +1 -1
- package/wirespec-src-compiler-cli.js +830 -646
- package/wirespec-src-compiler-cli.js.map +1 -1
- package/wirespec-src-compiler-core.js +1388 -1367
- package/wirespec-src-compiler-core.js.map +1 -1
- package/wirespec-src-compiler-lib.d.ts +1 -1
- package/wirespec-src-compiler-lib.js +306 -306
- package/wirespec-src-compiler-lib.js.map +1 -1
- package/wirespec-src-openapi.js +571 -571
- package/wirespec-src-openapi.js.map +1 -1
- package/Kotlinx-Cli-Library-kotlinx-cli.js +0 -1430
- package/Kotlinx-Cli-Library-kotlinx-cli.js.map +0 -1
|
@@ -1,1430 +0,0 @@
|
|
|
1
|
-
(function (root, factory) {
|
|
2
|
-
if (typeof define === 'function' && define.amd)
|
|
3
|
-
define(['exports', './kotlin-kotlin-stdlib-js-ir.js'], factory);
|
|
4
|
-
else if (typeof exports === 'object')
|
|
5
|
-
factory(module.exports, require('./kotlin-kotlin-stdlib-js-ir.js'));
|
|
6
|
-
else {
|
|
7
|
-
if (typeof this['kotlin-kotlin-stdlib-js-ir'] === 'undefined') {
|
|
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
|
-
}
|
|
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
|
-
}
|
|
12
|
-
}(this, function (_, kotlin_kotlin) {
|
|
13
|
-
'use strict';
|
|
14
|
-
//region block: imports
|
|
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
|
-
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.p;
|
|
34
|
-
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.g;
|
|
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;
|
|
44
|
-
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.f;
|
|
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
|
-
var LinkedHashMap_init_$Create$_0 = kotlin_kotlin.$_$.o;
|
|
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
|
-
//endregion
|
|
75
|
-
//region block: pre-declaration
|
|
76
|
-
setMetadataFor(ValueOrigin, 'ValueOrigin', classMeta, Enum);
|
|
77
|
-
setMetadataFor(OptionPrefixStyle, 'OptionPrefixStyle', classMeta, Enum);
|
|
78
|
-
setMetadataFor(ArgParser, 'ArgParser', classMeta);
|
|
79
|
-
function getValue(thisRef, property) {
|
|
80
|
-
return this.w();
|
|
81
|
-
}
|
|
82
|
-
setMetadataFor(ArgumentValueDelegate, 'ArgumentValueDelegate', interfaceMeta);
|
|
83
|
-
setMetadataFor(Subcommand, 'Subcommand', classMeta, ArgParser);
|
|
84
|
-
setMetadataFor(ArgParserResult, 'ArgParserResult', classMeta);
|
|
85
|
-
setMetadataFor(ArgumentsQueue, 'ArgumentsQueue', classMeta);
|
|
86
|
-
setMetadataFor(ArgType, 'ArgType', classMeta);
|
|
87
|
-
setMetadataFor(Boolean_0, 'Boolean', objectMeta, ArgType);
|
|
88
|
-
setMetadataFor(String_0, 'String', objectMeta, ArgType);
|
|
89
|
-
setMetadataFor(Companion, 'Companion', objectMeta);
|
|
90
|
-
setMetadataFor(Choice, 'Choice', classMeta, ArgType);
|
|
91
|
-
setMetadataFor(ParsingException, 'ParsingException', classMeta, Exception);
|
|
92
|
-
setMetadataFor(ParsingValue, 'ParsingValue', classMeta);
|
|
93
|
-
setMetadataFor(AbstractArgumentSingleValue, 'AbstractArgumentSingleValue', classMeta, ParsingValue);
|
|
94
|
-
setMetadataFor(ArgumentSingleNullableValue, 'ArgumentSingleNullableValue', classMeta, AbstractArgumentSingleValue, [AbstractArgumentSingleValue, ArgumentValueDelegate]);
|
|
95
|
-
setMetadataFor(ArgumentSingleValue, 'ArgumentSingleValue', classMeta, AbstractArgumentSingleValue, [AbstractArgumentSingleValue, ArgumentValueDelegate]);
|
|
96
|
-
setMetadataFor(ArgumentMultipleValues, 'ArgumentMultipleValues', classMeta, ParsingValue, [ParsingValue, ArgumentValueDelegate]);
|
|
97
|
-
setMetadataFor(CLIEntity, 'CLIEntity', classMeta);
|
|
98
|
-
setMetadataFor(Argument, 'Argument', classMeta, CLIEntity);
|
|
99
|
-
setMetadataFor(AbstractSingleArgument, 'AbstractSingleArgument', classMeta, Argument);
|
|
100
|
-
setMetadataFor(SingleArgument, 'SingleArgument', classMeta, AbstractSingleArgument);
|
|
101
|
-
setMetadataFor(CLIEntityWrapper, 'CLIEntityWrapper', classMeta);
|
|
102
|
-
setMetadataFor(MultipleArgument, 'MultipleArgument', classMeta, Argument);
|
|
103
|
-
setMetadataFor(Descriptor, 'Descriptor', classMeta);
|
|
104
|
-
setMetadataFor(OptionDescriptor, 'OptionDescriptor', classMeta, Descriptor);
|
|
105
|
-
setMetadataFor(ArgDescriptor, 'ArgDescriptor', classMeta, Descriptor);
|
|
106
|
-
setMetadataFor(Option, 'Option', classMeta, CLIEntity);
|
|
107
|
-
setMetadataFor(AbstractSingleOption, 'AbstractSingleOption', classMeta, Option);
|
|
108
|
-
setMetadataFor(SingleNullableOption, 'SingleNullableOption', classMeta, AbstractSingleOption);
|
|
109
|
-
setMetadataFor(SingleOption, 'SingleOption', classMeta, AbstractSingleOption);
|
|
110
|
-
setMetadataFor(MultipleOption, 'MultipleOption', classMeta, Option);
|
|
111
|
-
//endregion
|
|
112
|
-
var ValueOrigin_SET_BY_USER_instance;
|
|
113
|
-
var ValueOrigin_SET_DEFAULT_VALUE_instance;
|
|
114
|
-
var ValueOrigin_UNSET_instance;
|
|
115
|
-
var ValueOrigin_REDEFINED_instance;
|
|
116
|
-
var ValueOrigin_UNDEFINED_instance;
|
|
117
|
-
var ValueOrigin_entriesInitialized;
|
|
118
|
-
function ValueOrigin_initEntries() {
|
|
119
|
-
if (ValueOrigin_entriesInitialized)
|
|
120
|
-
return Unit_getInstance();
|
|
121
|
-
ValueOrigin_entriesInitialized = true;
|
|
122
|
-
ValueOrigin_SET_BY_USER_instance = new ValueOrigin('SET_BY_USER', 0);
|
|
123
|
-
ValueOrigin_SET_DEFAULT_VALUE_instance = new ValueOrigin('SET_DEFAULT_VALUE', 1);
|
|
124
|
-
ValueOrigin_UNSET_instance = new ValueOrigin('UNSET', 2);
|
|
125
|
-
ValueOrigin_REDEFINED_instance = new ValueOrigin('REDEFINED', 3);
|
|
126
|
-
ValueOrigin_UNDEFINED_instance = new ValueOrigin('UNDEFINED', 4);
|
|
127
|
-
}
|
|
128
|
-
var OptionPrefixStyle_LINUX_instance;
|
|
129
|
-
var OptionPrefixStyle_JVM_instance;
|
|
130
|
-
var OptionPrefixStyle_GNU_instance;
|
|
131
|
-
var OptionPrefixStyle_entriesInitialized;
|
|
132
|
-
function OptionPrefixStyle_initEntries() {
|
|
133
|
-
if (OptionPrefixStyle_entriesInitialized)
|
|
134
|
-
return Unit_getInstance();
|
|
135
|
-
OptionPrefixStyle_entriesInitialized = true;
|
|
136
|
-
OptionPrefixStyle_LINUX_instance = new OptionPrefixStyle('LINUX', 0);
|
|
137
|
-
OptionPrefixStyle_JVM_instance = new OptionPrefixStyle('JVM', 1);
|
|
138
|
-
OptionPrefixStyle_GNU_instance = new OptionPrefixStyle('GNU', 2);
|
|
139
|
-
}
|
|
140
|
-
function ValueOrigin(name, ordinal) {
|
|
141
|
-
Enum.call(this, name, ordinal);
|
|
142
|
-
}
|
|
143
|
-
function OptionPrefixStyle(name, ordinal) {
|
|
144
|
-
Enum.call(this, name, ordinal);
|
|
145
|
-
}
|
|
146
|
-
function inspectRequiredAndDefaultUsage($this) {
|
|
147
|
-
var previousArgument = null;
|
|
148
|
-
// Inline function 'kotlin.collections.forEach' call
|
|
149
|
-
// Inline function 'kotlin.collections.iterator' call
|
|
150
|
-
var tmp0_iterator = $this.y1w_1.u().c();
|
|
151
|
-
while (tmp0_iterator.d()) {
|
|
152
|
-
var element = tmp0_iterator.e();
|
|
153
|
-
// Inline function 'kotlinx.cli.ArgParser.inspectRequiredAndDefaultUsage.<anonymous>' call
|
|
154
|
-
// Inline function 'kotlin.collections.component2' call
|
|
155
|
-
var currentArgument = element.w();
|
|
156
|
-
var tmp0_safe_receiver = previousArgument;
|
|
157
|
-
if (tmp0_safe_receiver == null)
|
|
158
|
-
null;
|
|
159
|
-
else {
|
|
160
|
-
// Inline function 'kotlin.let' call
|
|
161
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
162
|
-
if (tmp0_safe_receiver.t1x_1.w1x()) {
|
|
163
|
-
if (!currentArgument.t1x_1.w1x() ? currentArgument.t1x_1.q1x_1 : false) {
|
|
164
|
-
// Inline function 'kotlin.error' call
|
|
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.');
|
|
166
|
-
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
var tmp;
|
|
170
|
-
if (!tmp0_safe_receiver.t1x_1.q1x_1) {
|
|
171
|
-
var tmp_0;
|
|
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.');
|
|
174
|
-
throw IllegalStateException_init_$Create$(toString(tmp1_error));
|
|
175
|
-
}
|
|
176
|
-
tmp = tmp_0;
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
previousArgument = currentArgument;
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
function printError($this, message) {
|
|
183
|
-
$this.l1x_1(message + '\n' + $this.x1x(), 127);
|
|
184
|
-
throwKotlinNothingValueException();
|
|
185
|
-
}
|
|
186
|
-
function saveAsArg($this, arg, argumentsQueue) {
|
|
187
|
-
var name = argumentsQueue.z1x();
|
|
188
|
-
if (name == null)
|
|
189
|
-
null;
|
|
190
|
-
else {
|
|
191
|
-
// Inline function 'kotlin.let' call
|
|
192
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
193
|
-
var argumentValue = ensureNotNull($this.y1w_1.o2(name));
|
|
194
|
-
var tmp0_safe_receiver = argumentValue.t1x_1.r1x_1;
|
|
195
|
-
if (tmp0_safe_receiver == null)
|
|
196
|
-
null;
|
|
197
|
-
else {
|
|
198
|
-
// Inline function 'kotlin.let' call
|
|
199
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
200
|
-
printWarning(tmp0_safe_receiver);
|
|
201
|
-
}
|
|
202
|
-
argumentValue.a1y(arg);
|
|
203
|
-
return true;
|
|
204
|
-
}
|
|
205
|
-
return false;
|
|
206
|
-
}
|
|
207
|
-
function treatAsArgument($this, arg, argumentsQueue) {
|
|
208
|
-
if (!saveAsArg($this, arg, argumentsQueue)) {
|
|
209
|
-
var tmp;
|
|
210
|
-
if ($this.k1x_1 == null) {
|
|
211
|
-
tmp = null;
|
|
212
|
-
} else {
|
|
213
|
-
// Inline function 'kotlin.let' call
|
|
214
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
215
|
-
// Inline function 'kotlinx.cli.ArgParser.treatAsArgument.<anonymous>' call
|
|
216
|
-
tmp = ($this.h1x_1 ? $this.j1x_1 : $this.i1x_1).a(arg);
|
|
217
|
-
}
|
|
218
|
-
if (tmp == null) {
|
|
219
|
-
printError($this, "Too many arguments! Couldn't process argument " + arg + '!');
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
function saveAsOption($this, parsingValue, value) {
|
|
224
|
-
parsingValue.a1y(value);
|
|
225
|
-
}
|
|
226
|
-
function recognizeAndSaveOptionFullForm($this, candidate, argIterator) {
|
|
227
|
-
if ($this.u1w_1.equals(OptionPrefixStyle_GNU_getInstance()) ? candidate === $this.e1x_1 : false) {
|
|
228
|
-
$this.h1x_1 = false;
|
|
229
|
-
return false;
|
|
230
|
-
}
|
|
231
|
-
if (!startsWith(candidate, $this.e1x_1))
|
|
232
|
-
return false;
|
|
233
|
-
// Inline function 'kotlin.text.substring' call
|
|
234
|
-
var tmp0_substring = $this.e1x_1.length;
|
|
235
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
236
|
-
var optionString = candidate.substring(tmp0_substring);
|
|
237
|
-
var argValue = $this.u1w_1.equals(OptionPrefixStyle_GNU_getInstance()) ? null : $this.x1w_1.o2(optionString);
|
|
238
|
-
if (!(argValue == null)) {
|
|
239
|
-
saveStandardOptionForm($this, argValue, argIterator);
|
|
240
|
-
return true;
|
|
241
|
-
} else {
|
|
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)));
|
|
248
|
-
return true;
|
|
249
|
-
}
|
|
250
|
-
var optionParts = split(optionString, charArrayOf([_Char___init__impl__6a9atx(61)]), VOID, 2);
|
|
251
|
-
if (!(optionParts.f() === 2))
|
|
252
|
-
return false;
|
|
253
|
-
if (!($this.x1w_1.o2(optionParts.h(0)) == null)) {
|
|
254
|
-
saveAsOption($this, ensureNotNull($this.x1w_1.o2(optionParts.h(0))), optionParts.h(1));
|
|
255
|
-
return true;
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
|
-
return false;
|
|
260
|
-
}
|
|
261
|
-
function saveStandardOptionForm($this, argValue, argIterator) {
|
|
262
|
-
if (argValue.t1x_1.m1x_1.c1y_1) {
|
|
263
|
-
if (argIterator.d()) {
|
|
264
|
-
saveAsOption($this, argValue, argIterator.e());
|
|
265
|
-
} else {
|
|
266
|
-
printError($this, 'No value for ' + argValue.t1x_1.d1y());
|
|
267
|
-
}
|
|
268
|
-
} else {
|
|
269
|
-
$this.b1y(argValue);
|
|
270
|
-
}
|
|
271
|
-
}
|
|
272
|
-
function recognizeAndSaveOptionShortForm($this, candidate, argIterator) {
|
|
273
|
-
if (!startsWith(candidate, $this.f1x_1) ? true : !($this.e1x_1 === $this.f1x_1) ? startsWith(candidate, $this.e1x_1) : false)
|
|
274
|
-
return false;
|
|
275
|
-
// Inline function 'kotlin.text.substring' call
|
|
276
|
-
var tmp0_substring = $this.f1x_1.length;
|
|
277
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
278
|
-
var option = candidate.substring(tmp0_substring);
|
|
279
|
-
var argValue = $this.d1x_1.o2(option);
|
|
280
|
-
if (!(argValue == null)) {
|
|
281
|
-
saveStandardOptionForm($this, argValue, argIterator);
|
|
282
|
-
} else {
|
|
283
|
-
var tmp;
|
|
284
|
-
if (!$this.u1w_1.equals(OptionPrefixStyle_GNU_getInstance())) {
|
|
285
|
-
tmp = true;
|
|
286
|
-
} else {
|
|
287
|
-
// Inline function 'kotlin.text.isEmpty' call
|
|
288
|
-
tmp = charSequenceLength(option) === 0;
|
|
289
|
-
}
|
|
290
|
-
if (tmp)
|
|
291
|
-
return false;
|
|
292
|
-
var tmp0_elvis_lhs = $this.d1x_1.o2('' + new Char(charSequenceGet(option, 0)));
|
|
293
|
-
var tmp_0;
|
|
294
|
-
if (tmp0_elvis_lhs == null) {
|
|
295
|
-
return false;
|
|
296
|
-
} else {
|
|
297
|
-
tmp_0 = tmp0_elvis_lhs;
|
|
298
|
-
}
|
|
299
|
-
var firstOption = tmp_0;
|
|
300
|
-
if (firstOption.t1x_1.m1x_1.c1y_1) {
|
|
301
|
-
var tmp$ret$4;
|
|
302
|
-
// Inline function 'kotlin.text.substring' call
|
|
303
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
304
|
-
tmp$ret$4 = option.substring(1);
|
|
305
|
-
saveAsOption($this, firstOption, tmp$ret$4);
|
|
306
|
-
} else {
|
|
307
|
-
// Inline function 'kotlin.text.substring' call
|
|
308
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
309
|
-
var otherBooleanOptions = option.substring(1);
|
|
310
|
-
$this.b1y(firstOption);
|
|
311
|
-
var inductionVariable = 0;
|
|
312
|
-
var last = otherBooleanOptions.length;
|
|
313
|
-
while (inductionVariable < last) {
|
|
314
|
-
var opt = charSequenceGet(otherBooleanOptions, inductionVariable);
|
|
315
|
-
inductionVariable = inductionVariable + 1 | 0;
|
|
316
|
-
var tmp2_safe_receiver = $this.d1x_1.o2('' + new Char(opt));
|
|
317
|
-
var tmp_1;
|
|
318
|
-
if (tmp2_safe_receiver == null) {
|
|
319
|
-
tmp_1 = null;
|
|
320
|
-
} else {
|
|
321
|
-
// Inline function 'kotlin.let' call
|
|
322
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
323
|
-
var tmp_2;
|
|
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.');
|
|
326
|
-
}
|
|
327
|
-
tmp_1 = Unit_getInstance();
|
|
328
|
-
}
|
|
329
|
-
if (tmp_1 == null) {
|
|
330
|
-
printError($this, 'Unknown option ' + $this.f1x_1 + new Char(opt) + ' in option combination ' + candidate + '.');
|
|
331
|
-
}
|
|
332
|
-
$this.b1y(ensureNotNull($this.d1x_1.o2('' + new Char(opt))));
|
|
333
|
-
}
|
|
334
|
-
}
|
|
335
|
-
}
|
|
336
|
-
return true;
|
|
337
|
-
}
|
|
338
|
-
function ArgParser$outputAndTerminate$lambda(message, exitCode) {
|
|
339
|
-
println(message);
|
|
340
|
-
exitProcess(exitCode);
|
|
341
|
-
}
|
|
342
|
-
function ValueOrigin_SET_BY_USER_getInstance() {
|
|
343
|
-
ValueOrigin_initEntries();
|
|
344
|
-
return ValueOrigin_SET_BY_USER_instance;
|
|
345
|
-
}
|
|
346
|
-
function ValueOrigin_SET_DEFAULT_VALUE_getInstance() {
|
|
347
|
-
ValueOrigin_initEntries();
|
|
348
|
-
return ValueOrigin_SET_DEFAULT_VALUE_instance;
|
|
349
|
-
}
|
|
350
|
-
function ValueOrigin_UNSET_getInstance() {
|
|
351
|
-
ValueOrigin_initEntries();
|
|
352
|
-
return ValueOrigin_UNSET_instance;
|
|
353
|
-
}
|
|
354
|
-
function ValueOrigin_UNDEFINED_getInstance() {
|
|
355
|
-
ValueOrigin_initEntries();
|
|
356
|
-
return ValueOrigin_UNDEFINED_instance;
|
|
357
|
-
}
|
|
358
|
-
function OptionPrefixStyle_LINUX_getInstance() {
|
|
359
|
-
OptionPrefixStyle_initEntries();
|
|
360
|
-
return OptionPrefixStyle_LINUX_instance;
|
|
361
|
-
}
|
|
362
|
-
function OptionPrefixStyle_JVM_getInstance() {
|
|
363
|
-
OptionPrefixStyle_initEntries();
|
|
364
|
-
return OptionPrefixStyle_JVM_instance;
|
|
365
|
-
}
|
|
366
|
-
function OptionPrefixStyle_GNU_getInstance() {
|
|
367
|
-
OptionPrefixStyle_initEntries();
|
|
368
|
-
return OptionPrefixStyle_GNU_instance;
|
|
369
|
-
}
|
|
370
|
-
function ArgParser(programName, useDefaultHelpShortName, prefixStyle, skipExtraArguments, strictSubcommandOptionsOrder) {
|
|
371
|
-
useDefaultHelpShortName = useDefaultHelpShortName === VOID ? true : useDefaultHelpShortName;
|
|
372
|
-
prefixStyle = prefixStyle === VOID ? OptionPrefixStyle_LINUX_getInstance() : prefixStyle;
|
|
373
|
-
skipExtraArguments = skipExtraArguments === VOID ? false : skipExtraArguments;
|
|
374
|
-
strictSubcommandOptionsOrder = strictSubcommandOptionsOrder === VOID ? false : strictSubcommandOptionsOrder;
|
|
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;
|
|
380
|
-
var tmp = this;
|
|
381
|
-
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
382
|
-
tmp.x1w_1 = LinkedHashMap_init_$Create$();
|
|
383
|
-
var tmp_0 = this;
|
|
384
|
-
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
385
|
-
tmp_0.y1w_1 = LinkedHashMap_init_$Create$();
|
|
386
|
-
var tmp_1 = this;
|
|
387
|
-
// Inline function 'kotlin.collections.mutableListOf' call
|
|
388
|
-
tmp_1.z1w_1 = ArrayList_init_$Create$();
|
|
389
|
-
var tmp_2 = this;
|
|
390
|
-
// Inline function 'kotlin.collections.mutableListOf' call
|
|
391
|
-
tmp_2.a1x_1 = ArrayList_init_$Create$();
|
|
392
|
-
this.b1x_1 = null;
|
|
393
|
-
var tmp_3 = this;
|
|
394
|
-
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
395
|
-
tmp_3.c1x_1 = LinkedHashMap_init_$Create$();
|
|
396
|
-
var tmp_4 = this;
|
|
397
|
-
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
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;
|
|
403
|
-
var tmp_5 = this;
|
|
404
|
-
// Inline function 'kotlin.collections.mutableListOf' call
|
|
405
|
-
tmp_5.i1x_1 = ArrayList_init_$Create$();
|
|
406
|
-
var tmp_6 = this;
|
|
407
|
-
// Inline function 'kotlin.collections.mutableListOf' call
|
|
408
|
-
tmp_6.j1x_1 = ArrayList_init_$Create$();
|
|
409
|
-
this.k1x_1 = null;
|
|
410
|
-
var tmp_7 = this;
|
|
411
|
-
tmp_7.l1x_1 = ArgParser$outputAndTerminate$lambda;
|
|
412
|
-
}
|
|
413
|
-
protoOf(ArgParser).f1y = function (type, fullName, shortName, description, deprecatedWarning) {
|
|
414
|
-
if (this.u1w_1.equals(OptionPrefixStyle_GNU_getInstance()) ? !(shortName == null) : false) {
|
|
415
|
-
// Inline function 'kotlin.require' call
|
|
416
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
417
|
-
if (!(shortName.length === 1)) {
|
|
418
|
-
// Inline function 'kotlinx.cli.ArgParser.option.<anonymous>' call
|
|
419
|
-
var message = 'GNU standard for options allow to use short form which consists of one character. \nFor more information, please, see https://www.gnu.org/software/libc/manual/html_node/Argument-Syntax.html';
|
|
420
|
-
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
421
|
-
}
|
|
422
|
-
}
|
|
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);
|
|
426
|
-
return option;
|
|
427
|
-
};
|
|
428
|
-
protoOf(ArgParser).k1y = function (type, fullName, shortName, description, deprecatedWarning, $super) {
|
|
429
|
-
fullName = fullName === VOID ? null : fullName;
|
|
430
|
-
shortName = shortName === VOID ? null : shortName;
|
|
431
|
-
description = description === VOID ? null : description;
|
|
432
|
-
deprecatedWarning = deprecatedWarning === VOID ? null : deprecatedWarning;
|
|
433
|
-
return $super === VOID ? this.f1y(type, fullName, shortName, description, deprecatedWarning) : $super.f1y.call(this, type, fullName, shortName, description, deprecatedWarning);
|
|
434
|
-
};
|
|
435
|
-
protoOf(ArgParser).l1y = function (type, fullName, description, deprecatedWarning) {
|
|
436
|
-
var argument = new SingleArgument(new ArgDescriptor(type, fullName, 1, description, VOID, VOID, deprecatedWarning), new CLIEntityWrapper());
|
|
437
|
-
argument.i1y_1.g1y_1 = argument;
|
|
438
|
-
this.a1x_1.a(argument.i1y_1);
|
|
439
|
-
return argument;
|
|
440
|
-
};
|
|
441
|
-
protoOf(ArgParser).m1y = function (type, fullName, description, deprecatedWarning, $super) {
|
|
442
|
-
fullName = fullName === VOID ? null : fullName;
|
|
443
|
-
description = description === VOID ? null : description;
|
|
444
|
-
deprecatedWarning = deprecatedWarning === VOID ? null : deprecatedWarning;
|
|
445
|
-
return $super === VOID ? this.l1y(type, fullName, description, deprecatedWarning) : $super.l1y.call(this, type, fullName, description, deprecatedWarning);
|
|
446
|
-
};
|
|
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;
|
|
488
|
-
if (tmp0_safe_receiver == null)
|
|
489
|
-
null;
|
|
490
|
-
else {
|
|
491
|
-
// Inline function 'kotlin.let' call
|
|
492
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
493
|
-
// Inline function 'kotlinx.cli.ArgParser.saveOptionWithoutParameter.<anonymous>' call
|
|
494
|
-
tmp0_safe_receiver.k1z(listOf(tmp0_safe_receiver.e1x_1 + argValue.t1x_1.n1x_1));
|
|
495
|
-
}
|
|
496
|
-
this.l1x_1(this.x1x(), 0);
|
|
497
|
-
throwKotlinNothingValueException();
|
|
498
|
-
}
|
|
499
|
-
saveAsOption(this, argValue, 'true');
|
|
500
|
-
};
|
|
501
|
-
protoOf(ArgParser).l1z = function (args) {
|
|
502
|
-
return this.k1z(asList(args));
|
|
503
|
-
};
|
|
504
|
-
protoOf(ArgParser).k1z = function (args) {
|
|
505
|
-
// Inline function 'kotlin.check' call
|
|
506
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
507
|
-
if (!(this.b1x_1 == null)) {
|
|
508
|
-
// Inline function 'kotlinx.cli.ArgParser.parse.<anonymous>' call
|
|
509
|
-
var message = 'Parsing of command line options can be called only once.';
|
|
510
|
-
throw IllegalStateException_init_$Create$(toString(message));
|
|
511
|
-
}
|
|
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');
|
|
513
|
-
var helpOption = new SingleNullableOption(helpDescriptor, new CLIEntityWrapper());
|
|
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(), ''));
|
|
518
|
-
}
|
|
519
|
-
this.x1w_1.h9();
|
|
520
|
-
this.y1w_1.h9();
|
|
521
|
-
// Inline function 'kotlin.collections.forEachIndexed' call
|
|
522
|
-
var index = 0;
|
|
523
|
-
var tmp0_iterator = this.z1w_1.c();
|
|
524
|
-
while (tmp0_iterator.d()) {
|
|
525
|
-
var item = tmp0_iterator.e();
|
|
526
|
-
// Inline function 'kotlinx.cli.ArgParser.parse.<anonymous>' call
|
|
527
|
-
var tmp1 = index;
|
|
528
|
-
index = tmp1 + 1 | 0;
|
|
529
|
-
var tmp2_anonymous = checkIndexOverflow(tmp1);
|
|
530
|
-
var tmp0_safe_receiver = item.g1y_1;
|
|
531
|
-
var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.h1y_1;
|
|
532
|
-
var value = tmp instanceof ParsingValue ? tmp : THROW_CCE();
|
|
533
|
-
var tmp1_safe_receiver = value.t1x_1.n1x_1;
|
|
534
|
-
var tmp_0;
|
|
535
|
-
if (tmp1_safe_receiver == null) {
|
|
536
|
-
tmp_0 = null;
|
|
537
|
-
} else {
|
|
538
|
-
// Inline function 'kotlin.let' call
|
|
539
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
540
|
-
if (this.x1w_1.k2(tmp1_safe_receiver)) {
|
|
541
|
-
// Inline function 'kotlin.error' call
|
|
542
|
-
var tmp0_error = 'Option with full name ' + tmp1_safe_receiver + ' was already added.';
|
|
543
|
-
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
544
|
-
}
|
|
545
|
-
// Inline function 'kotlin.with' call
|
|
546
|
-
var tmp_1 = value.t1x_1;
|
|
547
|
-
var tmp1_with = tmp_1 instanceof OptionDescriptor ? tmp_1 : THROW_CCE();
|
|
548
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
549
|
-
// Inline function 'kotlinx.cli.ArgParser.parse.<anonymous>.<anonymous>.<anonymous>' call
|
|
550
|
-
if (!(tmp1_with.v1z_1 == null) ? this.d1x_1.k2(tmp1_with.v1z_1) : false) {
|
|
551
|
-
// Inline function 'kotlin.error' call
|
|
552
|
-
var tmp0_error_0 = 'Option with short name ' + tmp1_with.v1z_1 + ' was already added.';
|
|
553
|
-
throw IllegalStateException_init_$Create$(toString(tmp0_error_0));
|
|
554
|
-
}
|
|
555
|
-
var tmp0_safe_receiver_0 = tmp1_with.v1z_1;
|
|
556
|
-
var tmp_2;
|
|
557
|
-
if (tmp0_safe_receiver_0 == null) {
|
|
558
|
-
tmp_2 = null;
|
|
559
|
-
} else {
|
|
560
|
-
// Inline function 'kotlin.let' call
|
|
561
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
562
|
-
this.d1x_1.m3(tmp0_safe_receiver_0, value);
|
|
563
|
-
tmp_2 = Unit_getInstance();
|
|
564
|
-
}
|
|
565
|
-
this.x1w_1.m3(tmp1_safe_receiver, value);
|
|
566
|
-
tmp_0 = Unit_getInstance();
|
|
567
|
-
}
|
|
568
|
-
if (tmp_0 == null) {
|
|
569
|
-
// Inline function 'kotlin.error' call
|
|
570
|
-
var tmp0_error_1 = 'Option was added, but unnamed. Added option under \u2116' + (tmp2_anonymous + 1 | 0);
|
|
571
|
-
throw IllegalStateException_init_$Create$(toString(tmp0_error_1));
|
|
572
|
-
}
|
|
573
|
-
}
|
|
574
|
-
// Inline function 'kotlin.collections.forEachIndexed' call
|
|
575
|
-
var index_0 = 0;
|
|
576
|
-
var tmp0_iterator_0 = this.a1x_1.c();
|
|
577
|
-
while (tmp0_iterator_0.d()) {
|
|
578
|
-
var item_0 = tmp0_iterator_0.e();
|
|
579
|
-
// Inline function 'kotlinx.cli.ArgParser.parse.<anonymous>' call
|
|
580
|
-
var tmp1_0 = index_0;
|
|
581
|
-
index_0 = tmp1_0 + 1 | 0;
|
|
582
|
-
var tmp4_anonymous = checkIndexOverflow(tmp1_0);
|
|
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;
|
|
585
|
-
var value_0 = tmp_3 instanceof ParsingValue ? tmp_3 : THROW_CCE();
|
|
586
|
-
var tmp1_safe_receiver_0 = value_0.t1x_1.n1x_1;
|
|
587
|
-
var tmp_4;
|
|
588
|
-
if (tmp1_safe_receiver_0 == null) {
|
|
589
|
-
tmp_4 = null;
|
|
590
|
-
} else {
|
|
591
|
-
// Inline function 'kotlin.let' call
|
|
592
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
593
|
-
if (this.y1w_1.k2(tmp1_safe_receiver_0)) {
|
|
594
|
-
// Inline function 'kotlin.error' call
|
|
595
|
-
var tmp0_error_2 = 'Argument with full name ' + tmp1_safe_receiver_0 + ' was already added.';
|
|
596
|
-
throw IllegalStateException_init_$Create$(toString(tmp0_error_2));
|
|
597
|
-
}
|
|
598
|
-
this.y1w_1.m3(tmp1_safe_receiver_0, value_0);
|
|
599
|
-
tmp_4 = Unit_getInstance();
|
|
600
|
-
}
|
|
601
|
-
if (tmp_4 == null) {
|
|
602
|
-
// Inline function 'kotlin.error' call
|
|
603
|
-
var tmp0_error_3 = 'Argument was added, but unnamed. Added argument under \u2116' + (tmp4_anonymous + 1 | 0);
|
|
604
|
-
throw IllegalStateException_init_$Create$(toString(tmp0_error_3));
|
|
605
|
-
}
|
|
606
|
-
}
|
|
607
|
-
inspectRequiredAndDefaultUsage(this);
|
|
608
|
-
// Inline function 'kotlin.collections.forEach' call
|
|
609
|
-
var tmp0_iterator_1 = listOf_0([this.y1w_1, this.x1w_1]).c();
|
|
610
|
-
while (tmp0_iterator_1.d()) {
|
|
611
|
-
var element = tmp0_iterator_1.e();
|
|
612
|
-
// Inline function 'kotlinx.cli.ArgParser.parse.<anonymous>' call
|
|
613
|
-
// Inline function 'kotlin.collections.forEach' call
|
|
614
|
-
// Inline function 'kotlin.collections.iterator' call
|
|
615
|
-
var tmp0_iterator_2 = element.u().c();
|
|
616
|
-
while (tmp0_iterator_2.d()) {
|
|
617
|
-
var element_0 = tmp0_iterator_2.e();
|
|
618
|
-
// Inline function 'kotlinx.cli.ArgParser.parse.<anonymous>.<anonymous>' call
|
|
619
|
-
// Inline function 'kotlin.collections.component2' call
|
|
620
|
-
var value_1 = element_0.w();
|
|
621
|
-
value_1.v1x_1 = ValueOrigin_UNSET_getInstance();
|
|
622
|
-
}
|
|
623
|
-
}
|
|
624
|
-
// Inline function 'kotlin.collections.map' call
|
|
625
|
-
var tmp6_map = this.y1w_1;
|
|
626
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
627
|
-
var tmp0_mapTo = ArrayList_init_$Create$_0(tmp6_map.f());
|
|
628
|
-
// Inline function 'kotlin.collections.iterator' call
|
|
629
|
-
var tmp0_iterator_3 = tmp6_map.u().c();
|
|
630
|
-
while (tmp0_iterator_3.d()) {
|
|
631
|
-
var item_1 = tmp0_iterator_3.e();
|
|
632
|
-
var tmp$ret$9;
|
|
633
|
-
// Inline function 'kotlinx.cli.ArgParser.parse.<anonymous>' call
|
|
634
|
-
var tmp_5 = item_1.w().t1x_1;
|
|
635
|
-
tmp$ret$9 = tmp_5 instanceof ArgDescriptor ? tmp_5 : THROW_CCE();
|
|
636
|
-
tmp0_mapTo.a(tmp$ret$9);
|
|
637
|
-
}
|
|
638
|
-
var argumentsQueue = new ArgumentsQueue(tmp0_mapTo);
|
|
639
|
-
this.k1x_1 = null;
|
|
640
|
-
this.j1x_1.h9();
|
|
641
|
-
this.i1x_1.h9();
|
|
642
|
-
var argIterator = args.r1();
|
|
643
|
-
try {
|
|
644
|
-
$l$loop: while (argIterator.d()) {
|
|
645
|
-
var arg = argIterator.e();
|
|
646
|
-
// Inline function 'kotlin.collections.contains' call
|
|
647
|
-
var tmp7_contains = this.c1x_1;
|
|
648
|
-
// Inline function 'kotlin.collections.containsKey' call
|
|
649
|
-
if (!(isInterface(tmp7_contains, Map) ? tmp7_contains : THROW_CCE()).k2(arg)) {
|
|
650
|
-
if (this.h1x_1 ? startsWith_0(arg, _Char___init__impl__6a9atx(45)) : false) {
|
|
651
|
-
if (!(recognizeAndSaveOptionShortForm(this, arg, argIterator) ? true : recognizeAndSaveOptionFullForm(this, arg, argIterator))) {
|
|
652
|
-
if (!this.h1x_1) {
|
|
653
|
-
treatAsArgument(this, argIterator.e(), argumentsQueue);
|
|
654
|
-
} else {
|
|
655
|
-
var tmp_6;
|
|
656
|
-
if (this.k1x_1 == null) {
|
|
657
|
-
tmp_6 = null;
|
|
658
|
-
} else {
|
|
659
|
-
// Inline function 'kotlin.let' call
|
|
660
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
661
|
-
// Inline function 'kotlinx.cli.ArgParser.parse.<anonymous>' call
|
|
662
|
-
tmp_6 = this.j1x_1.a(arg);
|
|
663
|
-
}
|
|
664
|
-
if (tmp_6 == null) {
|
|
665
|
-
// Inline function 'kotlin.run' call
|
|
666
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
667
|
-
var tmp_7;
|
|
668
|
-
if (!saveAsArg(this, arg, argumentsQueue)) {
|
|
669
|
-
printError(this, 'Unknown option ' + arg);
|
|
670
|
-
}
|
|
671
|
-
}
|
|
672
|
-
}
|
|
673
|
-
}
|
|
674
|
-
} else {
|
|
675
|
-
treatAsArgument(this, arg, argumentsQueue);
|
|
676
|
-
}
|
|
677
|
-
} else {
|
|
678
|
-
this.k1x_1 = this.c1x_1.o2(arg);
|
|
679
|
-
if (this.w1w_1) {
|
|
680
|
-
break $l$loop;
|
|
681
|
-
}
|
|
682
|
-
}
|
|
683
|
-
}
|
|
684
|
-
// Inline function 'kotlin.collections.forEach' call
|
|
685
|
-
var tmp0_iterator_4 = union(this.x1w_1.oa(), this.y1w_1.oa()).c();
|
|
686
|
-
while (tmp0_iterator_4.d()) {
|
|
687
|
-
var element_1 = tmp0_iterator_4.e();
|
|
688
|
-
// Inline function 'kotlinx.cli.ArgParser.parse.<anonymous>' call
|
|
689
|
-
if (element_1.g()) {
|
|
690
|
-
element_1.y1z();
|
|
691
|
-
}
|
|
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.');
|
|
694
|
-
}
|
|
695
|
-
}
|
|
696
|
-
var tmp2_safe_receiver = this.k1x_1;
|
|
697
|
-
if (tmp2_safe_receiver == null)
|
|
698
|
-
null;
|
|
699
|
-
else {
|
|
700
|
-
// Inline function 'kotlin.let' call
|
|
701
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
702
|
-
if (this.w1w_1) {
|
|
703
|
-
tmp2_safe_receiver.k1z(slice(args, until(argIterator.y1(), args.f())));
|
|
704
|
-
} else {
|
|
705
|
-
var tmp$ret$18;
|
|
706
|
-
// Inline function 'kotlin.takeUnless' call
|
|
707
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
708
|
-
var tmp_8;
|
|
709
|
-
// Inline function 'kotlinx.cli.ArgParser.parse.<anonymous>.<anonymous>' call
|
|
710
|
-
if (!this.h1x_1) {
|
|
711
|
-
tmp_8 = '--';
|
|
712
|
-
} else {
|
|
713
|
-
tmp_8 = null;
|
|
714
|
-
}
|
|
715
|
-
tmp$ret$18 = tmp_8;
|
|
716
|
-
tmp2_safe_receiver.k1z(plus(plus(this.j1x_1, listOfNotNull(tmp$ret$18)), this.i1x_1));
|
|
717
|
-
}
|
|
718
|
-
tmp2_safe_receiver.z1z();
|
|
719
|
-
this.b1x_1 = new ArgParserResult(tmp2_safe_receiver.i1z_1);
|
|
720
|
-
return ensureNotNull(this.b1x_1);
|
|
721
|
-
}
|
|
722
|
-
} catch ($p) {
|
|
723
|
-
if ($p instanceof ParsingException) {
|
|
724
|
-
var exception = $p;
|
|
725
|
-
printError(this, ensureNotNull(exception.message));
|
|
726
|
-
} else {
|
|
727
|
-
throw $p;
|
|
728
|
-
}
|
|
729
|
-
}
|
|
730
|
-
this.b1x_1 = new ArgParserResult(this.s1w_1);
|
|
731
|
-
return ensureNotNull(this.b1x_1);
|
|
732
|
-
};
|
|
733
|
-
protoOf(ArgParser).x1x = function () {
|
|
734
|
-
var result = StringBuilder_init_$Create$();
|
|
735
|
-
result.f6('Usage: ' + joinToString(this.g1x_1, ' ') + ' options_list\n');
|
|
736
|
-
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
737
|
-
if (!this.c1x_1.g()) {
|
|
738
|
-
result.f6('Subcommands: \n');
|
|
739
|
-
// Inline function 'kotlin.collections.forEach' call
|
|
740
|
-
// Inline function 'kotlin.collections.iterator' call
|
|
741
|
-
var tmp0_iterator = this.c1x_1.u().c();
|
|
742
|
-
while (tmp0_iterator.d()) {
|
|
743
|
-
var element = tmp0_iterator.e();
|
|
744
|
-
// Inline function 'kotlinx.cli.ArgParser.makeUsage.<anonymous>' call
|
|
745
|
-
// Inline function 'kotlin.collections.component2' call
|
|
746
|
-
var subcommand = element.w();
|
|
747
|
-
result.f6(subcommand.a20());
|
|
748
|
-
}
|
|
749
|
-
result.f6('\n');
|
|
750
|
-
}
|
|
751
|
-
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
752
|
-
if (!this.y1w_1.g()) {
|
|
753
|
-
result.f6('Arguments: \n');
|
|
754
|
-
// Inline function 'kotlin.collections.forEach' call
|
|
755
|
-
// Inline function 'kotlin.collections.iterator' call
|
|
756
|
-
var tmp0_iterator_0 = this.y1w_1.u().c();
|
|
757
|
-
while (tmp0_iterator_0.d()) {
|
|
758
|
-
var element_0 = tmp0_iterator_0.e();
|
|
759
|
-
// Inline function 'kotlinx.cli.ArgParser.makeUsage.<anonymous>' call
|
|
760
|
-
result.f6(element_0.w().t1x_1.a20());
|
|
761
|
-
}
|
|
762
|
-
}
|
|
763
|
-
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
764
|
-
if (!this.x1w_1.g()) {
|
|
765
|
-
result.f6('Options: \n');
|
|
766
|
-
// Inline function 'kotlin.collections.forEach' call
|
|
767
|
-
// Inline function 'kotlin.collections.iterator' call
|
|
768
|
-
var tmp0_iterator_1 = this.x1w_1.u().c();
|
|
769
|
-
while (tmp0_iterator_1.d()) {
|
|
770
|
-
var element_1 = tmp0_iterator_1.e();
|
|
771
|
-
// Inline function 'kotlinx.cli.ArgParser.makeUsage.<anonymous>' call
|
|
772
|
-
result.f6(element_1.w().t1x_1.a20());
|
|
773
|
-
}
|
|
774
|
-
}
|
|
775
|
-
return result.toString();
|
|
776
|
-
};
|
|
777
|
-
function ArgumentValueDelegate() {
|
|
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
|
-
};
|
|
787
|
-
function ArgParserResult(commandName) {
|
|
788
|
-
this.c20_1 = commandName;
|
|
789
|
-
}
|
|
790
|
-
function ArgumentsQueue(argumentsDescriptors) {
|
|
791
|
-
var tmp = this;
|
|
792
|
-
var tmp$ret$3;
|
|
793
|
-
// Inline function 'kotlin.collections.toTypedArray' call
|
|
794
|
-
// Inline function 'kotlin.collections.map' call
|
|
795
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
796
|
-
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(argumentsDescriptors, 10));
|
|
797
|
-
var tmp0_iterator = argumentsDescriptors.c();
|
|
798
|
-
while (tmp0_iterator.d()) {
|
|
799
|
-
var item = tmp0_iterator.e();
|
|
800
|
-
var tmp$ret$0;
|
|
801
|
-
// Inline function 'kotlinx.cli.ArgumentsQueue.argumentsUsageNumber.<anonymous>' call
|
|
802
|
-
tmp$ret$0 = to(item, 0);
|
|
803
|
-
tmp0_mapTo.a(tmp$ret$0);
|
|
804
|
-
}
|
|
805
|
-
tmp$ret$3 = copyToArray(tmp0_mapTo);
|
|
806
|
-
tmp.y1x_1 = linkedMapOf(tmp$ret$3.slice());
|
|
807
|
-
}
|
|
808
|
-
protoOf(ArgumentsQueue).z1x = function () {
|
|
809
|
-
if (this.y1x_1.g())
|
|
810
|
-
return null;
|
|
811
|
-
// Inline function 'kotlin.collections.iterator' call
|
|
812
|
-
var tmp0_container = this.y1x_1.u().c().e();
|
|
813
|
-
// Inline function 'kotlin.collections.component1' call
|
|
814
|
-
var currentDescriptor = tmp0_container.v();
|
|
815
|
-
// Inline function 'kotlin.collections.component2' call
|
|
816
|
-
var usageNumber = tmp0_container.w();
|
|
817
|
-
if (currentDescriptor.k20_1 == null)
|
|
818
|
-
null;
|
|
819
|
-
else {
|
|
820
|
-
// Inline function 'kotlin.let' call
|
|
821
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
822
|
-
// Inline function 'kotlinx.cli.ArgumentsQueue.pop.<anonymous>' call
|
|
823
|
-
var tmp;
|
|
824
|
-
if ((usageNumber + 1 | 0) >= currentDescriptor.k20_1) {
|
|
825
|
-
tmp = this.y1x_1.fb(currentDescriptor);
|
|
826
|
-
} else {
|
|
827
|
-
var tmp0_set = this.y1x_1;
|
|
828
|
-
var tmp1_set = usageNumber + 1 | 0;
|
|
829
|
-
tmp0_set.m3(currentDescriptor, tmp1_set);
|
|
830
|
-
tmp = Unit_getInstance();
|
|
831
|
-
}
|
|
832
|
-
}
|
|
833
|
-
return currentDescriptor.n1x_1;
|
|
834
|
-
};
|
|
835
|
-
function printWarning(message) {
|
|
836
|
-
println('WARNING ' + message);
|
|
837
|
-
}
|
|
838
|
-
function ArgType$Choice$_init_$lambda_7m7ro6(it) {
|
|
839
|
-
return toString(it);
|
|
840
|
-
}
|
|
841
|
-
function Boolean_0() {
|
|
842
|
-
Boolean_instance = this;
|
|
843
|
-
ArgType.call(this, false);
|
|
844
|
-
}
|
|
845
|
-
protoOf(Boolean_0).e1y = function () {
|
|
846
|
-
return '';
|
|
847
|
-
};
|
|
848
|
-
protoOf(Boolean_0).m20 = function (value, name) {
|
|
849
|
-
return !(value === 'false');
|
|
850
|
-
};
|
|
851
|
-
var Boolean_instance;
|
|
852
|
-
function Boolean_getInstance() {
|
|
853
|
-
if (Boolean_instance == null)
|
|
854
|
-
new Boolean_0();
|
|
855
|
-
return Boolean_instance;
|
|
856
|
-
}
|
|
857
|
-
function String_0() {
|
|
858
|
-
String_instance = this;
|
|
859
|
-
ArgType.call(this, true);
|
|
860
|
-
}
|
|
861
|
-
protoOf(String_0).e1y = function () {
|
|
862
|
-
return '{ String }';
|
|
863
|
-
};
|
|
864
|
-
protoOf(String_0).m20 = function (value, name) {
|
|
865
|
-
return value;
|
|
866
|
-
};
|
|
867
|
-
var String_instance;
|
|
868
|
-
function String_getInstance() {
|
|
869
|
-
if (String_instance == null)
|
|
870
|
-
new String_0();
|
|
871
|
-
return String_instance;
|
|
872
|
-
}
|
|
873
|
-
function Companion() {
|
|
874
|
-
Companion_instance = this;
|
|
875
|
-
}
|
|
876
|
-
var Companion_instance;
|
|
877
|
-
function Companion_getInstance() {
|
|
878
|
-
if (Companion_instance == null)
|
|
879
|
-
new Companion();
|
|
880
|
-
return Companion_instance;
|
|
881
|
-
}
|
|
882
|
-
function Choice(choices, toVariant, variantToString) {
|
|
883
|
-
var tmp;
|
|
884
|
-
if (variantToString === VOID) {
|
|
885
|
-
tmp = ArgType$Choice$_init_$lambda_7m7ro6;
|
|
886
|
-
} else {
|
|
887
|
-
tmp = variantToString;
|
|
888
|
-
}
|
|
889
|
-
variantToString = tmp;
|
|
890
|
-
ArgType.call(this, true);
|
|
891
|
-
this.p20_1 = toVariant;
|
|
892
|
-
this.q20_1 = variantToString;
|
|
893
|
-
var tmp_0 = this;
|
|
894
|
-
// Inline function 'kotlin.collections.associateBy' call
|
|
895
|
-
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(choices, 10)), 16);
|
|
896
|
-
// Inline function 'kotlin.collections.associateByTo' call
|
|
897
|
-
var tmp0_associateByTo = LinkedHashMap_init_$Create$_0(capacity);
|
|
898
|
-
var tmp0_iterator = choices.c();
|
|
899
|
-
while (tmp0_iterator.d()) {
|
|
900
|
-
var element = tmp0_iterator.e();
|
|
901
|
-
var tmp$ret$0;
|
|
902
|
-
// Inline function 'kotlinx.cli.Choice.choicesMap.<anonymous>' call
|
|
903
|
-
tmp$ret$0 = this.q20_1(element);
|
|
904
|
-
tmp0_associateByTo.m3(tmp$ret$0, element);
|
|
905
|
-
}
|
|
906
|
-
tmp_0.r20_1 = tmp0_associateByTo;
|
|
907
|
-
// Inline function 'kotlin.require' call
|
|
908
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
909
|
-
if (!(this.r20_1.f() === choices.f())) {
|
|
910
|
-
// Inline function 'kotlinx.cli.Choice.<anonymous>' call
|
|
911
|
-
var message = 'Command line representations of enum choices are not distinct';
|
|
912
|
-
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
913
|
-
}
|
|
914
|
-
}
|
|
915
|
-
protoOf(Choice).e1y = function () {
|
|
916
|
-
return '{ Value should be one of ' + this.r20_1.p2() + ' }';
|
|
917
|
-
};
|
|
918
|
-
protoOf(Choice).m20 = function (value, name) {
|
|
919
|
-
var tmp;
|
|
920
|
-
try {
|
|
921
|
-
tmp = this.p20_1(value);
|
|
922
|
-
} catch ($p) {
|
|
923
|
-
var tmp_0;
|
|
924
|
-
if ($p instanceof Exception) {
|
|
925
|
-
var e = $p;
|
|
926
|
-
throw new ParsingException('Option ' + name + ' is expected to be one of ' + this.r20_1.p2() + '. ' + value + ' is provided.');
|
|
927
|
-
} else {
|
|
928
|
-
throw $p;
|
|
929
|
-
}
|
|
930
|
-
}
|
|
931
|
-
return tmp;
|
|
932
|
-
};
|
|
933
|
-
function ArgType(hasParameter) {
|
|
934
|
-
Companion_getInstance();
|
|
935
|
-
this.c1y_1 = hasParameter;
|
|
936
|
-
}
|
|
937
|
-
function ParsingException(message) {
|
|
938
|
-
Exception_init_$Init$(message, this);
|
|
939
|
-
captureStack(this, ParsingException);
|
|
940
|
-
}
|
|
941
|
-
function ParsingValue(descriptor) {
|
|
942
|
-
this.t1x_1 = descriptor;
|
|
943
|
-
this.v1x_1 = ValueOrigin_UNDEFINED_getInstance();
|
|
944
|
-
}
|
|
945
|
-
protoOf(ParsingValue).s20 = function () {
|
|
946
|
-
var tmp = this.u1x_1;
|
|
947
|
-
if (!(tmp == null))
|
|
948
|
-
return tmp;
|
|
949
|
-
else {
|
|
950
|
-
throwUninitializedPropertyAccessException('parsedValue');
|
|
951
|
-
}
|
|
952
|
-
};
|
|
953
|
-
protoOf(ParsingValue).t20 = function () {
|
|
954
|
-
return !(this.u1x_1 == null);
|
|
955
|
-
};
|
|
956
|
-
protoOf(ParsingValue).a1y = function (stringValue) {
|
|
957
|
-
var tmp;
|
|
958
|
-
var tmp_0;
|
|
959
|
-
var tmp_1;
|
|
960
|
-
var tmp_2 = this.t1x_1;
|
|
961
|
-
if (tmp_2 instanceof OptionDescriptor) {
|
|
962
|
-
tmp_1 = !this.t1x_1.w1z_1;
|
|
963
|
-
} else {
|
|
964
|
-
tmp_1 = false;
|
|
965
|
-
}
|
|
966
|
-
if (tmp_1) {
|
|
967
|
-
tmp_0 = !this.g();
|
|
968
|
-
} else {
|
|
969
|
-
tmp_0 = false;
|
|
970
|
-
}
|
|
971
|
-
if (tmp_0) {
|
|
972
|
-
tmp = this.t1x_1.x1z_1 == null;
|
|
973
|
-
} else {
|
|
974
|
-
tmp = false;
|
|
975
|
-
}
|
|
976
|
-
if (tmp) {
|
|
977
|
-
throw new ParsingException('Try to provide more than one value for ' + this.t1x_1.n1x_1 + '.');
|
|
978
|
-
}
|
|
979
|
-
var tmp0_safe_receiver = this.t1x_1.r1x_1;
|
|
980
|
-
if (tmp0_safe_receiver == null)
|
|
981
|
-
null;
|
|
982
|
-
else {
|
|
983
|
-
// Inline function 'kotlin.let' call
|
|
984
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
985
|
-
var tmp_3;
|
|
986
|
-
if (this.g()) {
|
|
987
|
-
println('Warning: ' + tmp0_safe_receiver);
|
|
988
|
-
tmp_3 = Unit_getInstance();
|
|
989
|
-
}
|
|
990
|
-
}
|
|
991
|
-
var tmp_4;
|
|
992
|
-
var tmp_5 = this.t1x_1;
|
|
993
|
-
if (tmp_5 instanceof OptionDescriptor) {
|
|
994
|
-
tmp_4 = !(this.t1x_1.x1z_1 == null);
|
|
995
|
-
} else {
|
|
996
|
-
tmp_4 = false;
|
|
997
|
-
}
|
|
998
|
-
if (tmp_4) {
|
|
999
|
-
// Inline function 'kotlin.collections.forEach' call
|
|
1000
|
-
var tmp0_iterator = split_0(stringValue, [this.t1x_1.x1z_1]).c();
|
|
1001
|
-
while (tmp0_iterator.d()) {
|
|
1002
|
-
var element = tmp0_iterator.e();
|
|
1003
|
-
// Inline function 'kotlinx.cli.ParsingValue.addValue.<anonymous>' call
|
|
1004
|
-
this.u20(element);
|
|
1005
|
-
}
|
|
1006
|
-
} else {
|
|
1007
|
-
this.u20(stringValue);
|
|
1008
|
-
}
|
|
1009
|
-
};
|
|
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();
|
|
1014
|
-
}
|
|
1015
|
-
};
|
|
1016
|
-
protoOf(ParsingValue).v20 = function (name) {
|
|
1017
|
-
if (this.t1x_1.n1x_1 == null) {
|
|
1018
|
-
// Inline function 'kotlin.run' call
|
|
1019
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
1020
|
-
this.t1x_1.n1x_1 = name;
|
|
1021
|
-
}
|
|
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
|
-
};
|
|
1030
|
-
function ArgumentSingleValue(descriptor) {
|
|
1031
|
-
AbstractArgumentSingleValue.call(this, descriptor);
|
|
1032
|
-
}
|
|
1033
|
-
protoOf(ArgumentSingleValue).w = function () {
|
|
1034
|
-
var tmp;
|
|
1035
|
-
if (!this.g()) {
|
|
1036
|
-
tmp = this.s20();
|
|
1037
|
-
} else {
|
|
1038
|
-
var tmp0_error = 'Value for argument ' + this.t1x_1.n1x_1 + " isn't set. " + 'ArgParser.parse(...) method should be called before.';
|
|
1039
|
-
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
1040
|
-
}
|
|
1041
|
-
return tmp;
|
|
1042
|
-
};
|
|
1043
|
-
function ArgumentMultipleValues(descriptor) {
|
|
1044
|
-
ParsingValue.call(this, descriptor);
|
|
1045
|
-
var tmp = this;
|
|
1046
|
-
// Inline function 'kotlin.collections.mutableListOf' call
|
|
1047
|
-
tmp.j21_1 = ArrayList_init_$Create$();
|
|
1048
|
-
this.u1x_1 = this.j21_1;
|
|
1049
|
-
}
|
|
1050
|
-
protoOf(ArgumentMultipleValues).w = function () {
|
|
1051
|
-
return this.s20();
|
|
1052
|
-
};
|
|
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();
|
|
1056
|
-
};
|
|
1057
|
-
protoOf(ArgumentMultipleValues).g = function () {
|
|
1058
|
-
return this.s20().g();
|
|
1059
|
-
};
|
|
1060
|
-
function AbstractArgumentSingleValue(descriptor) {
|
|
1061
|
-
ParsingValue.call(this, descriptor);
|
|
1062
|
-
}
|
|
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();
|
|
1067
|
-
} else {
|
|
1068
|
-
throw new ParsingException('Try to provide more than one value ' + this.s20() + ' and ' + stringValue + ' for ' + this.t1x_1.n1x_1 + '.');
|
|
1069
|
-
}
|
|
1070
|
-
};
|
|
1071
|
-
protoOf(AbstractArgumentSingleValue).g = function () {
|
|
1072
|
-
return !this.t20();
|
|
1073
|
-
};
|
|
1074
|
-
function SingleArgument(descriptor, owner) {
|
|
1075
|
-
AbstractSingleArgument.call(this, new ArgumentSingleValue(descriptor), owner);
|
|
1076
|
-
this.n21(descriptor);
|
|
1077
|
-
}
|
|
1078
|
-
function CLIEntityWrapper(entity) {
|
|
1079
|
-
entity = entity === VOID ? null : entity;
|
|
1080
|
-
this.g1y_1 = entity;
|
|
1081
|
-
}
|
|
1082
|
-
protoOf(CLIEntityWrapper).toString = function () {
|
|
1083
|
-
return 'CLIEntityWrapper(entity=' + this.g1y_1 + ')';
|
|
1084
|
-
};
|
|
1085
|
-
protoOf(CLIEntityWrapper).hashCode = function () {
|
|
1086
|
-
return this.g1y_1 == null ? 0 : hashCode(this.g1y_1);
|
|
1087
|
-
};
|
|
1088
|
-
protoOf(CLIEntityWrapper).equals = function (other) {
|
|
1089
|
-
if (this === other)
|
|
1090
|
-
return true;
|
|
1091
|
-
if (!(other instanceof CLIEntityWrapper))
|
|
1092
|
-
return false;
|
|
1093
|
-
var tmp0_other_with_cast = other instanceof CLIEntityWrapper ? other : THROW_CCE();
|
|
1094
|
-
if (!equals(this.g1y_1, tmp0_other_with_cast.g1y_1))
|
|
1095
|
-
return false;
|
|
1096
|
-
return true;
|
|
1097
|
-
};
|
|
1098
|
-
function MultipleArgument(descriptor, owner) {
|
|
1099
|
-
Argument.call(this, new ArgumentMultipleValues(descriptor), owner);
|
|
1100
|
-
if (!(descriptor.k20_1 == null) ? descriptor.k20_1 < 2 : false) {
|
|
1101
|
-
failAssertion("Argument with multiple values can't be initialized with descriptor for single one.");
|
|
1102
|
-
}
|
|
1103
|
-
}
|
|
1104
|
-
function vararg(_this__u8e3s4) {
|
|
1105
|
-
// Inline function 'kotlin.with' call
|
|
1106
|
-
// Inline function 'kotlinx.cli.cast' call
|
|
1107
|
-
var tmp0_cast = _this__u8e3s4.h1y_1;
|
|
1108
|
-
var tmp = (tmp0_cast instanceof ParsingValue ? tmp0_cast : THROW_CCE()).t1x_1;
|
|
1109
|
-
var tmp1_with = tmp instanceof ArgDescriptor ? tmp : THROW_CCE();
|
|
1110
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
1111
|
-
// Inline function 'kotlinx.cli.vararg.<anonymous>' call
|
|
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;
|
|
1114
|
-
return newArgument;
|
|
1115
|
-
}
|
|
1116
|
-
function CLIEntity(delegate, owner) {
|
|
1117
|
-
this.h1y_1 = delegate;
|
|
1118
|
-
this.i1y_1 = owner;
|
|
1119
|
-
this.j1y_1 = false;
|
|
1120
|
-
}
|
|
1121
|
-
protoOf(CLIEntity).o21 = function (thisRef, prop) {
|
|
1122
|
-
// Inline function 'kotlin.check' call
|
|
1123
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
1124
|
-
if (!!this.j1y_1) {
|
|
1125
|
-
// Inline function 'kotlinx.cli.CLIEntity.provideDelegate.<anonymous>' call
|
|
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 + '.';
|
|
1128
|
-
throw IllegalStateException_init_$Create$(toString(message));
|
|
1129
|
-
}
|
|
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;
|
|
1134
|
-
};
|
|
1135
|
-
function failAssertion(message) {
|
|
1136
|
-
throw AssertionError_init_$Create$(message);
|
|
1137
|
-
}
|
|
1138
|
-
function AbstractSingleArgument(delegate, owner) {
|
|
1139
|
-
Argument.call(this, delegate, owner);
|
|
1140
|
-
}
|
|
1141
|
-
protoOf(AbstractSingleArgument).n21 = function (descriptor) {
|
|
1142
|
-
if (descriptor.k20_1 == null ? true : descriptor.k20_1 > 1) {
|
|
1143
|
-
failAssertion("Argument with single value can't be initialized with descriptor for multiple values.");
|
|
1144
|
-
}
|
|
1145
|
-
};
|
|
1146
|
-
function Argument(delegate, owner) {
|
|
1147
|
-
CLIEntity.call(this, delegate, owner);
|
|
1148
|
-
}
|
|
1149
|
-
function OptionDescriptor(optionFullFormPrefix, optionShortFromPrefix, type, fullName, shortName, description, defaultValue, required, multiple, delimiter, deprecatedWarning) {
|
|
1150
|
-
fullName = fullName === VOID ? null : fullName;
|
|
1151
|
-
shortName = shortName === VOID ? null : shortName;
|
|
1152
|
-
description = description === VOID ? null : description;
|
|
1153
|
-
defaultValue = defaultValue === VOID ? null : defaultValue;
|
|
1154
|
-
required = required === VOID ? false : required;
|
|
1155
|
-
multiple = multiple === VOID ? false : multiple;
|
|
1156
|
-
delimiter = delimiter === VOID ? null : delimiter;
|
|
1157
|
-
deprecatedWarning = deprecatedWarning === VOID ? null : deprecatedWarning;
|
|
1158
|
-
Descriptor.call(this, type, fullName, description, defaultValue, required, deprecatedWarning);
|
|
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;
|
|
1167
|
-
};
|
|
1168
|
-
protoOf(OptionDescriptor).a20 = function () {
|
|
1169
|
-
var result = StringBuilder_init_$Create$();
|
|
1170
|
-
result.f6(' ' + this.t1z_1 + this.n1x_1);
|
|
1171
|
-
var tmp0_safe_receiver = this.v1z_1;
|
|
1172
|
-
if (tmp0_safe_receiver == null)
|
|
1173
|
-
null;
|
|
1174
|
-
else {
|
|
1175
|
-
// Inline function 'kotlin.let' call
|
|
1176
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
1177
|
-
// Inline function 'kotlinx.cli.OptionDescriptor.<get-helpMessage>.<anonymous>' call
|
|
1178
|
-
result.f6(', ' + this.u1z_1 + tmp0_safe_receiver);
|
|
1179
|
-
}
|
|
1180
|
-
var tmp1_safe_receiver = this.p21(this.p1x_1);
|
|
1181
|
-
if (tmp1_safe_receiver == null)
|
|
1182
|
-
null;
|
|
1183
|
-
else {
|
|
1184
|
-
// Inline function 'kotlin.let' call
|
|
1185
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
1186
|
-
// Inline function 'kotlinx.cli.OptionDescriptor.<get-helpMessage>.<anonymous>' call
|
|
1187
|
-
result.f6(tmp1_safe_receiver);
|
|
1188
|
-
}
|
|
1189
|
-
var tmp2_safe_receiver = this.o1x_1;
|
|
1190
|
-
if (tmp2_safe_receiver == null)
|
|
1191
|
-
null;
|
|
1192
|
-
else {
|
|
1193
|
-
// Inline function 'kotlin.let' call
|
|
1194
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
1195
|
-
// Inline function 'kotlinx.cli.OptionDescriptor.<get-helpMessage>.<anonymous>' call
|
|
1196
|
-
result.f6(' -> ' + tmp2_safe_receiver);
|
|
1197
|
-
}
|
|
1198
|
-
if (this.q1x_1) {
|
|
1199
|
-
result.f6(' (always required)');
|
|
1200
|
-
}
|
|
1201
|
-
result.f6(' ' + this.m1x_1.e1y());
|
|
1202
|
-
var tmp3_safe_receiver = this.r1x_1;
|
|
1203
|
-
if (tmp3_safe_receiver == null)
|
|
1204
|
-
null;
|
|
1205
|
-
else {
|
|
1206
|
-
// Inline function 'kotlin.let' call
|
|
1207
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
1208
|
-
// Inline function 'kotlinx.cli.OptionDescriptor.<get-helpMessage>.<anonymous>' call
|
|
1209
|
-
result.f6(' Warning: ' + tmp3_safe_receiver);
|
|
1210
|
-
}
|
|
1211
|
-
result.f6('\n');
|
|
1212
|
-
return result.toString();
|
|
1213
|
-
};
|
|
1214
|
-
function Descriptor$defaultValueSet$delegate$lambda(this$0) {
|
|
1215
|
-
return function () {
|
|
1216
|
-
var tmp;
|
|
1217
|
-
if (!(this$0.p1x_1 == null)) {
|
|
1218
|
-
var tmp_0;
|
|
1219
|
-
var tmp_1;
|
|
1220
|
-
var tmp_2 = this$0.p1x_1;
|
|
1221
|
-
if (!(tmp_2 == null) ? isInterface(tmp_2, List) : false) {
|
|
1222
|
-
var tmp$ret$0;
|
|
1223
|
-
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
1224
|
-
var tmp0_isNotEmpty = this$0.p1x_1;
|
|
1225
|
-
tmp$ret$0 = !tmp0_isNotEmpty.g();
|
|
1226
|
-
tmp_1 = tmp$ret$0;
|
|
1227
|
-
} else {
|
|
1228
|
-
tmp_1 = false;
|
|
1229
|
-
}
|
|
1230
|
-
if (tmp_1) {
|
|
1231
|
-
tmp_0 = true;
|
|
1232
|
-
} else {
|
|
1233
|
-
var tmp_3 = this$0.p1x_1;
|
|
1234
|
-
tmp_0 = !(!(tmp_3 == null) ? isInterface(tmp_3, List) : false);
|
|
1235
|
-
}
|
|
1236
|
-
tmp = tmp_0;
|
|
1237
|
-
} else {
|
|
1238
|
-
tmp = false;
|
|
1239
|
-
}
|
|
1240
|
-
return tmp;
|
|
1241
|
-
};
|
|
1242
|
-
}
|
|
1243
|
-
function Descriptor(type, fullName, description, defaultValue, required, deprecatedWarning) {
|
|
1244
|
-
fullName = fullName === VOID ? null : fullName;
|
|
1245
|
-
description = description === VOID ? null : description;
|
|
1246
|
-
defaultValue = defaultValue === VOID ? null : defaultValue;
|
|
1247
|
-
required = required === VOID ? false : required;
|
|
1248
|
-
deprecatedWarning = deprecatedWarning === VOID ? null : deprecatedWarning;
|
|
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;
|
|
1255
|
-
var tmp = this;
|
|
1256
|
-
tmp.s1x_1 = lazy(Descriptor$defaultValueSet$delegate$lambda(this));
|
|
1257
|
-
}
|
|
1258
|
-
protoOf(Descriptor).p21 = function (value) {
|
|
1259
|
-
var tmp;
|
|
1260
|
-
if (value == null) {
|
|
1261
|
-
tmp = null;
|
|
1262
|
-
} else {
|
|
1263
|
-
// Inline function 'kotlin.let' call
|
|
1264
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
1265
|
-
// Inline function 'kotlinx.cli.Descriptor.valueDescription.<anonymous>' call
|
|
1266
|
-
var tmp_0;
|
|
1267
|
-
var tmp_1;
|
|
1268
|
-
if (!(value == null) ? isInterface(value, List) : false) {
|
|
1269
|
-
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
1270
|
-
tmp_1 = !value.g();
|
|
1271
|
-
} else {
|
|
1272
|
-
tmp_1 = false;
|
|
1273
|
-
}
|
|
1274
|
-
if (tmp_1) {
|
|
1275
|
-
tmp_0 = ' [' + joinToString(value) + ']';
|
|
1276
|
-
} else {
|
|
1277
|
-
if (!(!(value == null) ? isInterface(value, List) : false)) {
|
|
1278
|
-
tmp_0 = ' [' + value + ']';
|
|
1279
|
-
} else {
|
|
1280
|
-
tmp_0 = null;
|
|
1281
|
-
}
|
|
1282
|
-
}
|
|
1283
|
-
tmp = tmp_0;
|
|
1284
|
-
}
|
|
1285
|
-
return tmp;
|
|
1286
|
-
};
|
|
1287
|
-
protoOf(Descriptor).w1x = function () {
|
|
1288
|
-
// Inline function 'kotlin.getValue' call
|
|
1289
|
-
defaultValueSet$factory();
|
|
1290
|
-
return this.s1x_1.w();
|
|
1291
|
-
};
|
|
1292
|
-
function ArgDescriptor(type, fullName, number, description, defaultValue, required, deprecatedWarning) {
|
|
1293
|
-
number = number === VOID ? null : number;
|
|
1294
|
-
description = description === VOID ? null : description;
|
|
1295
|
-
defaultValue = defaultValue === VOID ? null : defaultValue;
|
|
1296
|
-
required = required === VOID ? true : required;
|
|
1297
|
-
deprecatedWarning = deprecatedWarning === VOID ? null : deprecatedWarning;
|
|
1298
|
-
Descriptor.call(this, type, fullName, description, defaultValue, required, deprecatedWarning);
|
|
1299
|
-
this.k20_1 = number;
|
|
1300
|
-
var tmp0_safe_receiver = this.k20_1;
|
|
1301
|
-
if (tmp0_safe_receiver == null)
|
|
1302
|
-
null;
|
|
1303
|
-
else {
|
|
1304
|
-
// Inline function 'kotlin.let' call
|
|
1305
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
1306
|
-
var tmp;
|
|
1307
|
-
if (tmp0_safe_receiver < 1) {
|
|
1308
|
-
var tmp0_error = 'Number of arguments for argument description ' + fullName + ' should be greater than zero.';
|
|
1309
|
-
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
1310
|
-
}
|
|
1311
|
-
}
|
|
1312
|
-
}
|
|
1313
|
-
protoOf(ArgDescriptor).d1y = function () {
|
|
1314
|
-
return 'argument ' + this.n1x_1;
|
|
1315
|
-
};
|
|
1316
|
-
protoOf(ArgDescriptor).a20 = function () {
|
|
1317
|
-
var result = StringBuilder_init_$Create$();
|
|
1318
|
-
result.f6(' ' + this.n1x_1);
|
|
1319
|
-
var tmp0_safe_receiver = this.p21(this.p1x_1);
|
|
1320
|
-
if (tmp0_safe_receiver == null)
|
|
1321
|
-
null;
|
|
1322
|
-
else {
|
|
1323
|
-
// Inline function 'kotlin.let' call
|
|
1324
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
1325
|
-
// Inline function 'kotlinx.cli.ArgDescriptor.<get-helpMessage>.<anonymous>' call
|
|
1326
|
-
result.f6(tmp0_safe_receiver);
|
|
1327
|
-
}
|
|
1328
|
-
var tmp1_safe_receiver = this.o1x_1;
|
|
1329
|
-
if (tmp1_safe_receiver == null)
|
|
1330
|
-
null;
|
|
1331
|
-
else {
|
|
1332
|
-
// Inline function 'kotlin.let' call
|
|
1333
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
1334
|
-
// Inline function 'kotlinx.cli.ArgDescriptor.<get-helpMessage>.<anonymous>' call
|
|
1335
|
-
result.f6(' -> ' + tmp1_safe_receiver);
|
|
1336
|
-
}
|
|
1337
|
-
if (!this.q1x_1) {
|
|
1338
|
-
result.f6(' (optional)');
|
|
1339
|
-
}
|
|
1340
|
-
result.f6(' ' + this.m1x_1.e1y());
|
|
1341
|
-
var tmp2_safe_receiver = this.r1x_1;
|
|
1342
|
-
if (tmp2_safe_receiver == null)
|
|
1343
|
-
null;
|
|
1344
|
-
else {
|
|
1345
|
-
// Inline function 'kotlin.let' call
|
|
1346
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
1347
|
-
// Inline function 'kotlinx.cli.ArgDescriptor.<get-helpMessage>.<anonymous>' call
|
|
1348
|
-
result.f6(' Warning: ' + tmp2_safe_receiver);
|
|
1349
|
-
}
|
|
1350
|
-
result.f6('\n');
|
|
1351
|
-
return result.toString();
|
|
1352
|
-
};
|
|
1353
|
-
function defaultValueSet$factory() {
|
|
1354
|
-
return getPropertyCallableRef('defaultValueSet', 1, KProperty1, function (receiver) {
|
|
1355
|
-
return receiver.w1x();
|
|
1356
|
-
}, null);
|
|
1357
|
-
}
|
|
1358
|
-
function SingleNullableOption(descriptor, owner) {
|
|
1359
|
-
AbstractSingleOption.call(this, new ArgumentSingleNullableValue(descriptor), owner);
|
|
1360
|
-
this.t21(descriptor);
|
|
1361
|
-
}
|
|
1362
|
-
function SingleOption(descriptor, owner) {
|
|
1363
|
-
AbstractSingleOption.call(this, new ArgumentSingleValue(descriptor), owner);
|
|
1364
|
-
this.t21(descriptor);
|
|
1365
|
-
}
|
|
1366
|
-
function default_0(_this__u8e3s4, value) {
|
|
1367
|
-
// Inline function 'kotlin.with' call
|
|
1368
|
-
// Inline function 'kotlinx.cli.cast' call
|
|
1369
|
-
var tmp0_cast = _this__u8e3s4.h1y_1;
|
|
1370
|
-
var tmp = (tmp0_cast instanceof ParsingValue ? tmp0_cast : THROW_CCE()).t1x_1;
|
|
1371
|
-
var tmp1_with = tmp instanceof OptionDescriptor ? tmp : THROW_CCE();
|
|
1372
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
1373
|
-
// Inline function 'kotlinx.cli.default.<anonymous>' call
|
|
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;
|
|
1376
|
-
return newOption;
|
|
1377
|
-
}
|
|
1378
|
-
function MultipleOption(descriptor, owner) {
|
|
1379
|
-
Option.call(this, new ArgumentMultipleValues(descriptor), owner);
|
|
1380
|
-
if (!descriptor.w1z_1 ? descriptor.x1z_1 == null : false) {
|
|
1381
|
-
failAssertion("Option with multiple values can't be initialized with descriptor for single one.");
|
|
1382
|
-
}
|
|
1383
|
-
}
|
|
1384
|
-
function multiple(_this__u8e3s4) {
|
|
1385
|
-
// Inline function 'kotlin.with' call
|
|
1386
|
-
// Inline function 'kotlinx.cli.cast' call
|
|
1387
|
-
var tmp0_cast = _this__u8e3s4.h1y_1;
|
|
1388
|
-
var tmp = (tmp0_cast instanceof ParsingValue ? tmp0_cast : THROW_CCE()).t1x_1;
|
|
1389
|
-
var tmp1_with = tmp instanceof OptionDescriptor ? tmp : THROW_CCE();
|
|
1390
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
1391
|
-
// Inline function 'kotlinx.cli.multiple.<anonymous>' call
|
|
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;
|
|
1394
|
-
return newOption;
|
|
1395
|
-
}
|
|
1396
|
-
function AbstractSingleOption(delegate, owner) {
|
|
1397
|
-
Option.call(this, delegate, owner);
|
|
1398
|
-
}
|
|
1399
|
-
protoOf(AbstractSingleOption).t21 = function (descriptor) {
|
|
1400
|
-
if (descriptor.w1z_1 ? true : !(descriptor.x1z_1 == null)) {
|
|
1401
|
-
failAssertion("Option with single value can't be initialized with descriptor for multiple values.");
|
|
1402
|
-
}
|
|
1403
|
-
};
|
|
1404
|
-
function Option(delegate, owner) {
|
|
1405
|
-
CLIEntity.call(this, delegate, owner);
|
|
1406
|
-
}
|
|
1407
|
-
function exitProcess(status) {
|
|
1408
|
-
// Inline function 'kotlin.error' call
|
|
1409
|
-
throw IllegalStateException_init_$Create$('Not implemented for JS!');
|
|
1410
|
-
}
|
|
1411
|
-
//region block: post-declaration
|
|
1412
|
-
protoOf(ArgumentSingleNullableValue).b20 = getValue;
|
|
1413
|
-
protoOf(ArgumentSingleValue).b20 = getValue;
|
|
1414
|
-
protoOf(ArgumentMultipleValues).b20 = getValue;
|
|
1415
|
-
//endregion
|
|
1416
|
-
//region block: exports
|
|
1417
|
-
_.$_$ = _.$_$ || {};
|
|
1418
|
-
_.$_$.a = Boolean_getInstance;
|
|
1419
|
-
_.$_$.b = Companion_getInstance;
|
|
1420
|
-
_.$_$.c = String_getInstance;
|
|
1421
|
-
_.$_$.d = ArgParser;
|
|
1422
|
-
_.$_$.e = Choice;
|
|
1423
|
-
_.$_$.f = Subcommand;
|
|
1424
|
-
_.$_$.g = default_0;
|
|
1425
|
-
_.$_$.h = multiple;
|
|
1426
|
-
//endregion
|
|
1427
|
-
return _;
|
|
1428
|
-
}));
|
|
1429
|
-
|
|
1430
|
-
//# sourceMappingURL=Kotlinx-Cli-Library-kotlinx-cli.js.map
|