git-semver-tagger 1.9.23 → 1.9.25
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/README.md +137 -0
- package/kotlin/clikt-clikt-mordant.js +41 -41
- package/kotlin/clikt-clikt.js +613 -479
- package/kotlin/clikt-clikt.js.map +1 -1
- package/kotlin/colormath-root-colormath.js +406 -406
- package/kotlin/command-line-tools-tagger-cli.js +166 -195
- package/kotlin/command-line-tools-tagger-cli.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1168 -1168
- package/kotlin/mordant-mordant.js +1097 -1097
- package/package.json +1 -1
package/kotlin/clikt-clikt.js
CHANGED
|
@@ -37,10 +37,11 @@
|
|
|
37
37
|
var initMetadataForObject = kotlin_kotlin.$_$.k9;
|
|
38
38
|
var Enum = kotlin_kotlin.$_$.td;
|
|
39
39
|
var initMetadataForClass = kotlin_kotlin.$_$.f9;
|
|
40
|
+
var toString_0 = kotlin_kotlin.$_$.fa;
|
|
41
|
+
var hashCode = kotlin_kotlin.$_$.e9;
|
|
40
42
|
var THROW_CCE = kotlin_kotlin.$_$.be;
|
|
41
43
|
var isCharSequence = kotlin_kotlin.$_$.p9;
|
|
42
44
|
var trim = kotlin_kotlin.$_$.kd;
|
|
43
|
-
var toString_0 = kotlin_kotlin.$_$.fa;
|
|
44
45
|
var lastOrNull = kotlin_kotlin.$_$.b6;
|
|
45
46
|
var first_0 = kotlin_kotlin.$_$.n5;
|
|
46
47
|
var replace_0 = kotlin_kotlin.$_$.ic;
|
|
@@ -79,7 +80,6 @@
|
|
|
79
80
|
var sortedWith = kotlin_kotlin.$_$.z6;
|
|
80
81
|
var FunctionAdapter = kotlin_kotlin.$_$.o8;
|
|
81
82
|
var Comparator = kotlin_kotlin.$_$.qd;
|
|
82
|
-
var hashCode = kotlin_kotlin.$_$.e9;
|
|
83
83
|
var compareValues = kotlin_kotlin.$_$.p7;
|
|
84
84
|
var print = kotlin_kotlin.$_$.w7;
|
|
85
85
|
var println = kotlin_kotlin.$_$.u7;
|
|
@@ -202,7 +202,7 @@
|
|
|
202
202
|
} else {
|
|
203
203
|
var tmp_0 = this.g19();
|
|
204
204
|
var tmp_1 = this.h19();
|
|
205
|
-
var tmp_2 = this.
|
|
205
|
+
var tmp_2 = this.u1m(context);
|
|
206
206
|
var tmp_3 = this.q1a(context);
|
|
207
207
|
var tmp_4 = this.h1a();
|
|
208
208
|
var tmp_5 = this.y1a();
|
|
@@ -342,6 +342,9 @@
|
|
|
342
342
|
function boolConversionError(value) {
|
|
343
343
|
return value + ' is not a valid boolean';
|
|
344
344
|
}
|
|
345
|
+
function invalidChoice(choice, choices) {
|
|
346
|
+
return 'invalid choice: ' + choice + '. (choose from ' + joinToString(choices) + ')';
|
|
347
|
+
}
|
|
345
348
|
function stringMetavar() {
|
|
346
349
|
return 'text';
|
|
347
350
|
}
|
|
@@ -388,18 +391,18 @@
|
|
|
388
391
|
function copy$default(transformValue, transformAll, validator, name, nvalues, required, helpGetter, helpTags, completionCandidates, $super) {
|
|
389
392
|
name = name === VOID ? this.k() : name;
|
|
390
393
|
nvalues = nvalues === VOID ? this.h1a() : nvalues;
|
|
391
|
-
required = required === VOID ? this.
|
|
392
|
-
helpGetter = helpGetter === VOID ? this.
|
|
394
|
+
required = required === VOID ? this.k1l() : required;
|
|
395
|
+
helpGetter = helpGetter === VOID ? this.l1l() : helpGetter;
|
|
393
396
|
helpTags = helpTags === VOID ? this.y1a() : helpTags;
|
|
394
|
-
completionCandidates = completionCandidates === VOID ? this.
|
|
395
|
-
return $super === VOID ? this.
|
|
397
|
+
completionCandidates = completionCandidates === VOID ? this.o1l() : completionCandidates;
|
|
398
|
+
return $super === VOID ? this.p1l(transformValue, transformAll, validator, name, nvalues, required, helpGetter, helpTags, completionCandidates) : $super.p1l.call(this, transformValue, transformAll, validator, name, nvalues, required, helpGetter, helpTags, completionCandidates);
|
|
396
399
|
}
|
|
397
400
|
initMetadataForInterface(ProcessedArgument, 'ProcessedArgument', VOID, VOID, [Argument_0]);
|
|
398
401
|
initMetadataForClass(ArgumentTransformContext, 'ArgumentTransformContext', VOID, VOID, [Argument_0]);
|
|
399
402
|
initMetadataForClass(ProcessedArgumentImpl, 'ProcessedArgumentImpl', VOID, VOID, [ProcessedArgument]);
|
|
400
403
|
function parameterHelp_0(context) {
|
|
401
404
|
var n = this.x1d();
|
|
402
|
-
var h = this.
|
|
405
|
+
var h = this.n1m();
|
|
403
406
|
return n == null || h == null ? null : new Group_0(n, h);
|
|
404
407
|
}
|
|
405
408
|
initMetadataForInterface(ParameterGroup, 'ParameterGroup');
|
|
@@ -412,38 +415,38 @@
|
|
|
412
415
|
initMetadataForInterface(OptionDelegate, 'OptionDelegate', VOID, VOID, [GroupableOption]);
|
|
413
416
|
function copy$default_0(transformValue, transformEach, transformAll, validator, names, metavarGetter, nvalues, helpGetter, hidden, helpTags, valueSourceKey, envvar, valueSplit, completionCandidates, secondaryNames, acceptsNumberValueWithoutName, acceptsUnattachedValue, eager, $super) {
|
|
414
417
|
names = names === VOID ? this.g19() : names;
|
|
415
|
-
metavarGetter = metavarGetter === VOID ? this.
|
|
418
|
+
metavarGetter = metavarGetter === VOID ? this.c1n() : metavarGetter;
|
|
416
419
|
nvalues = nvalues === VOID ? this.h1a() : nvalues;
|
|
417
|
-
helpGetter = helpGetter === VOID ? this.
|
|
420
|
+
helpGetter = helpGetter === VOID ? this.l1l() : helpGetter;
|
|
418
421
|
hidden = hidden === VOID ? this.f1a() : hidden;
|
|
419
422
|
helpTags = helpTags === VOID ? this.y1a() : helpTags;
|
|
420
423
|
valueSourceKey = valueSourceKey === VOID ? this.y1d() : valueSourceKey;
|
|
421
|
-
envvar = envvar === VOID ? this.
|
|
422
|
-
valueSplit = valueSplit === VOID ? this.
|
|
423
|
-
completionCandidates = completionCandidates === VOID ? this.
|
|
424
|
+
envvar = envvar === VOID ? this.a1n() : envvar;
|
|
425
|
+
valueSplit = valueSplit === VOID ? this.d1n() : valueSplit;
|
|
426
|
+
completionCandidates = completionCandidates === VOID ? this.o1l() : completionCandidates;
|
|
424
427
|
secondaryNames = secondaryNames === VOID ? this.h19() : secondaryNames;
|
|
425
428
|
acceptsNumberValueWithoutName = acceptsNumberValueWithoutName === VOID ? this.p1b() : acceptsNumberValueWithoutName;
|
|
426
429
|
acceptsUnattachedValue = acceptsUnattachedValue === VOID ? this.a1e() : acceptsUnattachedValue;
|
|
427
430
|
eager = eager === VOID ? this.z1d() : eager;
|
|
428
|
-
return $super === VOID ? this.
|
|
431
|
+
return $super === VOID ? this.e1n(transformValue, transformEach, transformAll, validator, names, metavarGetter, nvalues, helpGetter, hidden, helpTags, valueSourceKey, envvar, valueSplit, completionCandidates, secondaryNames, acceptsNumberValueWithoutName, acceptsUnattachedValue, eager) : $super.e1n.call(this, transformValue, transformEach, transformAll, validator, names, metavarGetter, nvalues, helpGetter, hidden, helpTags, valueSourceKey, envvar, valueSplit, completionCandidates, secondaryNames, acceptsNumberValueWithoutName, acceptsUnattachedValue, eager);
|
|
429
432
|
}
|
|
430
433
|
function copy$default_1(validator, names, metavarGetter, nvalues, helpGetter, hidden, helpTags, envvar, valueSourceKey, valueSplit, completionCandidates, secondaryNames, acceptsNumberValueWithoutName, acceptsUnattachedValue, eager, $super) {
|
|
431
|
-
validator = validator === VOID ? this.
|
|
434
|
+
validator = validator === VOID ? this.b1n() : validator;
|
|
432
435
|
names = names === VOID ? this.g19() : names;
|
|
433
|
-
metavarGetter = metavarGetter === VOID ? this.
|
|
436
|
+
metavarGetter = metavarGetter === VOID ? this.c1n() : metavarGetter;
|
|
434
437
|
nvalues = nvalues === VOID ? this.h1a() : nvalues;
|
|
435
|
-
helpGetter = helpGetter === VOID ? this.
|
|
438
|
+
helpGetter = helpGetter === VOID ? this.l1l() : helpGetter;
|
|
436
439
|
hidden = hidden === VOID ? this.f1a() : hidden;
|
|
437
440
|
helpTags = helpTags === VOID ? this.y1a() : helpTags;
|
|
438
|
-
envvar = envvar === VOID ? this.
|
|
441
|
+
envvar = envvar === VOID ? this.a1n() : envvar;
|
|
439
442
|
valueSourceKey = valueSourceKey === VOID ? this.y1d() : valueSourceKey;
|
|
440
|
-
valueSplit = valueSplit === VOID ? this.
|
|
441
|
-
completionCandidates = completionCandidates === VOID ? this.
|
|
443
|
+
valueSplit = valueSplit === VOID ? this.d1n() : valueSplit;
|
|
444
|
+
completionCandidates = completionCandidates === VOID ? this.o1l() : completionCandidates;
|
|
442
445
|
secondaryNames = secondaryNames === VOID ? this.h19() : secondaryNames;
|
|
443
446
|
acceptsNumberValueWithoutName = acceptsNumberValueWithoutName === VOID ? this.p1b() : acceptsNumberValueWithoutName;
|
|
444
447
|
acceptsUnattachedValue = acceptsUnattachedValue === VOID ? this.a1e() : acceptsUnattachedValue;
|
|
445
448
|
eager = eager === VOID ? this.z1d() : eager;
|
|
446
|
-
return $super === VOID ? this.
|
|
449
|
+
return $super === VOID ? this.f1n(validator, names, metavarGetter, nvalues, helpGetter, hidden, helpTags, envvar, valueSourceKey, valueSplit, completionCandidates, secondaryNames, acceptsNumberValueWithoutName, acceptsUnattachedValue, eager) : $super.f1n.call(this, validator, names, metavarGetter, nvalues, helpGetter, hidden, helpTags, envvar, valueSourceKey, valueSplit, completionCandidates, secondaryNames, acceptsNumberValueWithoutName, acceptsUnattachedValue, eager);
|
|
447
450
|
}
|
|
448
451
|
initMetadataForInterface(OptionWithValues, 'OptionWithValues', VOID, VOID, [OptionDelegate]);
|
|
449
452
|
initMetadataForClass(OptionTransformContext, 'OptionTransformContext', VOID, VOID, [Option_0]);
|
|
@@ -936,8 +939,25 @@
|
|
|
936
939
|
new Username();
|
|
937
940
|
return Username_instance;
|
|
938
941
|
}
|
|
939
|
-
function Fixed() {
|
|
942
|
+
function Fixed(candidates) {
|
|
943
|
+
CompletionCandidates.call(this);
|
|
944
|
+
this.k1a_1 = candidates;
|
|
940
945
|
}
|
|
946
|
+
protoOf(Fixed).toString = function () {
|
|
947
|
+
return 'Fixed(candidates=' + toString_0(this.k1a_1) + ')';
|
|
948
|
+
};
|
|
949
|
+
protoOf(Fixed).hashCode = function () {
|
|
950
|
+
return hashCode(this.k1a_1);
|
|
951
|
+
};
|
|
952
|
+
protoOf(Fixed).equals = function (other) {
|
|
953
|
+
if (this === other)
|
|
954
|
+
return true;
|
|
955
|
+
if (!(other instanceof Fixed))
|
|
956
|
+
return false;
|
|
957
|
+
if (!equals(this.k1a_1, other.k1a_1))
|
|
958
|
+
return false;
|
|
959
|
+
return true;
|
|
960
|
+
};
|
|
941
961
|
function Custom() {
|
|
942
962
|
}
|
|
943
963
|
function CompletionCandidates() {
|
|
@@ -3895,9 +3915,9 @@
|
|
|
3895
3915
|
}
|
|
3896
3916
|
function PlaintextHelpFormatter$buildParameterList$lambda(this$0, $termLength) {
|
|
3897
3917
|
return function (it) {
|
|
3898
|
-
var term = this$0.
|
|
3918
|
+
var term = this$0.i1l(it);
|
|
3899
3919
|
// Inline function 'kotlin.text.ifBlank' call
|
|
3900
|
-
var this_0 = this$0.
|
|
3920
|
+
var this_0 = this$0.j1l(it);
|
|
3901
3921
|
var tmp;
|
|
3902
3922
|
if (isBlank(this_0)) {
|
|
3903
3923
|
tmp = null;
|
|
@@ -3924,7 +3944,7 @@
|
|
|
3924
3944
|
};
|
|
3925
3945
|
protoOf(PlaintextHelpFormatter).q1i = function (parameters, programName) {
|
|
3926
3946
|
var params = this.z1i(parameters);
|
|
3927
|
-
var title = this.o1i().
|
|
3947
|
+
var title = this.o1i().d1l();
|
|
3928
3948
|
var tmp;
|
|
3929
3949
|
// Inline function 'kotlin.text.isEmpty' call
|
|
3930
3950
|
if (charSequenceLength(params) === 0) {
|
|
@@ -3971,7 +3991,7 @@
|
|
|
3971
3991
|
this_0.o(this.m1k(options));
|
|
3972
3992
|
return this_0.toString();
|
|
3973
3993
|
};
|
|
3974
|
-
protoOf(PlaintextHelpFormatter).
|
|
3994
|
+
protoOf(PlaintextHelpFormatter).i1l = function (row) {
|
|
3975
3995
|
var tmp;
|
|
3976
3996
|
// Inline function 'kotlin.text.isNullOrEmpty' call
|
|
3977
3997
|
var this_0 = row.a1i_1;
|
|
@@ -3993,7 +4013,7 @@
|
|
|
3993
4013
|
var termPrefix = tmp;
|
|
3994
4014
|
return termPrefix + row.y1h_1;
|
|
3995
4015
|
};
|
|
3996
|
-
protoOf(PlaintextHelpFormatter).
|
|
4016
|
+
protoOf(PlaintextHelpFormatter).j1l = function (row) {
|
|
3997
4017
|
return row.z1h_1;
|
|
3998
4018
|
};
|
|
3999
4019
|
protoOf(PlaintextHelpFormatter).m1k = function (rows) {
|
|
@@ -4034,41 +4054,41 @@
|
|
|
4034
4054
|
return new ProcessedArgumentImpl(name, 1, true, tmp, helpTags, completionCandidates, argument$lambda_0, defaultAllProcessor(), defaultValidator());
|
|
4035
4055
|
}
|
|
4036
4056
|
function ArgumentTransformContext(argument, context) {
|
|
4037
|
-
this.
|
|
4038
|
-
this.
|
|
4057
|
+
this.s1l_1 = argument;
|
|
4058
|
+
this.t1l_1 = context;
|
|
4039
4059
|
}
|
|
4040
4060
|
protoOf(ArgumentTransformContext).y8 = function () {
|
|
4041
|
-
return this.
|
|
4061
|
+
return this.t1l_1;
|
|
4042
4062
|
};
|
|
4043
|
-
protoOf(ArgumentTransformContext).
|
|
4044
|
-
throw BadParameterValue_init_$Create$(message, this.
|
|
4063
|
+
protoOf(ArgumentTransformContext).u1l = function (message) {
|
|
4064
|
+
throw BadParameterValue_init_$Create$(message, this.s1l_1);
|
|
4045
4065
|
};
|
|
4046
4066
|
protoOf(ArgumentTransformContext).k = function () {
|
|
4047
|
-
return this.
|
|
4067
|
+
return this.s1l_1.k();
|
|
4048
4068
|
};
|
|
4049
4069
|
protoOf(ArgumentTransformContext).h1a = function () {
|
|
4050
|
-
return this.
|
|
4070
|
+
return this.s1l_1.h1a();
|
|
4051
4071
|
};
|
|
4052
|
-
protoOf(ArgumentTransformContext).
|
|
4053
|
-
return this.
|
|
4072
|
+
protoOf(ArgumentTransformContext).k1l = function () {
|
|
4073
|
+
return this.s1l_1.k1l();
|
|
4054
4074
|
};
|
|
4055
4075
|
protoOf(ArgumentTransformContext).r1a = function (context) {
|
|
4056
|
-
return this.
|
|
4076
|
+
return this.s1l_1.r1a(context);
|
|
4057
4077
|
};
|
|
4058
4078
|
protoOf(ArgumentTransformContext).y1a = function () {
|
|
4059
|
-
return this.
|
|
4079
|
+
return this.s1l_1.y1a();
|
|
4060
4080
|
};
|
|
4061
4081
|
protoOf(ArgumentTransformContext).g1a = function () {
|
|
4062
|
-
return this.
|
|
4082
|
+
return this.s1l_1.g1a();
|
|
4063
4083
|
};
|
|
4064
4084
|
protoOf(ArgumentTransformContext).j1b = function (context) {
|
|
4065
|
-
return this.
|
|
4085
|
+
return this.s1l_1.j1b(context);
|
|
4066
4086
|
};
|
|
4067
4087
|
protoOf(ArgumentTransformContext).v1h = function (context, values) {
|
|
4068
|
-
this.
|
|
4088
|
+
this.s1l_1.v1h(context, values);
|
|
4069
4089
|
};
|
|
4070
4090
|
protoOf(ArgumentTransformContext).k1h = function (context) {
|
|
4071
|
-
this.
|
|
4091
|
+
this.s1l_1.k1h(context);
|
|
4072
4092
|
};
|
|
4073
4093
|
function transformAll(_this__u8e3s4, nvalues, required, defaultForHelp, transform) {
|
|
4074
4094
|
nvalues = nvalues === VOID ? null : nvalues;
|
|
@@ -4080,10 +4100,10 @@
|
|
|
4080
4100
|
tags.p2('default', defaultForHelp);
|
|
4081
4101
|
} else
|
|
4082
4102
|
tags.q2('default');
|
|
4083
|
-
var tmp = _this__u8e3s4.
|
|
4103
|
+
var tmp = _this__u8e3s4.m1l();
|
|
4084
4104
|
var tmp_0 = defaultValidator();
|
|
4085
4105
|
var tmp_1 = nvalues == null ? _this__u8e3s4.h1a() : nvalues;
|
|
4086
|
-
return _this__u8e3s4.
|
|
4106
|
+
return _this__u8e3s4.q1l(tmp, transform, tmp_0, VOID, tmp_1, required == null ? _this__u8e3s4.k1l() : required, VOID, tags);
|
|
4087
4107
|
}
|
|
4088
4108
|
function ProcessedArgumentImpl$_get_value_$ref_enmq3a() {
|
|
4089
4109
|
return function (p0) {
|
|
@@ -4092,7 +4112,7 @@
|
|
|
4092
4112
|
}
|
|
4093
4113
|
function ProcessedArgumentImpl$_set_value_$ref_en7qba() {
|
|
4094
4114
|
return function (p0, p1) {
|
|
4095
|
-
p0.
|
|
4115
|
+
p0.f1m(p1);
|
|
4096
4116
|
return Unit_instance;
|
|
4097
4117
|
};
|
|
4098
4118
|
}
|
|
@@ -4103,99 +4123,99 @@
|
|
|
4103
4123
|
}
|
|
4104
4124
|
function ProcessedArgumentImpl$_set_value_$ref_en7qba_0() {
|
|
4105
4125
|
return function (p0, p1) {
|
|
4106
|
-
p0.
|
|
4126
|
+
p0.f1m(p1);
|
|
4107
4127
|
return Unit_instance;
|
|
4108
4128
|
};
|
|
4109
4129
|
}
|
|
4110
4130
|
function ProcessedArgumentImpl(name, nvalues, required, helpGetter, helpTags, explicitCompletionCandidates, transformValue, transformAll, transformValidator) {
|
|
4111
|
-
this.
|
|
4112
|
-
this.
|
|
4113
|
-
this.
|
|
4114
|
-
this.
|
|
4115
|
-
this.
|
|
4116
|
-
this.
|
|
4117
|
-
this.
|
|
4118
|
-
this.
|
|
4119
|
-
this.
|
|
4131
|
+
this.v1l_1 = name;
|
|
4132
|
+
this.w1l_1 = nvalues;
|
|
4133
|
+
this.x1l_1 = required;
|
|
4134
|
+
this.y1l_1 = helpGetter;
|
|
4135
|
+
this.z1l_1 = helpTags;
|
|
4136
|
+
this.a1m_1 = explicitCompletionCandidates;
|
|
4137
|
+
this.b1m_1 = transformValue;
|
|
4138
|
+
this.c1m_1 = transformAll;
|
|
4139
|
+
this.d1m_1 = transformValidator;
|
|
4120
4140
|
// Inline function 'kotlin.require' call
|
|
4121
|
-
if (!!(this.
|
|
4141
|
+
if (!!(this.w1l_1 === 0)) {
|
|
4122
4142
|
var message = 'Arguments cannot have nvalues == 0';
|
|
4123
4143
|
throw IllegalArgumentException_init_$Create$(toString_0(message));
|
|
4124
4144
|
}
|
|
4125
|
-
this.
|
|
4145
|
+
this.e1m_1 = new NullableLateinit('Cannot read from argument delegate before parsing command line');
|
|
4126
4146
|
}
|
|
4127
4147
|
protoOf(ProcessedArgumentImpl).k = function () {
|
|
4128
|
-
return this.u1l_1;
|
|
4129
|
-
};
|
|
4130
|
-
protoOf(ProcessedArgumentImpl).h1a = function () {
|
|
4131
4148
|
return this.v1l_1;
|
|
4132
4149
|
};
|
|
4133
|
-
protoOf(ProcessedArgumentImpl).
|
|
4150
|
+
protoOf(ProcessedArgumentImpl).h1a = function () {
|
|
4134
4151
|
return this.w1l_1;
|
|
4135
4152
|
};
|
|
4136
4153
|
protoOf(ProcessedArgumentImpl).k1l = function () {
|
|
4137
4154
|
return this.x1l_1;
|
|
4138
4155
|
};
|
|
4139
|
-
protoOf(ProcessedArgumentImpl).
|
|
4156
|
+
protoOf(ProcessedArgumentImpl).l1l = function () {
|
|
4140
4157
|
return this.y1l_1;
|
|
4141
4158
|
};
|
|
4142
|
-
protoOf(ProcessedArgumentImpl).
|
|
4159
|
+
protoOf(ProcessedArgumentImpl).y1a = function () {
|
|
4143
4160
|
return this.z1l_1;
|
|
4144
4161
|
};
|
|
4145
|
-
protoOf(ProcessedArgumentImpl).
|
|
4162
|
+
protoOf(ProcessedArgumentImpl).o1l = function () {
|
|
4146
4163
|
return this.a1m_1;
|
|
4147
4164
|
};
|
|
4148
4165
|
protoOf(ProcessedArgumentImpl).m1l = function () {
|
|
4149
4166
|
return this.b1m_1;
|
|
4150
4167
|
};
|
|
4168
|
+
protoOf(ProcessedArgumentImpl).n1l = function () {
|
|
4169
|
+
return this.c1m_1;
|
|
4170
|
+
};
|
|
4151
4171
|
protoOf(ProcessedArgumentImpl).r1a = function (context) {
|
|
4152
|
-
var tmp0_safe_receiver = this.
|
|
4172
|
+
var tmp0_safe_receiver = this.y1l_1;
|
|
4153
4173
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver(new HelpTransformContext(context));
|
|
4154
4174
|
return tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs;
|
|
4155
4175
|
};
|
|
4156
|
-
protoOf(ProcessedArgumentImpl).
|
|
4176
|
+
protoOf(ProcessedArgumentImpl).f1m = function (_set____db54di) {
|
|
4157
4177
|
var tmp = KMutableProperty1;
|
|
4158
4178
|
var tmp_0 = ProcessedArgumentImpl$_get_value_$ref_enmq3a_0();
|
|
4159
|
-
return this.
|
|
4179
|
+
return this.e1m_1.i1m(this, getPropertyCallableRef('value', 1, tmp, tmp_0, ProcessedArgumentImpl$_set_value_$ref_en7qba_0()), _set____db54di);
|
|
4160
4180
|
};
|
|
4161
4181
|
protoOf(ProcessedArgumentImpl).m1 = function () {
|
|
4162
4182
|
var tmp = KMutableProperty1;
|
|
4163
4183
|
var tmp_0 = ProcessedArgumentImpl$_get_value_$ref_enmq3a();
|
|
4164
|
-
return this.
|
|
4184
|
+
return this.e1m_1.j1m(this, getPropertyCallableRef('value', 1, tmp, tmp_0, ProcessedArgumentImpl$_set_value_$ref_en7qba()));
|
|
4165
4185
|
};
|
|
4166
4186
|
protoOf(ProcessedArgumentImpl).g1a = function () {
|
|
4167
|
-
var tmp0_elvis_lhs = this.
|
|
4187
|
+
var tmp0_elvis_lhs = this.a1m_1;
|
|
4168
4188
|
return tmp0_elvis_lhs == null ? None_getInstance() : tmp0_elvis_lhs;
|
|
4169
4189
|
};
|
|
4170
4190
|
protoOf(ProcessedArgumentImpl).j1b = function (context) {
|
|
4171
|
-
return new Argument(this.
|
|
4172
|
-
};
|
|
4173
|
-
protoOf(ProcessedArgumentImpl).j1m = function (thisRef, property) {
|
|
4174
|
-
return this.m1();
|
|
4191
|
+
return new Argument(this.v1l_1, this.r1a(context), this.x1l_1 || this.w1l_1 > 1, this.w1l_1 < 0, this.z1l_1);
|
|
4175
4192
|
};
|
|
4176
4193
|
protoOf(ProcessedArgumentImpl).k1m = function (thisRef, property) {
|
|
4177
|
-
return this.
|
|
4194
|
+
return this.m1();
|
|
4178
4195
|
};
|
|
4179
4196
|
protoOf(ProcessedArgumentImpl).l1m = function (thisRef, property) {
|
|
4180
|
-
|
|
4197
|
+
return this.k1m(thisRef instanceof BaseCliktCommand ? thisRef : THROW_CCE(), property);
|
|
4198
|
+
};
|
|
4199
|
+
protoOf(ProcessedArgumentImpl).m1m = function (thisRef, property) {
|
|
4200
|
+
if (isBlank(this.v1l_1)) {
|
|
4181
4201
|
var tmp = this;
|
|
4182
4202
|
// Inline function 'kotlin.text.uppercase' call
|
|
4183
4203
|
// Inline function 'kotlin.js.asDynamic' call
|
|
4184
4204
|
var tmp$ret$0 = property.callableName.toUpperCase();
|
|
4185
|
-
tmp.
|
|
4205
|
+
tmp.v1l_1 = replace_0(tmp$ret$0, '-', '_');
|
|
4186
4206
|
}
|
|
4187
4207
|
thisRef.r1b(this);
|
|
4188
4208
|
return this;
|
|
4189
4209
|
};
|
|
4190
|
-
protoOf(ProcessedArgumentImpl).
|
|
4191
|
-
return this.
|
|
4210
|
+
protoOf(ProcessedArgumentImpl).r1l = function (thisRef, property) {
|
|
4211
|
+
return this.m1m(thisRef instanceof BaseCliktCommand ? thisRef : THROW_CCE(), property);
|
|
4192
4212
|
};
|
|
4193
4213
|
protoOf(ProcessedArgumentImpl).v1h = function (context, values) {
|
|
4194
4214
|
var ctx = new ArgumentTransformContext(this, context);
|
|
4195
|
-
if (this.
|
|
4215
|
+
if (this.x1l_1) {
|
|
4196
4216
|
if (values.p())
|
|
4197
4217
|
throw new MissingArgument(this);
|
|
4198
|
-
else if (this.
|
|
4218
|
+
else if (this.w1l_1 > 0 && !(values.d1() === this.w1l_1))
|
|
4199
4219
|
throw IncorrectArgumentValueCount_init_$Create$(this);
|
|
4200
4220
|
}
|
|
4201
4221
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -4204,22 +4224,22 @@
|
|
|
4204
4224
|
var _iterator__ex2g4s = values.r();
|
|
4205
4225
|
while (_iterator__ex2g4s.s()) {
|
|
4206
4226
|
var item = _iterator__ex2g4s.t();
|
|
4207
|
-
var tmp$ret$2 = this.
|
|
4227
|
+
var tmp$ret$2 = this.b1m_1(ctx, item);
|
|
4208
4228
|
destination.v(tmp$ret$2);
|
|
4209
4229
|
}
|
|
4210
|
-
this.
|
|
4230
|
+
this.f1m(this.c1m_1(ctx, destination));
|
|
4211
4231
|
};
|
|
4212
4232
|
protoOf(ProcessedArgumentImpl).k1h = function (context) {
|
|
4213
|
-
this.
|
|
4233
|
+
this.d1m_1(new ArgumentTransformContext(this, context), this.m1());
|
|
4214
4234
|
};
|
|
4215
|
-
protoOf(ProcessedArgumentImpl).
|
|
4235
|
+
protoOf(ProcessedArgumentImpl).p1l = function (transformValue, transformAll, validator, name, nvalues, required, helpGetter, helpTags, completionCandidates) {
|
|
4216
4236
|
return new ProcessedArgumentImpl(name, nvalues, required, helpGetter, helpTags, completionCandidates, transformValue, transformAll, validator);
|
|
4217
4237
|
};
|
|
4218
4238
|
protoOf(ProcessedArgumentImpl).toString = function () {
|
|
4219
4239
|
// Inline function 'kotlin.text.buildString' call
|
|
4220
4240
|
// Inline function 'kotlin.apply' call
|
|
4221
4241
|
var this_0 = StringBuilder_init_$Create$();
|
|
4222
|
-
this_0.o(this.
|
|
4242
|
+
this_0.o(this.v1l_1);
|
|
4223
4243
|
// Inline function 'kotlin.runCatching' call
|
|
4224
4244
|
var tmp;
|
|
4225
4245
|
try {
|
|
@@ -4253,7 +4273,7 @@
|
|
|
4253
4273
|
}
|
|
4254
4274
|
function optional$lambda($this_optional) {
|
|
4255
4275
|
return function ($this$transformAll, it) {
|
|
4256
|
-
return it.p() ? null : $this_optional.
|
|
4276
|
+
return it.p() ? null : $this_optional.n1l()($this$transformAll, it);
|
|
4257
4277
|
};
|
|
4258
4278
|
}
|
|
4259
4279
|
function argument$lambda($help) {
|
|
@@ -4279,28 +4299,28 @@
|
|
|
4279
4299
|
return UNINITIALIZED_instance;
|
|
4280
4300
|
}
|
|
4281
4301
|
function NullableLateinit(errorMessage) {
|
|
4282
|
-
this.
|
|
4283
|
-
this.
|
|
4302
|
+
this.g1m_1 = errorMessage;
|
|
4303
|
+
this.h1m_1 = UNINITIALIZED_instance;
|
|
4284
4304
|
}
|
|
4285
|
-
protoOf(NullableLateinit).
|
|
4286
|
-
if (this.
|
|
4287
|
-
throw new LateinitException(this.
|
|
4305
|
+
protoOf(NullableLateinit).j1m = function (thisRef, property) {
|
|
4306
|
+
if (this.h1m_1 === UNINITIALIZED_instance)
|
|
4307
|
+
throw new LateinitException(this.g1m_1);
|
|
4288
4308
|
try {
|
|
4289
|
-
return this.
|
|
4309
|
+
return this.h1m_1;
|
|
4290
4310
|
} catch ($p) {
|
|
4291
4311
|
if ($p instanceof ClassCastException) {
|
|
4292
4312
|
var e = $p;
|
|
4293
|
-
throw new LateinitException(this.
|
|
4313
|
+
throw new LateinitException(this.g1m_1);
|
|
4294
4314
|
} else {
|
|
4295
4315
|
throw $p;
|
|
4296
4316
|
}
|
|
4297
4317
|
}
|
|
4298
4318
|
};
|
|
4299
|
-
protoOf(NullableLateinit).
|
|
4300
|
-
return this.
|
|
4319
|
+
protoOf(NullableLateinit).l1m = function (thisRef, property) {
|
|
4320
|
+
return this.j1m(!(thisRef == null) ? thisRef : THROW_CCE(), property);
|
|
4301
4321
|
};
|
|
4302
|
-
protoOf(NullableLateinit).
|
|
4303
|
-
this.
|
|
4322
|
+
protoOf(NullableLateinit).i1m = function (thisRef, property, value) {
|
|
4323
|
+
this.h1m_1 = value;
|
|
4304
4324
|
};
|
|
4305
4325
|
function LateinitException(message) {
|
|
4306
4326
|
IllegalStateException_init_$Init$(message, this);
|
|
@@ -4315,10 +4335,10 @@
|
|
|
4315
4335
|
var tmp$ret$0 = copyToArray(names);
|
|
4316
4336
|
// Inline function 'com.github.ajalt.clikt.parameters.options.validate' call
|
|
4317
4337
|
var this_0 = flag(option(_this__u8e3s4, tmp$ret$0.slice(), help, VOID, hidden, VOID, helpTags, VOID, VOID, true), []);
|
|
4318
|
-
var tmp = this_0.
|
|
4319
|
-
var tmp_0 = this_0.
|
|
4320
|
-
var tmp_1 = this_0.
|
|
4321
|
-
var o = this_0.
|
|
4338
|
+
var tmp = this_0.m1l();
|
|
4339
|
+
var tmp_0 = this_0.o1m();
|
|
4340
|
+
var tmp_1 = this_0.n1l();
|
|
4341
|
+
var o = this_0.p1m(tmp, tmp_0, tmp_1, eagerOption$lambda(action));
|
|
4322
4342
|
o.c1e(groupName);
|
|
4323
4343
|
_this__u8e3s4.q1b(o);
|
|
4324
4344
|
return _this__u8e3s4;
|
|
@@ -4342,16 +4362,16 @@
|
|
|
4342
4362
|
function nullableFlag(_this__u8e3s4, secondaryNames) {
|
|
4343
4363
|
var tmp = boolean(_this__u8e3s4);
|
|
4344
4364
|
var tmp_0 = numberRangeToNumber(0, 0);
|
|
4345
|
-
return transformValues(tmp, tmp_0, nullableFlag$lambda(secondaryNames)).
|
|
4365
|
+
return transformValues(tmp, tmp_0, nullableFlag$lambda(secondaryNames)).q1m(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, toSet_0(secondaryNames));
|
|
4346
4366
|
}
|
|
4347
4367
|
function nullableFlag$lambda($secondaryNames) {
|
|
4348
4368
|
return function ($this$transformValues, it) {
|
|
4349
4369
|
var tmp;
|
|
4350
4370
|
if (it.d1() > 1) {
|
|
4351
|
-
$this$transformValues.
|
|
4371
|
+
$this$transformValues.u1l($this$transformValues.t1m_1.v19_1.z1k($this$transformValues.r1m_1));
|
|
4352
4372
|
}
|
|
4353
4373
|
var tmp0_elvis_lhs = lastOrNull(it);
|
|
4354
|
-
return tmp0_elvis_lhs == null ? !contains_0($secondaryNames, $this$transformValues.
|
|
4374
|
+
return tmp0_elvis_lhs == null ? !contains_0($secondaryNames, $this$transformValues.r1m_1) : tmp0_elvis_lhs;
|
|
4355
4375
|
};
|
|
4356
4376
|
}
|
|
4357
4377
|
function Option_0() {
|
|
@@ -4506,7 +4526,7 @@
|
|
|
4506
4526
|
}
|
|
4507
4527
|
function readValueSource(_this__u8e3s4, context) {
|
|
4508
4528
|
var tmp0_safe_receiver = context.t19_1;
|
|
4509
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
4529
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.x1m(context, _this__u8e3s4);
|
|
4510
4530
|
var tmp;
|
|
4511
4531
|
if (tmp1_safe_receiver == null) {
|
|
4512
4532
|
tmp = null;
|
|
@@ -4517,7 +4537,7 @@
|
|
|
4517
4537
|
var _iterator__ex2g4s = tmp1_safe_receiver.r();
|
|
4518
4538
|
while (_iterator__ex2g4s.s()) {
|
|
4519
4539
|
var item = _iterator__ex2g4s.t();
|
|
4520
|
-
var tmp$ret$2 = new OptionInvocation(item.
|
|
4540
|
+
var tmp$ret$2 = new OptionInvocation(item.z1m_1, item.y1m_1);
|
|
4521
4541
|
destination.v(tmp$ret$2);
|
|
4522
4542
|
}
|
|
4523
4543
|
tmp = destination;
|
|
@@ -4543,7 +4563,7 @@
|
|
|
4543
4563
|
if (!invocations.p())
|
|
4544
4564
|
return false;
|
|
4545
4565
|
var tmp0_safe_receiver = isInterface(_this__u8e3s4, OptionWithValues) ? _this__u8e3s4 : null;
|
|
4546
|
-
var envvar = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
4566
|
+
var envvar = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.a1n();
|
|
4547
4567
|
var final = getFinalValue(_this__u8e3s4, context, invocations, envvar);
|
|
4548
4568
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
4549
4569
|
return !final.p();
|
|
@@ -4560,11 +4580,11 @@
|
|
|
4560
4580
|
protoOf(OptionTransformContext).y8 = function () {
|
|
4561
4581
|
return this.u1a_1;
|
|
4562
4582
|
};
|
|
4563
|
-
protoOf(OptionTransformContext).
|
|
4583
|
+
protoOf(OptionTransformContext).u1l = function (message) {
|
|
4564
4584
|
throw BadParameterValue_init_$Create$_0(message, this.t1a_1);
|
|
4565
4585
|
};
|
|
4566
|
-
protoOf(OptionTransformContext).
|
|
4567
|
-
return this.t1a_1.
|
|
4586
|
+
protoOf(OptionTransformContext).u1m = function (context) {
|
|
4587
|
+
return this.t1a_1.u1m(context);
|
|
4568
4588
|
};
|
|
4569
4589
|
protoOf(OptionTransformContext).q1a = function (context) {
|
|
4570
4590
|
return this.t1a_1.q1a(context);
|
|
@@ -4609,60 +4629,60 @@
|
|
|
4609
4629
|
this.t1a_1.k1h(context);
|
|
4610
4630
|
};
|
|
4611
4631
|
function OptionCallTransformContext(name, option, context) {
|
|
4612
|
-
this.
|
|
4613
|
-
this.
|
|
4614
|
-
this.
|
|
4632
|
+
this.r1m_1 = name;
|
|
4633
|
+
this.s1m_1 = option;
|
|
4634
|
+
this.t1m_1 = context;
|
|
4615
4635
|
}
|
|
4616
4636
|
protoOf(OptionCallTransformContext).y8 = function () {
|
|
4617
|
-
return this.
|
|
4637
|
+
return this.t1m_1;
|
|
4618
4638
|
};
|
|
4619
|
-
protoOf(OptionCallTransformContext).
|
|
4620
|
-
throw BadParameterValue_init_$Create$_1(message, this.
|
|
4639
|
+
protoOf(OptionCallTransformContext).u1l = function (message) {
|
|
4640
|
+
throw BadParameterValue_init_$Create$_1(message, this.s1m_1, this.r1m_1);
|
|
4621
4641
|
};
|
|
4622
|
-
protoOf(OptionCallTransformContext).
|
|
4623
|
-
return this.
|
|
4642
|
+
protoOf(OptionCallTransformContext).u1m = function (context) {
|
|
4643
|
+
return this.s1m_1.u1m(context);
|
|
4624
4644
|
};
|
|
4625
4645
|
protoOf(OptionCallTransformContext).q1a = function (context) {
|
|
4626
|
-
return this.
|
|
4646
|
+
return this.s1m_1.q1a(context);
|
|
4627
4647
|
};
|
|
4628
4648
|
protoOf(OptionCallTransformContext).g19 = function () {
|
|
4629
|
-
return this.
|
|
4649
|
+
return this.s1m_1.g19();
|
|
4630
4650
|
};
|
|
4631
4651
|
protoOf(OptionCallTransformContext).h19 = function () {
|
|
4632
|
-
return this.
|
|
4652
|
+
return this.s1m_1.h19();
|
|
4633
4653
|
};
|
|
4634
4654
|
protoOf(OptionCallTransformContext).h1a = function () {
|
|
4635
|
-
return this.
|
|
4655
|
+
return this.s1m_1.h1a();
|
|
4636
4656
|
};
|
|
4637
4657
|
protoOf(OptionCallTransformContext).f1a = function () {
|
|
4638
|
-
return this.
|
|
4658
|
+
return this.s1m_1.f1a();
|
|
4639
4659
|
};
|
|
4640
4660
|
protoOf(OptionCallTransformContext).y1a = function () {
|
|
4641
|
-
return this.
|
|
4661
|
+
return this.s1m_1.y1a();
|
|
4642
4662
|
};
|
|
4643
4663
|
protoOf(OptionCallTransformContext).g1a = function () {
|
|
4644
|
-
return this.
|
|
4664
|
+
return this.s1m_1.g1a();
|
|
4645
4665
|
};
|
|
4646
4666
|
protoOf(OptionCallTransformContext).y1d = function () {
|
|
4647
|
-
return this.
|
|
4667
|
+
return this.s1m_1.y1d();
|
|
4648
4668
|
};
|
|
4649
4669
|
protoOf(OptionCallTransformContext).p1b = function () {
|
|
4650
|
-
return this.
|
|
4670
|
+
return this.s1m_1.p1b();
|
|
4651
4671
|
};
|
|
4652
4672
|
protoOf(OptionCallTransformContext).z1d = function () {
|
|
4653
|
-
return this.
|
|
4673
|
+
return this.s1m_1.z1d();
|
|
4654
4674
|
};
|
|
4655
4675
|
protoOf(OptionCallTransformContext).a1e = function () {
|
|
4656
|
-
return this.
|
|
4676
|
+
return this.s1m_1.a1e();
|
|
4657
4677
|
};
|
|
4658
4678
|
protoOf(OptionCallTransformContext).j1b = function (context) {
|
|
4659
|
-
return this.
|
|
4679
|
+
return this.s1m_1.j1b(context);
|
|
4660
4680
|
};
|
|
4661
4681
|
protoOf(OptionCallTransformContext).s1h = function (context, invocations) {
|
|
4662
|
-
this.
|
|
4682
|
+
this.s1m_1.s1h(context, invocations);
|
|
4663
4683
|
};
|
|
4664
4684
|
protoOf(OptionCallTransformContext).k1h = function (context) {
|
|
4665
|
-
this.
|
|
4685
|
+
this.s1m_1.k1h(context);
|
|
4666
4686
|
};
|
|
4667
4687
|
function option(_this__u8e3s4, names, help, metavar, hidden, envvar, helpTags, completionCandidates, valueSourceKey, eager) {
|
|
4668
4688
|
help = help === VOID ? '' : help;
|
|
@@ -4692,7 +4712,7 @@
|
|
|
4692
4712
|
return new OptionWithValuesImpl(tmp1_names, tmp2_metavarGetter, tmp3_nvalues, tmp_0, hidden, helpTags, valueSourceKey, envvar, tmp_1, completionCandidates, tmp4_secondaryNames, false, true, eager, option$lambda_1, tmp5_transformEach, tmp6_transformAll, tmp7_transformValidator);
|
|
4693
4713
|
}
|
|
4694
4714
|
function OptionWithValuesImpl$metavar$lambda(_this__u8e3s4) {
|
|
4695
|
-
return _this__u8e3s4.v19_1.
|
|
4715
|
+
return _this__u8e3s4.v19_1.c1l();
|
|
4696
4716
|
}
|
|
4697
4717
|
function OptionWithValuesImpl$_get_value_$ref_kjlo8() {
|
|
4698
4718
|
return function (p0) {
|
|
@@ -4701,7 +4721,7 @@
|
|
|
4701
4721
|
}
|
|
4702
4722
|
function OptionWithValuesImpl$_set_value_$ref_tve22s() {
|
|
4703
4723
|
return function (p0, p1) {
|
|
4704
|
-
p0.
|
|
4724
|
+
p0.f1m(p1);
|
|
4705
4725
|
return Unit_instance;
|
|
4706
4726
|
};
|
|
4707
4727
|
}
|
|
@@ -4712,95 +4732,95 @@
|
|
|
4712
4732
|
}
|
|
4713
4733
|
function OptionWithValuesImpl$_set_value_$ref_tve22s_0() {
|
|
4714
4734
|
return function (p0, p1) {
|
|
4715
|
-
p0.
|
|
4735
|
+
p0.f1m(p1);
|
|
4716
4736
|
return Unit_instance;
|
|
4717
4737
|
};
|
|
4718
4738
|
}
|
|
4719
4739
|
function OptionWithValuesImpl(names, metavarGetter, nvalues, helpGetter, hidden, helpTags, valueSourceKey, envvar, valueSplit, explicitCompletionCandidates, secondaryNames, acceptsNumberValueWithoutName, acceptsUnattachedValue, eager, transformValue, transformEach, transformAll, transformValidator) {
|
|
4720
|
-
this.
|
|
4721
|
-
this.
|
|
4722
|
-
this.
|
|
4723
|
-
this.
|
|
4724
|
-
this.
|
|
4725
|
-
this.
|
|
4726
|
-
this.
|
|
4727
|
-
this.
|
|
4728
|
-
this.
|
|
4729
|
-
this.
|
|
4730
|
-
this.
|
|
4731
|
-
this.
|
|
4732
|
-
this.
|
|
4733
|
-
this.
|
|
4734
|
-
this.
|
|
4735
|
-
this.
|
|
4736
|
-
this.
|
|
4737
|
-
this.w1n_1 = null;
|
|
4740
|
+
this.g1n_1 = metavarGetter;
|
|
4741
|
+
this.h1n_1 = nvalues;
|
|
4742
|
+
this.i1n_1 = helpGetter;
|
|
4743
|
+
this.j1n_1 = hidden;
|
|
4744
|
+
this.k1n_1 = helpTags;
|
|
4745
|
+
this.l1n_1 = valueSourceKey;
|
|
4746
|
+
this.m1n_1 = envvar;
|
|
4747
|
+
this.n1n_1 = valueSplit;
|
|
4748
|
+
this.o1n_1 = explicitCompletionCandidates;
|
|
4749
|
+
this.p1n_1 = secondaryNames;
|
|
4750
|
+
this.q1n_1 = acceptsNumberValueWithoutName;
|
|
4751
|
+
this.r1n_1 = acceptsUnattachedValue;
|
|
4752
|
+
this.s1n_1 = eager;
|
|
4753
|
+
this.t1n_1 = transformValue;
|
|
4754
|
+
this.u1n_1 = transformEach;
|
|
4755
|
+
this.v1n_1 = transformAll;
|
|
4756
|
+
this.w1n_1 = transformValidator;
|
|
4738
4757
|
this.x1n_1 = null;
|
|
4739
|
-
this.y1n_1 =
|
|
4740
|
-
this.z1n_1 =
|
|
4758
|
+
this.y1n_1 = null;
|
|
4759
|
+
this.z1n_1 = new NullableLateinit('Cannot read from option delegate before parsing command line');
|
|
4760
|
+
this.a1o_1 = names;
|
|
4741
4761
|
}
|
|
4742
|
-
protoOf(OptionWithValuesImpl).
|
|
4743
|
-
return this.f1n_1;
|
|
4744
|
-
};
|
|
4745
|
-
protoOf(OptionWithValuesImpl).h1a = function () {
|
|
4762
|
+
protoOf(OptionWithValuesImpl).c1n = function () {
|
|
4746
4763
|
return this.g1n_1;
|
|
4747
4764
|
};
|
|
4748
|
-
protoOf(OptionWithValuesImpl).
|
|
4765
|
+
protoOf(OptionWithValuesImpl).h1a = function () {
|
|
4749
4766
|
return this.h1n_1;
|
|
4750
4767
|
};
|
|
4751
|
-
protoOf(OptionWithValuesImpl).
|
|
4768
|
+
protoOf(OptionWithValuesImpl).l1l = function () {
|
|
4752
4769
|
return this.i1n_1;
|
|
4753
4770
|
};
|
|
4754
|
-
protoOf(OptionWithValuesImpl).
|
|
4771
|
+
protoOf(OptionWithValuesImpl).f1a = function () {
|
|
4755
4772
|
return this.j1n_1;
|
|
4756
4773
|
};
|
|
4757
|
-
protoOf(OptionWithValuesImpl).
|
|
4774
|
+
protoOf(OptionWithValuesImpl).y1a = function () {
|
|
4758
4775
|
return this.k1n_1;
|
|
4759
4776
|
};
|
|
4760
|
-
protoOf(OptionWithValuesImpl).
|
|
4777
|
+
protoOf(OptionWithValuesImpl).y1d = function () {
|
|
4761
4778
|
return this.l1n_1;
|
|
4762
4779
|
};
|
|
4763
|
-
protoOf(OptionWithValuesImpl).
|
|
4780
|
+
protoOf(OptionWithValuesImpl).a1n = function () {
|
|
4764
4781
|
return this.m1n_1;
|
|
4765
4782
|
};
|
|
4766
|
-
protoOf(OptionWithValuesImpl).
|
|
4783
|
+
protoOf(OptionWithValuesImpl).d1n = function () {
|
|
4767
4784
|
return this.n1n_1;
|
|
4768
4785
|
};
|
|
4769
|
-
protoOf(OptionWithValuesImpl).
|
|
4786
|
+
protoOf(OptionWithValuesImpl).o1l = function () {
|
|
4770
4787
|
return this.o1n_1;
|
|
4771
4788
|
};
|
|
4772
|
-
protoOf(OptionWithValuesImpl).
|
|
4789
|
+
protoOf(OptionWithValuesImpl).h19 = function () {
|
|
4773
4790
|
return this.p1n_1;
|
|
4774
4791
|
};
|
|
4775
|
-
protoOf(OptionWithValuesImpl).
|
|
4792
|
+
protoOf(OptionWithValuesImpl).p1b = function () {
|
|
4776
4793
|
return this.q1n_1;
|
|
4777
4794
|
};
|
|
4778
|
-
protoOf(OptionWithValuesImpl).
|
|
4795
|
+
protoOf(OptionWithValuesImpl).a1e = function () {
|
|
4779
4796
|
return this.r1n_1;
|
|
4780
4797
|
};
|
|
4781
|
-
protoOf(OptionWithValuesImpl).
|
|
4798
|
+
protoOf(OptionWithValuesImpl).z1d = function () {
|
|
4782
4799
|
return this.s1n_1;
|
|
4783
4800
|
};
|
|
4784
|
-
protoOf(OptionWithValuesImpl).
|
|
4801
|
+
protoOf(OptionWithValuesImpl).m1l = function () {
|
|
4785
4802
|
return this.t1n_1;
|
|
4786
4803
|
};
|
|
4787
|
-
protoOf(OptionWithValuesImpl).
|
|
4804
|
+
protoOf(OptionWithValuesImpl).o1m = function () {
|
|
4788
4805
|
return this.u1n_1;
|
|
4789
4806
|
};
|
|
4790
|
-
protoOf(OptionWithValuesImpl).
|
|
4807
|
+
protoOf(OptionWithValuesImpl).n1l = function () {
|
|
4791
4808
|
return this.v1n_1;
|
|
4792
4809
|
};
|
|
4793
|
-
protoOf(OptionWithValuesImpl).
|
|
4810
|
+
protoOf(OptionWithValuesImpl).b1n = function () {
|
|
4794
4811
|
return this.w1n_1;
|
|
4795
4812
|
};
|
|
4813
|
+
protoOf(OptionWithValuesImpl).b1e = function () {
|
|
4814
|
+
return this.x1n_1;
|
|
4815
|
+
};
|
|
4796
4816
|
protoOf(OptionWithValuesImpl).c1e = function (_set____db54di) {
|
|
4797
|
-
this.
|
|
4817
|
+
this.y1n_1 = _set____db54di;
|
|
4798
4818
|
};
|
|
4799
4819
|
protoOf(OptionWithValuesImpl).x1d = function () {
|
|
4800
|
-
return this.
|
|
4820
|
+
return this.y1n_1;
|
|
4801
4821
|
};
|
|
4802
|
-
protoOf(OptionWithValuesImpl).
|
|
4803
|
-
var tmp0_elvis_lhs = this.
|
|
4822
|
+
protoOf(OptionWithValuesImpl).u1m = function (context) {
|
|
4823
|
+
var tmp0_elvis_lhs = this.g1n_1;
|
|
4804
4824
|
var tmp;
|
|
4805
4825
|
if (tmp0_elvis_lhs == null) {
|
|
4806
4826
|
tmp = OptionWithValuesImpl$metavar$lambda;
|
|
@@ -4809,31 +4829,31 @@
|
|
|
4809
4829
|
}
|
|
4810
4830
|
return tmp(context);
|
|
4811
4831
|
};
|
|
4812
|
-
protoOf(OptionWithValuesImpl).
|
|
4832
|
+
protoOf(OptionWithValuesImpl).f1m = function (_set____db54di) {
|
|
4813
4833
|
var tmp = KMutableProperty1;
|
|
4814
4834
|
var tmp_0 = OptionWithValuesImpl$_get_value_$ref_kjlo8_0();
|
|
4815
|
-
return this.
|
|
4835
|
+
return this.z1n_1.i1m(this, getPropertyCallableRef('value', 1, tmp, tmp_0, OptionWithValuesImpl$_set_value_$ref_tve22s_0()), _set____db54di);
|
|
4816
4836
|
};
|
|
4817
4837
|
protoOf(OptionWithValuesImpl).m1 = function () {
|
|
4818
4838
|
var tmp = KMutableProperty1;
|
|
4819
4839
|
var tmp_0 = OptionWithValuesImpl$_get_value_$ref_kjlo8();
|
|
4820
|
-
return this.
|
|
4840
|
+
return this.z1n_1.j1m(this, getPropertyCallableRef('value', 1, tmp, tmp_0, OptionWithValuesImpl$_set_value_$ref_tve22s()));
|
|
4821
4841
|
};
|
|
4822
4842
|
protoOf(OptionWithValuesImpl).g19 = function () {
|
|
4823
|
-
return this.
|
|
4843
|
+
return this.a1o_1;
|
|
4824
4844
|
};
|
|
4825
4845
|
protoOf(OptionWithValuesImpl).g1a = function () {
|
|
4826
|
-
var tmp0_elvis_lhs = this.
|
|
4846
|
+
var tmp0_elvis_lhs = this.o1n_1;
|
|
4827
4847
|
return tmp0_elvis_lhs == null ? None_getInstance() : tmp0_elvis_lhs;
|
|
4828
4848
|
};
|
|
4829
4849
|
protoOf(OptionWithValuesImpl).q1a = function (context) {
|
|
4830
|
-
var tmp0_safe_receiver = this.
|
|
4850
|
+
var tmp0_safe_receiver = this.i1n_1;
|
|
4831
4851
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver(new HelpTransformContext(context));
|
|
4832
4852
|
return tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs;
|
|
4833
4853
|
};
|
|
4834
4854
|
protoOf(OptionWithValuesImpl).s1h = function (context, invocations) {
|
|
4835
4855
|
// Inline function 'kotlin.collections.map' call
|
|
4836
|
-
var this_0 = getFinalValue(this, context, invocations, this.
|
|
4856
|
+
var this_0 = getFinalValue(this, context, invocations, this.m1n_1);
|
|
4837
4857
|
// Inline function 'kotlin.collections.mapTo' call
|
|
4838
4858
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
4839
4859
|
var _iterator__ex2g4s = this_0.r();
|
|
@@ -4842,28 +4862,28 @@
|
|
|
4842
4862
|
var tmp;
|
|
4843
4863
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
4844
4864
|
if (!invocations.p()) {
|
|
4845
|
-
var progression = this.
|
|
4865
|
+
var progression = this.h1n_1;
|
|
4846
4866
|
var containsLower = progression.o1_1;
|
|
4847
4867
|
var containsUpper = progression.p1_1;
|
|
4848
|
-
var containsArg = item.
|
|
4868
|
+
var containsArg = item.c1o_1.d1();
|
|
4849
4869
|
tmp = !(containsLower <= containsArg ? containsArg <= containsUpper : false);
|
|
4850
4870
|
} else {
|
|
4851
4871
|
tmp = false;
|
|
4852
4872
|
}
|
|
4853
4873
|
if (tmp) {
|
|
4854
|
-
throw IncorrectOptionValueCount_init_$Create$(this, item.
|
|
4874
|
+
throw IncorrectOptionValueCount_init_$Create$(this, item.b1o_1);
|
|
4855
4875
|
}
|
|
4856
4876
|
// Inline function 'kotlin.collections.flatMap' call
|
|
4857
|
-
var tmp0 = item.
|
|
4877
|
+
var tmp0 = item.c1o_1;
|
|
4858
4878
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
4859
4879
|
var destination_0 = ArrayList_init_$Create$();
|
|
4860
4880
|
var _iterator__ex2g4s_0 = tmp0.r();
|
|
4861
4881
|
while (_iterator__ex2g4s_0.s()) {
|
|
4862
4882
|
var element = _iterator__ex2g4s_0.t();
|
|
4863
|
-
var list = this.
|
|
4883
|
+
var list = this.n1n_1(element);
|
|
4864
4884
|
addAll(destination_0, list);
|
|
4865
4885
|
}
|
|
4866
|
-
var tmp$ret$2 = item.
|
|
4886
|
+
var tmp$ret$2 = item.d1o(VOID, destination_0);
|
|
4867
4887
|
destination.v(tmp$ret$2);
|
|
4868
4888
|
}
|
|
4869
4889
|
var invs = destination;
|
|
@@ -4874,38 +4894,38 @@
|
|
|
4874
4894
|
var _iterator__ex2g4s_1 = invs.r();
|
|
4875
4895
|
while (_iterator__ex2g4s_1.s()) {
|
|
4876
4896
|
var item_0 = _iterator__ex2g4s_1.t();
|
|
4877
|
-
var tc = new OptionCallTransformContext(item_0.
|
|
4897
|
+
var tc = new OptionCallTransformContext(item_0.b1o_1, this, context);
|
|
4878
4898
|
// Inline function 'kotlin.collections.map' call
|
|
4879
|
-
var this_1 = item_0.
|
|
4899
|
+
var this_1 = item_0.c1o_1;
|
|
4880
4900
|
// Inline function 'kotlin.collections.mapTo' call
|
|
4881
4901
|
var destination_2 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_1, 10));
|
|
4882
4902
|
var _iterator__ex2g4s_2 = this_1.r();
|
|
4883
4903
|
while (_iterator__ex2g4s_2.s()) {
|
|
4884
4904
|
var item_1 = _iterator__ex2g4s_2.t();
|
|
4885
|
-
var tmp$ret$12 = this.
|
|
4905
|
+
var tmp$ret$12 = this.t1n_1(tc, item_1);
|
|
4886
4906
|
destination_2.v(tmp$ret$12);
|
|
4887
4907
|
}
|
|
4888
|
-
var tmp$ret$9 = this.
|
|
4908
|
+
var tmp$ret$9 = this.u1n_1(tc, destination_2);
|
|
4889
4909
|
destination_1.v(tmp$ret$9);
|
|
4890
4910
|
}
|
|
4891
|
-
this.
|
|
4911
|
+
this.f1m(this.v1n_1(tmp_0, destination_1));
|
|
4892
4912
|
};
|
|
4893
|
-
protoOf(OptionWithValuesImpl).
|
|
4894
|
-
this.
|
|
4913
|
+
protoOf(OptionWithValuesImpl).v1m = function (thisRef, property) {
|
|
4914
|
+
this.a1o_1 = inferOptionNames(this.a1o_1, property.callableName);
|
|
4895
4915
|
thisRef.q1b(this);
|
|
4896
4916
|
return this;
|
|
4897
4917
|
};
|
|
4898
|
-
protoOf(OptionWithValuesImpl).
|
|
4899
|
-
return this.
|
|
4918
|
+
protoOf(OptionWithValuesImpl).r1l = function (thisRef, property) {
|
|
4919
|
+
return this.v1m((!(thisRef == null) ? isInterface(thisRef, ParameterHolder) : false) ? thisRef : THROW_CCE(), property);
|
|
4900
4920
|
};
|
|
4901
4921
|
protoOf(OptionWithValuesImpl).k1h = function (context) {
|
|
4902
|
-
this.
|
|
4922
|
+
this.w1n_1(new OptionTransformContext(this, context), this.m1());
|
|
4903
4923
|
};
|
|
4904
|
-
protoOf(OptionWithValuesImpl).
|
|
4924
|
+
protoOf(OptionWithValuesImpl).e1n = function (transformValue, transformEach, transformAll, validator, names, metavarGetter, nvalues, helpGetter, hidden, helpTags, valueSourceKey, envvar, valueSplit, completionCandidates, secondaryNames, acceptsNumberValueWithoutName, acceptsUnattachedValue, eager) {
|
|
4905
4925
|
return new OptionWithValuesImpl(names, metavarGetter, nvalues, helpGetter, hidden, helpTags, valueSourceKey, envvar, valueSplit, completionCandidates, secondaryNames, acceptsNumberValueWithoutName, acceptsUnattachedValue, eager, transformValue, transformEach, transformAll, validator);
|
|
4906
4926
|
};
|
|
4907
|
-
protoOf(OptionWithValuesImpl).
|
|
4908
|
-
return new OptionWithValuesImpl(names, metavarGetter, nvalues, helpGetter, hidden, helpTags, valueSourceKey, envvar, valueSplit, completionCandidates, secondaryNames, acceptsNumberValueWithoutName, acceptsUnattachedValue, eager, this.
|
|
4927
|
+
protoOf(OptionWithValuesImpl).f1n = function (validator, names, metavarGetter, nvalues, helpGetter, hidden, helpTags, envvar, valueSourceKey, valueSplit, completionCandidates, secondaryNames, acceptsNumberValueWithoutName, acceptsUnattachedValue, eager) {
|
|
4928
|
+
return new OptionWithValuesImpl(names, metavarGetter, nvalues, helpGetter, hidden, helpTags, valueSourceKey, envvar, valueSplit, completionCandidates, secondaryNames, acceptsNumberValueWithoutName, acceptsUnattachedValue, eager, this.t1n_1, this.u1n_1, this.v1n_1, validator);
|
|
4909
4929
|
};
|
|
4910
4930
|
protoOf(OptionWithValuesImpl).toString = function () {
|
|
4911
4931
|
// Inline function 'kotlin.text.buildString' call
|
|
@@ -4937,8 +4957,8 @@
|
|
|
4937
4957
|
}
|
|
4938
4958
|
return this_0.toString();
|
|
4939
4959
|
};
|
|
4940
|
-
protoOf(OptionWithValuesImpl).
|
|
4941
|
-
return this.
|
|
4960
|
+
protoOf(OptionWithValuesImpl).l1m = function (thisRef, property) {
|
|
4961
|
+
return this.w1m((!(thisRef == null) ? isInterface(thisRef, ParameterHolder) : false) ? thisRef : THROW_CCE(), property);
|
|
4942
4962
|
};
|
|
4943
4963
|
function defaultEachProcessor() {
|
|
4944
4964
|
return defaultEachProcessor$lambda;
|
|
@@ -5007,7 +5027,7 @@
|
|
|
5007
5027
|
tags.p2('default', defaultForHelp);
|
|
5008
5028
|
} else
|
|
5009
5029
|
tags.q2('default');
|
|
5010
|
-
return _this__u8e3s4.
|
|
5030
|
+
return _this__u8e3s4.p1m(_this__u8e3s4.m1l(), _this__u8e3s4.o1m(), transform, defaultValidator_0(), VOID, VOID, VOID, VOID, VOID, tags);
|
|
5011
5031
|
}
|
|
5012
5032
|
function required(_this__u8e3s4) {
|
|
5013
5033
|
return transformAll_0(_this__u8e3s4, VOID, true, required$lambda);
|
|
@@ -5044,41 +5064,41 @@
|
|
|
5044
5064
|
var message_1 = 'Cannot set nvalues = 1. Use convert() instead.';
|
|
5045
5065
|
throw IllegalArgumentException_init_$Create$(toString_0(message_1));
|
|
5046
5066
|
}
|
|
5047
|
-
var tmp = _this__u8e3s4.
|
|
5067
|
+
var tmp = _this__u8e3s4.m1l();
|
|
5048
5068
|
var tmp_0 = defaultAllProcessor_0();
|
|
5049
5069
|
var tmp_1 = defaultValidator_0();
|
|
5050
5070
|
var tmp_2;
|
|
5051
5071
|
if (nvalues.equals(numberRangeToNumber(0, 0))) {
|
|
5052
5072
|
tmp_2 = transformValues$lambda;
|
|
5053
5073
|
} else {
|
|
5054
|
-
tmp_2 = _this__u8e3s4.
|
|
5074
|
+
tmp_2 = _this__u8e3s4.c1n();
|
|
5055
5075
|
}
|
|
5056
|
-
return _this__u8e3s4.
|
|
5076
|
+
return _this__u8e3s4.p1m(tmp, transform, tmp_0, tmp_1, VOID, tmp_2, nvalues);
|
|
5057
5077
|
}
|
|
5058
5078
|
function transformValues$lambda($this$copy) {
|
|
5059
5079
|
return null;
|
|
5060
5080
|
}
|
|
5061
5081
|
function HelpTransformContext(context) {
|
|
5062
|
-
this.
|
|
5082
|
+
this.e1o_1 = context;
|
|
5063
5083
|
}
|
|
5064
5084
|
protoOf(HelpTransformContext).y8 = function () {
|
|
5065
|
-
return this.
|
|
5085
|
+
return this.e1o_1;
|
|
5066
5086
|
};
|
|
5067
|
-
protoOf(HelpTransformContext).
|
|
5087
|
+
protoOf(HelpTransformContext).u1l = function (message) {
|
|
5068
5088
|
throw new UsageError(message);
|
|
5069
5089
|
};
|
|
5070
5090
|
protoOf(HelpTransformContext).toString = function () {
|
|
5071
|
-
return 'HelpTransformContext(context=' + this.
|
|
5091
|
+
return 'HelpTransformContext(context=' + this.e1o_1.toString() + ')';
|
|
5072
5092
|
};
|
|
5073
5093
|
protoOf(HelpTransformContext).hashCode = function () {
|
|
5074
|
-
return hashCode(this.
|
|
5094
|
+
return hashCode(this.e1o_1);
|
|
5075
5095
|
};
|
|
5076
5096
|
protoOf(HelpTransformContext).equals = function (other) {
|
|
5077
5097
|
if (this === other)
|
|
5078
5098
|
return true;
|
|
5079
5099
|
if (!(other instanceof HelpTransformContext))
|
|
5080
5100
|
return false;
|
|
5081
|
-
if (!equals(this.
|
|
5101
|
+
if (!equals(this.e1o_1, other.e1o_1))
|
|
5082
5102
|
return false;
|
|
5083
5103
|
return true;
|
|
5084
5104
|
};
|
|
@@ -5091,10 +5111,10 @@
|
|
|
5091
5111
|
var tmp = defaultEachProcessor();
|
|
5092
5112
|
var tmp_0 = defaultAllProcessor_0();
|
|
5093
5113
|
var tmp_1 = defaultValidator_0();
|
|
5094
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
5114
|
+
var tmp0_elvis_lhs = _this__u8e3s4.c1n();
|
|
5095
5115
|
var tmp_2 = tmp0_elvis_lhs == null ? metavar_0 : tmp0_elvis_lhs;
|
|
5096
|
-
var tmp1_elvis_lhs = _this__u8e3s4.
|
|
5097
|
-
return _this__u8e3s4.
|
|
5116
|
+
var tmp1_elvis_lhs = _this__u8e3s4.o1l();
|
|
5117
|
+
return _this__u8e3s4.p1m(valueTransform, tmp, tmp_0, tmp_1, VOID, tmp_2, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp1_elvis_lhs == null ? null : tmp1_elvis_lhs);
|
|
5098
5118
|
}
|
|
5099
5119
|
function valueToBool(_this__u8e3s4, value) {
|
|
5100
5120
|
// Inline function 'kotlin.text.lowercase' call
|
|
@@ -5118,7 +5138,7 @@
|
|
|
5118
5138
|
tmp = false;
|
|
5119
5139
|
break;
|
|
5120
5140
|
default:
|
|
5121
|
-
_this__u8e3s4.
|
|
5141
|
+
_this__u8e3s4.u1l(_this__u8e3s4.y8().v19_1.a1l(value));
|
|
5122
5142
|
break;
|
|
5123
5143
|
}
|
|
5124
5144
|
return tmp;
|
|
@@ -5132,7 +5152,7 @@
|
|
|
5132
5152
|
return function (_this__u8e3s4, it) {
|
|
5133
5153
|
var tmp;
|
|
5134
5154
|
try {
|
|
5135
|
-
var it_0 = $this.
|
|
5155
|
+
var it_0 = $this.m1l()(_this__u8e3s4, it);
|
|
5136
5156
|
tmp = valueToBool(_this__u8e3s4, it_0);
|
|
5137
5157
|
} catch ($p) {
|
|
5138
5158
|
var tmp_0;
|
|
@@ -5143,7 +5163,7 @@
|
|
|
5143
5163
|
var tmp_2;
|
|
5144
5164
|
if (tmp0_elvis_lhs == null) {
|
|
5145
5165
|
// Inline function 'kotlin.takeUnless' call
|
|
5146
|
-
var this_0 = _this__u8e3s4.
|
|
5166
|
+
var this_0 = _this__u8e3s4.r1m_1;
|
|
5147
5167
|
var tmp_3;
|
|
5148
5168
|
// Inline function 'kotlin.text.isEmpty' call
|
|
5149
5169
|
if (!(charSequenceLength(this_0) === 0)) {
|
|
@@ -5156,13 +5176,13 @@
|
|
|
5156
5176
|
tmp_2 = tmp0_elvis_lhs;
|
|
5157
5177
|
}
|
|
5158
5178
|
var tmp1_elvis_lhs = tmp_2;
|
|
5159
|
-
tmp_1.f1e_1 = tmp1_elvis_lhs == null ? longestName(_this__u8e3s4.
|
|
5179
|
+
tmp_1.f1e_1 = tmp1_elvis_lhs == null ? longestName(_this__u8e3s4.s1m_1) : tmp1_elvis_lhs;
|
|
5160
5180
|
throw err;
|
|
5161
5181
|
} else {
|
|
5162
5182
|
if ($p instanceof Exception) {
|
|
5163
5183
|
var err_0 = $p;
|
|
5164
5184
|
var tmp2_elvis_lhs = err_0.message;
|
|
5165
|
-
_this__u8e3s4.
|
|
5185
|
+
_this__u8e3s4.u1l(tmp2_elvis_lhs == null ? '' : tmp2_elvis_lhs);
|
|
5166
5186
|
} else {
|
|
5167
5187
|
throw $p;
|
|
5168
5188
|
}
|
|
@@ -5172,6 +5192,118 @@
|
|
|
5172
5192
|
return tmp;
|
|
5173
5193
|
};
|
|
5174
5194
|
}
|
|
5195
|
+
function choice(_this__u8e3s4, choices, metavar, ignoreCase) {
|
|
5196
|
+
metavar = metavar === VOID ? mvar(choices.n2()) : metavar;
|
|
5197
|
+
ignoreCase = ignoreCase === VOID ? false : ignoreCase;
|
|
5198
|
+
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
5199
|
+
// Inline function 'kotlin.require' call
|
|
5200
|
+
if (!!choices.p()) {
|
|
5201
|
+
var message = 'Must specify at least one choice';
|
|
5202
|
+
throw IllegalArgumentException_init_$Create$(toString_0(message));
|
|
5203
|
+
}
|
|
5204
|
+
var tmp;
|
|
5205
|
+
if (ignoreCase) {
|
|
5206
|
+
// Inline function 'kotlin.collections.mapKeys' call
|
|
5207
|
+
// Inline function 'kotlin.collections.mapKeysTo' call
|
|
5208
|
+
var destination = LinkedHashMap_init_$Create$_0(mapCapacity(choices.d1()));
|
|
5209
|
+
// Inline function 'kotlin.collections.associateByTo' call
|
|
5210
|
+
var _iterator__ex2g4s = choices.k1().r();
|
|
5211
|
+
while (_iterator__ex2g4s.s()) {
|
|
5212
|
+
var element = _iterator__ex2g4s.t();
|
|
5213
|
+
// Inline function 'kotlin.text.lowercase' call
|
|
5214
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
5215
|
+
var tmp_0 = element.l1().toLowerCase();
|
|
5216
|
+
var tmp$ret$9 = element.m1();
|
|
5217
|
+
destination.p2(tmp_0, tmp$ret$9);
|
|
5218
|
+
}
|
|
5219
|
+
tmp = destination;
|
|
5220
|
+
} else {
|
|
5221
|
+
tmp = choices;
|
|
5222
|
+
}
|
|
5223
|
+
var c = tmp;
|
|
5224
|
+
// Inline function 'com.github.ajalt.clikt.parameters.options.convert' call
|
|
5225
|
+
var completionCandidates = new Fixed(choices.n2());
|
|
5226
|
+
// Inline function 'com.github.ajalt.clikt.parameters.options.convert' call
|
|
5227
|
+
var metavar_0 = choice$lambda(metavar);
|
|
5228
|
+
var valueTransform = choice$lambda_0(_this__u8e3s4, c, ignoreCase, choices);
|
|
5229
|
+
var tmp_1 = defaultEachProcessor();
|
|
5230
|
+
var tmp_2 = defaultAllProcessor_0();
|
|
5231
|
+
var tmp_3 = defaultValidator_0();
|
|
5232
|
+
var tmp0_elvis_lhs = _this__u8e3s4.c1n();
|
|
5233
|
+
var tmp_4 = tmp0_elvis_lhs == null ? metavar_0 : tmp0_elvis_lhs;
|
|
5234
|
+
var tmp1_elvis_lhs = _this__u8e3s4.o1l();
|
|
5235
|
+
return _this__u8e3s4.p1m(valueTransform, tmp_1, tmp_2, tmp_3, VOID, tmp_4, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp1_elvis_lhs == null ? completionCandidates : tmp1_elvis_lhs);
|
|
5236
|
+
}
|
|
5237
|
+
function mvar(choices) {
|
|
5238
|
+
return joinToString(choices, '|', '(', ')');
|
|
5239
|
+
}
|
|
5240
|
+
function errorMessage(context, choice, choices) {
|
|
5241
|
+
return context.v19_1.b1l(choice, toList_0(choices.n2()));
|
|
5242
|
+
}
|
|
5243
|
+
function choice$lambda($metavar) {
|
|
5244
|
+
return function ($this$convert) {
|
|
5245
|
+
return $metavar;
|
|
5246
|
+
};
|
|
5247
|
+
}
|
|
5248
|
+
function choice$lambda_0($this, $c, $ignoreCase, $choices) {
|
|
5249
|
+
return function (_this__u8e3s4, it) {
|
|
5250
|
+
var tmp;
|
|
5251
|
+
try {
|
|
5252
|
+
var it_0 = $this.m1l()(_this__u8e3s4, it);
|
|
5253
|
+
var tmp_0;
|
|
5254
|
+
if ($ignoreCase) {
|
|
5255
|
+
// Inline function 'kotlin.text.lowercase' call
|
|
5256
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
5257
|
+
tmp_0 = it_0.toLowerCase();
|
|
5258
|
+
} else {
|
|
5259
|
+
tmp_0 = it_0;
|
|
5260
|
+
}
|
|
5261
|
+
var tmp0_elvis_lhs = $c.m2(tmp_0);
|
|
5262
|
+
var tmp_1;
|
|
5263
|
+
if (tmp0_elvis_lhs == null) {
|
|
5264
|
+
_this__u8e3s4.u1l(errorMessage(_this__u8e3s4.t1m_1, it_0, $choices));
|
|
5265
|
+
} else {
|
|
5266
|
+
tmp_1 = tmp0_elvis_lhs;
|
|
5267
|
+
}
|
|
5268
|
+
tmp = tmp_1;
|
|
5269
|
+
} catch ($p) {
|
|
5270
|
+
var tmp_2;
|
|
5271
|
+
if ($p instanceof UsageError) {
|
|
5272
|
+
var err = $p;
|
|
5273
|
+
var tmp_3 = err;
|
|
5274
|
+
var tmp0_elvis_lhs_0 = err.f1e_1;
|
|
5275
|
+
var tmp_4;
|
|
5276
|
+
if (tmp0_elvis_lhs_0 == null) {
|
|
5277
|
+
// Inline function 'kotlin.takeUnless' call
|
|
5278
|
+
var this_0 = _this__u8e3s4.r1m_1;
|
|
5279
|
+
var tmp_5;
|
|
5280
|
+
// Inline function 'kotlin.text.isEmpty' call
|
|
5281
|
+
if (!(charSequenceLength(this_0) === 0)) {
|
|
5282
|
+
tmp_5 = this_0;
|
|
5283
|
+
} else {
|
|
5284
|
+
tmp_5 = null;
|
|
5285
|
+
}
|
|
5286
|
+
tmp_4 = tmp_5;
|
|
5287
|
+
} else {
|
|
5288
|
+
tmp_4 = tmp0_elvis_lhs_0;
|
|
5289
|
+
}
|
|
5290
|
+
var tmp1_elvis_lhs = tmp_4;
|
|
5291
|
+
tmp_3.f1e_1 = tmp1_elvis_lhs == null ? longestName(_this__u8e3s4.s1m_1) : tmp1_elvis_lhs;
|
|
5292
|
+
throw err;
|
|
5293
|
+
} else {
|
|
5294
|
+
if ($p instanceof Exception) {
|
|
5295
|
+
var err_0 = $p;
|
|
5296
|
+
var tmp2_elvis_lhs = err_0.message;
|
|
5297
|
+
_this__u8e3s4.u1l(tmp2_elvis_lhs == null ? '' : tmp2_elvis_lhs);
|
|
5298
|
+
} else {
|
|
5299
|
+
throw $p;
|
|
5300
|
+
}
|
|
5301
|
+
}
|
|
5302
|
+
tmp = tmp_2;
|
|
5303
|
+
}
|
|
5304
|
+
return tmp;
|
|
5305
|
+
};
|
|
5306
|
+
}
|
|
5175
5307
|
function getInvs($this, invocation) {
|
|
5176
5308
|
// Inline function 'kotlin.collections.partition' call
|
|
5177
5309
|
var this_0 = invocation.t1d_1.k1();
|
|
@@ -5234,7 +5366,7 @@
|
|
|
5234
5366
|
protoOf(CommandLineParser).l1d = function (command, argv) {
|
|
5235
5367
|
return parseArgv(command, argv);
|
|
5236
5368
|
};
|
|
5237
|
-
protoOf(CommandLineParser).
|
|
5369
|
+
protoOf(CommandLineParser).f1o = function (invocation) {
|
|
5238
5370
|
var command = invocation.s1d_1;
|
|
5239
5371
|
var context = command.f19();
|
|
5240
5372
|
throwCompletionMessageIfRequested(context, command);
|
|
@@ -5244,7 +5376,7 @@
|
|
|
5244
5376
|
finalizeOptions(context, eagerOpts, eagerInvs);
|
|
5245
5377
|
throwErrors(validateParameters(context, eagerInvs.n2()));
|
|
5246
5378
|
};
|
|
5247
|
-
protoOf(CommandLineParser).
|
|
5379
|
+
protoOf(CommandLineParser).g1o = function (invocation) {
|
|
5248
5380
|
var command = invocation.s1d_1;
|
|
5249
5381
|
var context = command.f19();
|
|
5250
5382
|
var groups = command.n1b();
|
|
@@ -5363,23 +5495,23 @@
|
|
|
5363
5495
|
throw tmp$ret$2;
|
|
5364
5496
|
}
|
|
5365
5497
|
function OptionInvocation(name, values) {
|
|
5366
|
-
this.
|
|
5367
|
-
this.
|
|
5498
|
+
this.b1o_1 = name;
|
|
5499
|
+
this.c1o_1 = values;
|
|
5368
5500
|
}
|
|
5369
|
-
protoOf(OptionInvocation).
|
|
5501
|
+
protoOf(OptionInvocation).h1o = function (name, values) {
|
|
5370
5502
|
return new OptionInvocation(name, values);
|
|
5371
5503
|
};
|
|
5372
|
-
protoOf(OptionInvocation).
|
|
5373
|
-
name = name === VOID ? this.
|
|
5374
|
-
values = values === VOID ? this.
|
|
5375
|
-
return $super === VOID ? this.
|
|
5504
|
+
protoOf(OptionInvocation).d1o = function (name, values, $super) {
|
|
5505
|
+
name = name === VOID ? this.b1o_1 : name;
|
|
5506
|
+
values = values === VOID ? this.c1o_1 : values;
|
|
5507
|
+
return $super === VOID ? this.h1o(name, values) : $super.h1o.call(this, name, values);
|
|
5376
5508
|
};
|
|
5377
5509
|
protoOf(OptionInvocation).toString = function () {
|
|
5378
|
-
return 'OptionInvocation(name=' + this.
|
|
5510
|
+
return 'OptionInvocation(name=' + this.b1o_1 + ', values=' + toString_0(this.c1o_1) + ')';
|
|
5379
5511
|
};
|
|
5380
5512
|
protoOf(OptionInvocation).hashCode = function () {
|
|
5381
|
-
var result = getStringHashCode(this.
|
|
5382
|
-
result = imul(result, 31) + hashCode(this.
|
|
5513
|
+
var result = getStringHashCode(this.b1o_1);
|
|
5514
|
+
result = imul(result, 31) + hashCode(this.c1o_1) | 0;
|
|
5383
5515
|
return result;
|
|
5384
5516
|
};
|
|
5385
5517
|
protoOf(OptionInvocation).equals = function (other) {
|
|
@@ -5387,9 +5519,9 @@
|
|
|
5387
5519
|
return true;
|
|
5388
5520
|
if (!(other instanceof OptionInvocation))
|
|
5389
5521
|
return false;
|
|
5390
|
-
if (!(this.
|
|
5522
|
+
if (!(this.b1o_1 === other.b1o_1))
|
|
5391
5523
|
return false;
|
|
5392
|
-
if (!equals(this.
|
|
5524
|
+
if (!equals(this.c1o_1, other.c1o_1))
|
|
5393
5525
|
return false;
|
|
5394
5526
|
return true;
|
|
5395
5527
|
};
|
|
@@ -5413,9 +5545,9 @@
|
|
|
5413
5545
|
}
|
|
5414
5546
|
function $invoke$yieldSubsCOROUTINE$(_this__u8e3s4, this$0, inv, resultContinuation) {
|
|
5415
5547
|
CoroutineImpl.call(this, resultContinuation);
|
|
5416
|
-
this.
|
|
5417
|
-
this.
|
|
5418
|
-
this.
|
|
5548
|
+
this.q1o_1 = _this__u8e3s4;
|
|
5549
|
+
this.r1o_1 = this$0;
|
|
5550
|
+
this.s1o_1 = inv;
|
|
5419
5551
|
}
|
|
5420
5552
|
protoOf($invoke$yieldSubsCOROUTINE$).a9 = function () {
|
|
5421
5553
|
var suspendResult = this.u8_1;
|
|
@@ -5425,27 +5557,27 @@
|
|
|
5425
5557
|
switch (tmp) {
|
|
5426
5558
|
case 0:
|
|
5427
5559
|
this.t8_1 = 5;
|
|
5428
|
-
this.
|
|
5560
|
+
this.r1o_1.q1d_1.v(this.s1o_1.s1d_1.f19());
|
|
5429
5561
|
this.s8_1 = 1;
|
|
5430
|
-
suspendResult = this.
|
|
5562
|
+
suspendResult = this.q1o_1.ue(this.s1o_1, this);
|
|
5431
5563
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
5432
5564
|
return suspendResult;
|
|
5433
5565
|
}
|
|
5434
5566
|
|
|
5435
5567
|
continue $sm;
|
|
5436
5568
|
case 1:
|
|
5437
|
-
this.
|
|
5569
|
+
this.t1o_1 = this.s1o_1.v1d_1.r();
|
|
5438
5570
|
this.s8_1 = 2;
|
|
5439
5571
|
continue $sm;
|
|
5440
5572
|
case 2:
|
|
5441
|
-
if (!this.
|
|
5573
|
+
if (!this.t1o_1.s()) {
|
|
5442
5574
|
this.s8_1 = 4;
|
|
5443
5575
|
continue $sm;
|
|
5444
5576
|
}
|
|
5445
5577
|
|
|
5446
|
-
var sub = this.
|
|
5578
|
+
var sub = this.t1o_1.t();
|
|
5447
5579
|
this.s8_1 = 3;
|
|
5448
|
-
suspendResult = invoke$yieldSubs(this.
|
|
5580
|
+
suspendResult = invoke$yieldSubs(this.q1o_1, this.r1o_1, sub, this);
|
|
5449
5581
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
5450
5582
|
return suspendResult;
|
|
5451
5583
|
}
|
|
@@ -5455,7 +5587,7 @@
|
|
|
5455
5587
|
this.s8_1 = 2;
|
|
5456
5588
|
continue $sm;
|
|
5457
5589
|
case 4:
|
|
5458
|
-
removeLast(this.
|
|
5590
|
+
removeLast(this.r1o_1.q1d_1).u3();
|
|
5459
5591
|
return Unit_instance;
|
|
5460
5592
|
case 5:
|
|
5461
5593
|
throw this.v8_1;
|
|
@@ -5472,22 +5604,22 @@
|
|
|
5472
5604
|
while (true);
|
|
5473
5605
|
};
|
|
5474
5606
|
function FlatInvocations$iterator$slambda$lambda(it) {
|
|
5475
|
-
CommandLineParser_instance.
|
|
5607
|
+
CommandLineParser_instance.g1o(it);
|
|
5476
5608
|
return Unit_instance;
|
|
5477
5609
|
}
|
|
5478
5610
|
function FlatInvocations$seq$slambda($root, this$0, resultContinuation) {
|
|
5479
|
-
this.
|
|
5480
|
-
this.
|
|
5611
|
+
this.c1p_1 = $root;
|
|
5612
|
+
this.d1p_1 = this$0;
|
|
5481
5613
|
CoroutineImpl.call(this, resultContinuation);
|
|
5482
5614
|
}
|
|
5483
|
-
protoOf(FlatInvocations$seq$slambda).
|
|
5484
|
-
var tmp = this.
|
|
5615
|
+
protoOf(FlatInvocations$seq$slambda).f1p = function ($this$sequence, $completion) {
|
|
5616
|
+
var tmp = this.g1p($this$sequence, $completion);
|
|
5485
5617
|
tmp.u8_1 = Unit_instance;
|
|
5486
5618
|
tmp.v8_1 = null;
|
|
5487
5619
|
return tmp.a9();
|
|
5488
5620
|
};
|
|
5489
5621
|
protoOf(FlatInvocations$seq$slambda).s9 = function (p1, $completion) {
|
|
5490
|
-
return this.
|
|
5622
|
+
return this.f1p(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
|
|
5491
5623
|
};
|
|
5492
5624
|
protoOf(FlatInvocations$seq$slambda).a9 = function () {
|
|
5493
5625
|
var suspendResult = this.u8_1;
|
|
@@ -5498,7 +5630,7 @@
|
|
|
5498
5630
|
case 0:
|
|
5499
5631
|
this.t8_1 = 2;
|
|
5500
5632
|
this.s8_1 = 1;
|
|
5501
|
-
suspendResult = invoke$yieldSubs(this.
|
|
5633
|
+
suspendResult = invoke$yieldSubs(this.e1p_1, this.d1p_1, this.c1p_1, this);
|
|
5502
5634
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
5503
5635
|
return suspendResult;
|
|
5504
5636
|
}
|
|
@@ -5520,31 +5652,31 @@
|
|
|
5520
5652
|
}
|
|
5521
5653
|
while (true);
|
|
5522
5654
|
};
|
|
5523
|
-
protoOf(FlatInvocations$seq$slambda).
|
|
5524
|
-
var i = new FlatInvocations$seq$slambda(this.
|
|
5525
|
-
i.
|
|
5655
|
+
protoOf(FlatInvocations$seq$slambda).g1p = function ($this$sequence, completion) {
|
|
5656
|
+
var i = new FlatInvocations$seq$slambda(this.c1p_1, this.d1p_1, completion);
|
|
5657
|
+
i.e1p_1 = $this$sequence;
|
|
5526
5658
|
return i;
|
|
5527
5659
|
};
|
|
5528
5660
|
function FlatInvocations$seq$slambda_0($root, this$0, resultContinuation) {
|
|
5529
5661
|
var i = new FlatInvocations$seq$slambda($root, this$0, resultContinuation);
|
|
5530
5662
|
var l = function ($this$sequence, $completion) {
|
|
5531
|
-
return i.
|
|
5663
|
+
return i.f1p($this$sequence, $completion);
|
|
5532
5664
|
};
|
|
5533
5665
|
l.$arity = 1;
|
|
5534
5666
|
return l;
|
|
5535
5667
|
}
|
|
5536
5668
|
function FlatInvocations$iterator$slambda(this$0, resultContinuation) {
|
|
5537
|
-
this.
|
|
5669
|
+
this.p1p_1 = this$0;
|
|
5538
5670
|
CoroutineImpl.call(this, resultContinuation);
|
|
5539
5671
|
}
|
|
5540
|
-
protoOf(FlatInvocations$iterator$slambda).
|
|
5541
|
-
var tmp = this.
|
|
5672
|
+
protoOf(FlatInvocations$iterator$slambda).f1p = function ($this$sequence, $completion) {
|
|
5673
|
+
var tmp = this.g1p($this$sequence, $completion);
|
|
5542
5674
|
tmp.u8_1 = Unit_instance;
|
|
5543
5675
|
tmp.v8_1 = null;
|
|
5544
5676
|
return tmp.a9();
|
|
5545
5677
|
};
|
|
5546
5678
|
protoOf(FlatInvocations$iterator$slambda).s9 = function (p1, $completion) {
|
|
5547
|
-
return this.
|
|
5679
|
+
return this.f1p(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
|
|
5548
5680
|
};
|
|
5549
5681
|
protoOf(FlatInvocations$iterator$slambda).a9 = function () {
|
|
5550
5682
|
var suspendResult = this.u8_1;
|
|
@@ -5554,14 +5686,14 @@
|
|
|
5554
5686
|
switch (tmp) {
|
|
5555
5687
|
case 0:
|
|
5556
5688
|
this.t8_1 = 2;
|
|
5557
|
-
var _iterator__ex2g4s = this.
|
|
5689
|
+
var _iterator__ex2g4s = this.p1p_1.r1d_1.r();
|
|
5558
5690
|
while (_iterator__ex2g4s.s()) {
|
|
5559
5691
|
var element = _iterator__ex2g4s.t();
|
|
5560
|
-
CommandLineParser_instance.
|
|
5692
|
+
CommandLineParser_instance.f1o(element);
|
|
5561
5693
|
}
|
|
5562
5694
|
|
|
5563
5695
|
this.s8_1 = 1;
|
|
5564
|
-
suspendResult = this.
|
|
5696
|
+
suspendResult = this.q1p_1.we(onEach(this.p1p_1.r1d_1, FlatInvocations$iterator$slambda$lambda), this);
|
|
5565
5697
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
5566
5698
|
return suspendResult;
|
|
5567
5699
|
}
|
|
@@ -5583,15 +5715,15 @@
|
|
|
5583
5715
|
}
|
|
5584
5716
|
while (true);
|
|
5585
5717
|
};
|
|
5586
|
-
protoOf(FlatInvocations$iterator$slambda).
|
|
5587
|
-
var i = new FlatInvocations$iterator$slambda(this.
|
|
5588
|
-
i.
|
|
5718
|
+
protoOf(FlatInvocations$iterator$slambda).g1p = function ($this$sequence, completion) {
|
|
5719
|
+
var i = new FlatInvocations$iterator$slambda(this.p1p_1, completion);
|
|
5720
|
+
i.q1p_1 = $this$sequence;
|
|
5589
5721
|
return i;
|
|
5590
5722
|
};
|
|
5591
5723
|
function FlatInvocations$iterator$slambda_0(this$0, resultContinuation) {
|
|
5592
5724
|
var i = new FlatInvocations$iterator$slambda(this$0, resultContinuation);
|
|
5593
5725
|
var l = function ($this$sequence, $completion) {
|
|
5594
|
-
return i.
|
|
5726
|
+
return i.f1p($this$sequence, $completion);
|
|
5595
5727
|
};
|
|
5596
5728
|
l.$arity = 1;
|
|
5597
5729
|
return l;
|
|
@@ -5632,21 +5764,21 @@
|
|
|
5632
5764
|
function parseArgv(rootCommand, originalArgv) {
|
|
5633
5765
|
rootCommand.h1b();
|
|
5634
5766
|
var result = parseCommandArgv(rootCommand, originalArgv, 0);
|
|
5635
|
-
return new CommandLineParseResult(result.
|
|
5767
|
+
return new CommandLineParseResult(result.r1p_1, originalArgv, result.t1p_1);
|
|
5636
5768
|
}
|
|
5637
5769
|
function CommandArgvParseResult(invocation, nextCommand, argv, i) {
|
|
5638
|
-
this.
|
|
5639
|
-
this.
|
|
5640
|
-
this.
|
|
5641
|
-
this.
|
|
5770
|
+
this.r1p_1 = invocation;
|
|
5771
|
+
this.s1p_1 = nextCommand;
|
|
5772
|
+
this.t1p_1 = argv;
|
|
5773
|
+
this.u1p_1 = i;
|
|
5642
5774
|
}
|
|
5643
5775
|
function parseCommandArgv(command, argv, i) {
|
|
5644
|
-
var rootResult = (new CommandParser(command, argv, i)).
|
|
5776
|
+
var rootResult = (new CommandParser(command, argv, i)).q1q();
|
|
5645
5777
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
5646
5778
|
var subcommands = ArrayList_init_$Create$();
|
|
5647
|
-
var nextCommand = rootResult.
|
|
5648
|
-
var nextArgv = rootResult.
|
|
5649
|
-
var nextI = rootResult.
|
|
5779
|
+
var nextCommand = rootResult.s1q_1;
|
|
5780
|
+
var nextArgv = rootResult.v1q_1;
|
|
5781
|
+
var nextI = rootResult.t1q_1;
|
|
5650
5782
|
$l$loop: while (true) {
|
|
5651
5783
|
var tmp;
|
|
5652
5784
|
if (!(nextCommand == null)) {
|
|
@@ -5659,38 +5791,38 @@
|
|
|
5659
5791
|
break $l$loop;
|
|
5660
5792
|
}
|
|
5661
5793
|
var result = parseCommandArgv(nextCommand, nextArgv, nextI);
|
|
5662
|
-
nextCommand = result.
|
|
5663
|
-
nextArgv = result.
|
|
5664
|
-
nextI = result.
|
|
5794
|
+
nextCommand = result.s1p_1;
|
|
5795
|
+
nextArgv = result.t1p_1;
|
|
5796
|
+
nextI = result.u1p_1;
|
|
5665
5797
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
5666
|
-
var element = result.
|
|
5798
|
+
var element = result.r1p_1;
|
|
5667
5799
|
subcommands.v(element);
|
|
5668
5800
|
}
|
|
5669
|
-
return new CommandArgvParseResult(rootResult.
|
|
5801
|
+
return new CommandArgvParseResult(rootResult.y1q(subcommands), nextCommand, nextArgv, nextI);
|
|
5670
5802
|
}
|
|
5671
5803
|
function CommandParseResult(command, nextCommand, i, errors, expandedArgv, optInvocations, argInvocations) {
|
|
5672
|
-
this.
|
|
5673
|
-
this.
|
|
5674
|
-
this.
|
|
5675
|
-
this.
|
|
5676
|
-
this.
|
|
5677
|
-
this.
|
|
5678
|
-
this.
|
|
5804
|
+
this.r1q_1 = command;
|
|
5805
|
+
this.s1q_1 = nextCommand;
|
|
5806
|
+
this.t1q_1 = i;
|
|
5807
|
+
this.u1q_1 = errors;
|
|
5808
|
+
this.v1q_1 = expandedArgv;
|
|
5809
|
+
this.w1q_1 = optInvocations;
|
|
5810
|
+
this.x1q_1 = argInvocations;
|
|
5679
5811
|
}
|
|
5680
|
-
protoOf(CommandParseResult).
|
|
5681
|
-
return new CommandInvocation(this.
|
|
5812
|
+
protoOf(CommandParseResult).y1q = function (subcommands) {
|
|
5813
|
+
return new CommandInvocation(this.r1q_1, this.w1q_1, this.x1q_1, subcommands, this.u1q_1);
|
|
5682
5814
|
};
|
|
5683
5815
|
protoOf(CommandParseResult).toString = function () {
|
|
5684
|
-
return 'CommandParseResult(command=' + toString_0(this.
|
|
5816
|
+
return 'CommandParseResult(command=' + toString_0(this.r1q_1) + ', nextCommand=' + toString_1(this.s1q_1) + ', i=' + this.t1q_1 + ', errors=' + toString_0(this.u1q_1) + ', expandedArgv=' + toString_0(this.v1q_1) + ', optInvocations=' + toString_0(this.w1q_1) + ', argInvocations=' + toString_0(this.x1q_1) + ')';
|
|
5685
5817
|
};
|
|
5686
5818
|
protoOf(CommandParseResult).hashCode = function () {
|
|
5687
|
-
var result = hashCode(this.
|
|
5688
|
-
result = imul(result, 31) + (this.
|
|
5689
|
-
result = imul(result, 31) + this.
|
|
5690
|
-
result = imul(result, 31) + hashCode(this.t1q_1) | 0;
|
|
5819
|
+
var result = hashCode(this.r1q_1);
|
|
5820
|
+
result = imul(result, 31) + (this.s1q_1 == null ? 0 : hashCode(this.s1q_1)) | 0;
|
|
5821
|
+
result = imul(result, 31) + this.t1q_1 | 0;
|
|
5691
5822
|
result = imul(result, 31) + hashCode(this.u1q_1) | 0;
|
|
5692
5823
|
result = imul(result, 31) + hashCode(this.v1q_1) | 0;
|
|
5693
5824
|
result = imul(result, 31) + hashCode(this.w1q_1) | 0;
|
|
5825
|
+
result = imul(result, 31) + hashCode(this.x1q_1) | 0;
|
|
5694
5826
|
return result;
|
|
5695
5827
|
};
|
|
5696
5828
|
protoOf(CommandParseResult).equals = function (other) {
|
|
@@ -5698,13 +5830,11 @@
|
|
|
5698
5830
|
return true;
|
|
5699
5831
|
if (!(other instanceof CommandParseResult))
|
|
5700
5832
|
return false;
|
|
5701
|
-
if (!equals(this.q1q_1, other.q1q_1))
|
|
5702
|
-
return false;
|
|
5703
5833
|
if (!equals(this.r1q_1, other.r1q_1))
|
|
5704
5834
|
return false;
|
|
5705
|
-
if (!(this.s1q_1
|
|
5835
|
+
if (!equals(this.s1q_1, other.s1q_1))
|
|
5706
5836
|
return false;
|
|
5707
|
-
if (!
|
|
5837
|
+
if (!(this.t1q_1 === other.t1q_1))
|
|
5708
5838
|
return false;
|
|
5709
5839
|
if (!equals(this.u1q_1, other.u1q_1))
|
|
5710
5840
|
return false;
|
|
@@ -5712,66 +5842,68 @@
|
|
|
5712
5842
|
return false;
|
|
5713
5843
|
if (!equals(this.w1q_1, other.w1q_1))
|
|
5714
5844
|
return false;
|
|
5845
|
+
if (!equals(this.x1q_1, other.x1q_1))
|
|
5846
|
+
return false;
|
|
5715
5847
|
return true;
|
|
5716
5848
|
};
|
|
5717
5849
|
function _get_canParseSubcommands__hq4fdg($this) {
|
|
5718
|
-
return $this.
|
|
5850
|
+
return $this.g1q_1.d1() >= $this.n1q_1;
|
|
5719
5851
|
}
|
|
5720
5852
|
function consumeTokens($this) {
|
|
5721
|
-
$l$loop: while ($this.
|
|
5722
|
-
var tok = $this.
|
|
5723
|
-
var normTok = $this.
|
|
5853
|
+
$l$loop: while ($this.l1q_1 <= get_lastIndex_0($this.w1p_1)) {
|
|
5854
|
+
var tok = $this.w1p_1.c1($this.l1q_1);
|
|
5855
|
+
var normTok = $this.x1p_1.q19_1($this.x1p_1, tok);
|
|
5724
5856
|
var prefix = splitOptionPrefix(tok).da_1;
|
|
5725
5857
|
var tmp;
|
|
5726
|
-
if ($this.
|
|
5858
|
+
if ($this.l1q_1 >= $this.m1q_1) {
|
|
5727
5859
|
// Inline function 'kotlin.collections.contains' call
|
|
5728
5860
|
// Inline function 'kotlin.collections.containsKey' call
|
|
5729
|
-
var this_0 = $this.
|
|
5861
|
+
var this_0 = $this.y1p_1;
|
|
5730
5862
|
tmp = (isInterface(this_0, KtMap) ? this_0 : THROW_CCE()).k2(tok);
|
|
5731
5863
|
} else {
|
|
5732
5864
|
tmp = false;
|
|
5733
5865
|
}
|
|
5734
5866
|
if (tmp) {
|
|
5735
|
-
insertTokens($this, getValue($this.
|
|
5867
|
+
insertTokens($this, getValue($this.y1p_1, tok));
|
|
5736
5868
|
} else {
|
|
5737
5869
|
var tmp_0;
|
|
5738
|
-
if ($this.
|
|
5870
|
+
if ($this.p1q_1 && startsWith(tok, '@')) {
|
|
5739
5871
|
// Inline function 'kotlin.collections.contains' call
|
|
5740
5872
|
// Inline function 'kotlin.collections.containsKey' call
|
|
5741
|
-
var this_1 = $this.
|
|
5873
|
+
var this_1 = $this.c1q_1;
|
|
5742
5874
|
tmp_0 = !(isInterface(this_1, KtMap) ? this_1 : THROW_CCE()).k2(normTok);
|
|
5743
5875
|
} else {
|
|
5744
5876
|
tmp_0 = false;
|
|
5745
5877
|
}
|
|
5746
5878
|
if (tmp_0) {
|
|
5747
5879
|
if (startsWith(tok, '@@')) {
|
|
5748
|
-
var tmp0 = $this.
|
|
5880
|
+
var tmp0 = $this.g1q_1;
|
|
5749
5881
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
5750
5882
|
var element = drop(tok, 1);
|
|
5751
5883
|
tmp0.v(element);
|
|
5752
|
-
$this.
|
|
5884
|
+
$this.l1q_1 = $this.l1q_1 + 1 | 0;
|
|
5753
5885
|
} else {
|
|
5754
|
-
insertTokens($this, loadArgFile(drop(normTok, 1), $this.
|
|
5886
|
+
insertTokens($this, loadArgFile(drop(normTok, 1), $this.x1p_1));
|
|
5755
5887
|
}
|
|
5756
5888
|
} else {
|
|
5757
|
-
if ($this.
|
|
5758
|
-
$this.
|
|
5759
|
-
$this.n1q_1 = false;
|
|
5889
|
+
if ($this.o1q_1 && tok === '--') {
|
|
5890
|
+
$this.l1q_1 = $this.l1q_1 + 1 | 0;
|
|
5760
5891
|
$this.o1q_1 = false;
|
|
5892
|
+
$this.p1q_1 = false;
|
|
5761
5893
|
} else {
|
|
5762
|
-
if ($this.
|
|
5894
|
+
if ($this.o1q_1 && (prefix.length > 1 && $this.e1q_1.u1(prefix) || $this.f1q_1.u1(normTok) || isLongOptionWithEquals($this, prefix, tok) || !$this.x1p_1.l19_1)) {
|
|
5763
5895
|
consumeOptionParse($this, parseLongOpt($this, tok));
|
|
5764
5896
|
} else {
|
|
5765
5897
|
var tmp_1;
|
|
5766
5898
|
var tmp_2;
|
|
5767
|
-
if ($this.
|
|
5899
|
+
if ($this.o1q_1 && tok.length >= 2) {
|
|
5768
5900
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
5769
5901
|
tmp_2 = charSequenceLength(prefix) > 0;
|
|
5770
5902
|
} else {
|
|
5771
5903
|
tmp_2 = false;
|
|
5772
5904
|
}
|
|
5773
5905
|
if (tmp_2) {
|
|
5774
|
-
tmp_1 = $this.
|
|
5906
|
+
tmp_1 = $this.e1q_1.u1(prefix);
|
|
5775
5907
|
} else {
|
|
5776
5908
|
tmp_1 = false;
|
|
5777
5909
|
}
|
|
@@ -5782,21 +5914,21 @@
|
|
|
5782
5914
|
if (_get_canParseSubcommands__hq4fdg($this)) {
|
|
5783
5915
|
// Inline function 'kotlin.collections.contains' call
|
|
5784
5916
|
// Inline function 'kotlin.collections.containsKey' call
|
|
5785
|
-
var this_2 = $this.
|
|
5917
|
+
var this_2 = $this.b1q_1;
|
|
5786
5918
|
tmp_3 = (isInterface(this_2, KtMap) ? this_2 : THROW_CCE()).k2(normTok);
|
|
5787
5919
|
} else {
|
|
5788
5920
|
tmp_3 = false;
|
|
5789
5921
|
}
|
|
5790
5922
|
if (tmp_3) {
|
|
5791
|
-
$this.
|
|
5792
|
-
$this.
|
|
5923
|
+
$this.h1q_1 = getValue($this.b1q_1, normTok);
|
|
5924
|
+
$this.l1q_1 = $this.l1q_1 + 1 | 0;
|
|
5793
5925
|
break $l$loop;
|
|
5794
5926
|
} else {
|
|
5795
|
-
if (!$this.
|
|
5796
|
-
$this.
|
|
5927
|
+
if (!$this.x1p_1.k19_1)
|
|
5928
|
+
$this.o1q_1 = false;
|
|
5797
5929
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
5798
|
-
$this.
|
|
5799
|
-
$this.
|
|
5930
|
+
$this.g1q_1.v(tok);
|
|
5931
|
+
$this.l1q_1 = $this.l1q_1 + 1 | 0;
|
|
5800
5932
|
}
|
|
5801
5933
|
}
|
|
5802
5934
|
}
|
|
@@ -5807,8 +5939,8 @@
|
|
|
5807
5939
|
}
|
|
5808
5940
|
function printHelpOnEmptyArgsIfNecessary($this) {
|
|
5809
5941
|
var tmp;
|
|
5810
|
-
if ($this.
|
|
5811
|
-
var tmp0 = $this.
|
|
5942
|
+
if ($this.l1q_1 > get_lastIndex_0($this.w1p_1) && $this.v1p_1.x1a()) {
|
|
5943
|
+
var tmp0 = $this.v1p_1.z18_1;
|
|
5812
5944
|
var tmp$ret$0;
|
|
5813
5945
|
$l$block_0: {
|
|
5814
5946
|
// Inline function 'kotlin.collections.none' call
|
|
@@ -5825,7 +5957,7 @@
|
|
|
5825
5957
|
var _iterator__ex2g4s = tmp0.r();
|
|
5826
5958
|
while (_iterator__ex2g4s.s()) {
|
|
5827
5959
|
var element = _iterator__ex2g4s.t();
|
|
5828
|
-
if (hasEnvvarOrSourcedValue(element, $this.
|
|
5960
|
+
if (hasEnvvarOrSourcedValue(element, $this.x1p_1, emptyList())) {
|
|
5829
5961
|
tmp$ret$0 = false;
|
|
5830
5962
|
break $l$block_0;
|
|
5831
5963
|
}
|
|
@@ -5837,16 +5969,16 @@
|
|
|
5837
5969
|
tmp = false;
|
|
5838
5970
|
}
|
|
5839
5971
|
if (tmp) {
|
|
5840
|
-
var tmp0_0 = $this.
|
|
5972
|
+
var tmp0_0 = $this.k1q_1;
|
|
5841
5973
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
5842
|
-
var element_0 = new PrintHelpMessage($this.
|
|
5974
|
+
var element_0 = new PrintHelpMessage($this.x1p_1, true);
|
|
5843
5975
|
tmp0_0.v(element_0);
|
|
5844
5976
|
return true;
|
|
5845
5977
|
}
|
|
5846
5978
|
return false;
|
|
5847
5979
|
}
|
|
5848
5980
|
function splitOptionPrefixes($this) {
|
|
5849
|
-
var _iterator__ex2g4s = $this.
|
|
5981
|
+
var _iterator__ex2g4s = $this.v1p_1.z18_1.r();
|
|
5850
5982
|
while (_iterator__ex2g4s.s()) {
|
|
5851
5983
|
var option = _iterator__ex2g4s.t();
|
|
5852
5984
|
var tmp;
|
|
@@ -5871,28 +6003,28 @@
|
|
|
5871
6003
|
while (_iterator__ex2g4s_0.s()) {
|
|
5872
6004
|
var name = _iterator__ex2g4s_0.t();
|
|
5873
6005
|
// Inline function 'kotlin.collections.set' call
|
|
5874
|
-
$this.
|
|
6006
|
+
$this.c1q_1.p2(name, option);
|
|
5875
6007
|
if (name.length > 2) {
|
|
5876
6008
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
5877
|
-
$this.
|
|
6009
|
+
$this.f1q_1.v(name);
|
|
5878
6010
|
}
|
|
5879
|
-
var tmp0 = $this.
|
|
6011
|
+
var tmp0 = $this.e1q_1;
|
|
5880
6012
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
5881
6013
|
var element = splitOptionPrefix(name).da_1;
|
|
5882
6014
|
tmp0.v(element);
|
|
5883
6015
|
}
|
|
5884
6016
|
}
|
|
5885
|
-
$this.
|
|
6017
|
+
$this.e1q_1.w2('');
|
|
5886
6018
|
}
|
|
5887
6019
|
function makeResult($this) {
|
|
5888
6020
|
// Inline function 'kotlin.collections.groupBy' call
|
|
5889
|
-
var tmp0 = $this.
|
|
6021
|
+
var tmp0 = $this.i1q_1;
|
|
5890
6022
|
// Inline function 'kotlin.collections.groupByTo' call
|
|
5891
6023
|
var destination = LinkedHashMap_init_$Create$();
|
|
5892
6024
|
var _iterator__ex2g4s = tmp0.r();
|
|
5893
6025
|
while (_iterator__ex2g4s.s()) {
|
|
5894
6026
|
var element = _iterator__ex2g4s.t();
|
|
5895
|
-
var key = element.
|
|
6027
|
+
var key = element.z1q_1;
|
|
5896
6028
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
5897
6029
|
var value = destination.m2(key);
|
|
5898
6030
|
var tmp;
|
|
@@ -5904,29 +6036,29 @@
|
|
|
5904
6036
|
tmp = value;
|
|
5905
6037
|
}
|
|
5906
6038
|
var list = tmp;
|
|
5907
|
-
var tmp$ret$5 = element.
|
|
6039
|
+
var tmp$ret$5 = element.c1r();
|
|
5908
6040
|
list.v(tmp$ret$5);
|
|
5909
6041
|
}
|
|
5910
6042
|
var opts = destination;
|
|
5911
|
-
var _iterator__ex2g4s_0 = $this.
|
|
6043
|
+
var _iterator__ex2g4s_0 = $this.k1q_1.r();
|
|
5912
6044
|
while (_iterator__ex2g4s_0.s()) {
|
|
5913
6045
|
var e = _iterator__ex2g4s_0.t();
|
|
5914
6046
|
if (e instanceof UsageError) {
|
|
5915
6047
|
var tmp0_elvis_lhs = e.y8();
|
|
5916
|
-
e.i1e(tmp0_elvis_lhs == null ? $this.
|
|
6048
|
+
e.i1e(tmp0_elvis_lhs == null ? $this.x1p_1 : tmp0_elvis_lhs);
|
|
5917
6049
|
}
|
|
5918
|
-
$this.
|
|
6050
|
+
$this.x1p_1.b1a_1 = true;
|
|
5919
6051
|
}
|
|
5920
6052
|
// Inline function 'kotlin.takeIf' call
|
|
5921
|
-
var this_0 = $this.
|
|
6053
|
+
var this_0 = $this.h1q_1;
|
|
5922
6054
|
var tmp_0;
|
|
5923
|
-
if ($this.
|
|
6055
|
+
if ($this.k1q_1.p()) {
|
|
5924
6056
|
tmp_0 = this_0;
|
|
5925
6057
|
} else {
|
|
5926
6058
|
tmp_0 = null;
|
|
5927
6059
|
}
|
|
5928
6060
|
var nextCommand = tmp_0;
|
|
5929
|
-
return new CommandParseResult($this.
|
|
6061
|
+
return new CommandParseResult($this.v1p_1, nextCommand, $this.l1q_1, $this.k1q_1, $this.w1p_1, opts, $this.j1q_1);
|
|
5930
6062
|
}
|
|
5931
6063
|
function isLongOptionWithEquals($this, prefix, token) {
|
|
5932
6064
|
if (!contains_1(token, '='))
|
|
@@ -5936,37 +6068,37 @@
|
|
|
5936
6068
|
return false;
|
|
5937
6069
|
if (prefix.length > 1)
|
|
5938
6070
|
return true;
|
|
5939
|
-
if ($this.
|
|
6071
|
+
if ($this.f1q_1.u1($this.x1p_1.q19_1($this.x1p_1, substringBefore(token, '='))))
|
|
5940
6072
|
return true;
|
|
5941
|
-
var tmp0 = $this.
|
|
6073
|
+
var tmp0 = $this.c1q_1;
|
|
5942
6074
|
// Inline function 'kotlin.collections.contains' call
|
|
5943
6075
|
// Inline function 'kotlin.collections.containsKey' call
|
|
5944
|
-
var key = $this.
|
|
6076
|
+
var key = $this.x1p_1.q19_1($this.x1p_1, take(token, 2));
|
|
5945
6077
|
return !(isInterface(tmp0, KtMap) ? tmp0 : THROW_CCE()).k2(key);
|
|
5946
6078
|
}
|
|
5947
6079
|
function consumeOptionParse($this, result) {
|
|
5948
|
-
var tmp0 = $this.
|
|
6080
|
+
var tmp0 = $this.g1q_1;
|
|
5949
6081
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
5950
|
-
var elements = result.
|
|
6082
|
+
var elements = result.e1r_1;
|
|
5951
6083
|
addAll(tmp0, elements);
|
|
5952
|
-
var tmp0_0 = $this.
|
|
6084
|
+
var tmp0_0 = $this.i1q_1;
|
|
5953
6085
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
5954
|
-
var elements_0 = result.
|
|
6086
|
+
var elements_0 = result.f1r_1;
|
|
5955
6087
|
addAll(tmp0_0, elements_0);
|
|
5956
|
-
var tmp0_safe_receiver = result.
|
|
6088
|
+
var tmp0_safe_receiver = result.g1r_1;
|
|
5957
6089
|
if (tmp0_safe_receiver == null)
|
|
5958
6090
|
null;
|
|
5959
6091
|
else {
|
|
5960
6092
|
// Inline function 'kotlin.let' call
|
|
5961
6093
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
5962
|
-
$this.
|
|
5963
|
-
$this.
|
|
6094
|
+
$this.k1q_1.v(tmp0_safe_receiver);
|
|
6095
|
+
$this.x1p_1.b1a_1 = true;
|
|
5964
6096
|
}
|
|
5965
|
-
$this.
|
|
6097
|
+
$this.l1q_1 = $this.l1q_1 + result.d1r_1 | 0;
|
|
5966
6098
|
}
|
|
5967
6099
|
function insertTokens($this, newTokens) {
|
|
5968
|
-
$this.
|
|
5969
|
-
$this.
|
|
6100
|
+
$this.w1p_1 = flatten(listOf([take_0($this.w1p_1, $this.l1q_1), newTokens, drop_0($this.w1p_1, $this.l1q_1 + 1 | 0)]));
|
|
6101
|
+
$this.m1q_1 = $this.l1q_1 + newTokens.d1() | 0;
|
|
5970
6102
|
}
|
|
5971
6103
|
function parseLongOpt($this, tok) {
|
|
5972
6104
|
var equalsIndex = indexOf(tok, _Char___init__impl__6a9atx(61));
|
|
@@ -5979,17 +6111,17 @@
|
|
|
5979
6111
|
var _destruct__k2r9zo = tmp;
|
|
5980
6112
|
var name = _destruct__k2r9zo.fa();
|
|
5981
6113
|
var attachedValue = _destruct__k2r9zo.ga();
|
|
5982
|
-
name = $this.
|
|
5983
|
-
var tmp0_elvis_lhs = $this.
|
|
6114
|
+
name = $this.x1p_1.q19_1($this.x1p_1, name);
|
|
6115
|
+
var tmp0_elvis_lhs = $this.c1q_1.m2(name);
|
|
5984
6116
|
var tmp_0;
|
|
5985
6117
|
if (tmp0_elvis_lhs == null) {
|
|
5986
6118
|
var tmp_1;
|
|
5987
|
-
if ($this.
|
|
6119
|
+
if ($this.v1p_1.b1b()) {
|
|
5988
6120
|
return new OptParseResult(1, listOf_0(tok));
|
|
5989
6121
|
} else {
|
|
5990
6122
|
var tmp_2 = name;
|
|
5991
6123
|
// Inline function 'kotlin.collections.filterNot' call
|
|
5992
|
-
var tmp0 = $this.
|
|
6124
|
+
var tmp0 = $this.c1q_1;
|
|
5993
6125
|
// Inline function 'kotlin.collections.filterNotTo' call
|
|
5994
6126
|
var destination = LinkedHashMap_init_$Create$();
|
|
5995
6127
|
// Inline function 'kotlin.collections.iterator' call
|
|
@@ -6000,7 +6132,7 @@
|
|
|
6000
6132
|
destination.p2(element.l1(), element.m1());
|
|
6001
6133
|
}
|
|
6002
6134
|
}
|
|
6003
|
-
var possibilities = $this.
|
|
6135
|
+
var possibilities = $this.x1p_1.u19_1(tmp_2, toList_0(destination.n2()));
|
|
6004
6136
|
return new OptParseResult(1, VOID, VOID, createNoSuchOption($this, name, possibilities));
|
|
6005
6137
|
}
|
|
6006
6138
|
} else {
|
|
@@ -6012,7 +6144,7 @@
|
|
|
6012
6144
|
function parseShortOpt($this, tok) {
|
|
6013
6145
|
var prefix = toString(charCodeAt(tok, 0));
|
|
6014
6146
|
var tmp;
|
|
6015
|
-
if (!($this.
|
|
6147
|
+
if (!($this.d1q_1 == null)) {
|
|
6016
6148
|
var tmp0 = drop(tok, 1);
|
|
6017
6149
|
var tmp$ret$0;
|
|
6018
6150
|
$l$block: {
|
|
@@ -6033,7 +6165,7 @@
|
|
|
6033
6165
|
tmp = false;
|
|
6034
6166
|
}
|
|
6035
6167
|
if (tmp) {
|
|
6036
|
-
return OptParseResult_init_$Create$_0(1, $this.
|
|
6168
|
+
return OptParseResult_init_$Create$_0(1, $this.d1q_1, '', listOf_0(drop(tok, 1)));
|
|
6037
6169
|
}
|
|
6038
6170
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
6039
6171
|
var invocations = ArrayList_init_$Create$();
|
|
@@ -6045,18 +6177,18 @@
|
|
|
6045
6177
|
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
6046
6178
|
if (i === 0)
|
|
6047
6179
|
continue $l$loop;
|
|
6048
|
-
var name = $this.
|
|
6049
|
-
var tmp0_elvis_lhs = $this.
|
|
6180
|
+
var name = $this.x1p_1.q19_1($this.x1p_1, prefix + toString(opt));
|
|
6181
|
+
var tmp0_elvis_lhs = $this.c1q_1.m2(name);
|
|
6050
6182
|
var tmp_0;
|
|
6051
6183
|
if (tmp0_elvis_lhs == null) {
|
|
6052
6184
|
var tmp_1;
|
|
6053
|
-
if ($this.
|
|
6185
|
+
if ($this.v1p_1.b1b()) {
|
|
6054
6186
|
return new OptParseResult(1, listOf_0(tok));
|
|
6055
6187
|
} else {
|
|
6056
6188
|
var tmp_2;
|
|
6057
6189
|
var tmp_3;
|
|
6058
6190
|
if (prefix === '-') {
|
|
6059
|
-
var tmp0_0 = $this.
|
|
6191
|
+
var tmp0_0 = $this.c1q_1;
|
|
6060
6192
|
// Inline function 'kotlin.collections.contains' call
|
|
6061
6193
|
// Inline function 'kotlin.collections.containsKey' call
|
|
6062
6194
|
var key = '-' + tok;
|
|
@@ -6079,7 +6211,7 @@
|
|
|
6079
6211
|
if (option.h1a().p1_1 > 0) {
|
|
6080
6212
|
var value = i < get_lastIndex(tok) ? drop(tok, i + 1 | 0) : null;
|
|
6081
6213
|
var result = parseOptValues($this, option, name, value);
|
|
6082
|
-
return result.
|
|
6214
|
+
return result.h1r(VOID, VOID, plus_0(invocations, result.f1r_1));
|
|
6083
6215
|
} else {
|
|
6084
6216
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
6085
6217
|
var element_0 = new OptInvocation(option, name, emptyList());
|
|
@@ -6091,7 +6223,7 @@
|
|
|
6091
6223
|
function createNoSuchOption($this, name, possibilities) {
|
|
6092
6224
|
if (possibilities.p()) {
|
|
6093
6225
|
// Inline function 'kotlin.collections.find' call
|
|
6094
|
-
var tmp0 = $this.
|
|
6226
|
+
var tmp0 = $this.b1q_1.o2();
|
|
6095
6227
|
var tmp$ret$1;
|
|
6096
6228
|
$l$block_1: {
|
|
6097
6229
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
@@ -6144,13 +6276,13 @@
|
|
|
6144
6276
|
} else if (!option.a1e()) {
|
|
6145
6277
|
return OptParseResult_init_$Create$_0(1, option, name, emptyList());
|
|
6146
6278
|
}
|
|
6147
|
-
var inductionVariable = $this.
|
|
6148
|
-
var last = get_lastIndex_0($this.
|
|
6279
|
+
var inductionVariable = $this.l1q_1 + 1 | 0;
|
|
6280
|
+
var last = get_lastIndex_0($this.w1p_1);
|
|
6149
6281
|
if (inductionVariable <= last)
|
|
6150
6282
|
$l$loop_0: do {
|
|
6151
6283
|
var j = inductionVariable;
|
|
6152
6284
|
inductionVariable = inductionVariable + 1 | 0;
|
|
6153
|
-
var tok = $this.
|
|
6285
|
+
var tok = $this.w1p_1.c1(j);
|
|
6154
6286
|
if (values.d1() >= option.h1a().p1_1)
|
|
6155
6287
|
break $l$loop_0;
|
|
6156
6288
|
var tmp;
|
|
@@ -6163,7 +6295,7 @@
|
|
|
6163
6295
|
} else {
|
|
6164
6296
|
// Inline function 'kotlin.collections.contains' call
|
|
6165
6297
|
// Inline function 'kotlin.collections.containsKey' call
|
|
6166
|
-
var this_0 = $this.
|
|
6298
|
+
var this_0 = $this.c1q_1;
|
|
6167
6299
|
tmp_2 = (isInterface(this_0, KtMap) ? this_0 : THROW_CCE()).k2(tok);
|
|
6168
6300
|
}
|
|
6169
6301
|
if (tmp_2) {
|
|
@@ -6171,14 +6303,14 @@
|
|
|
6171
6303
|
} else {
|
|
6172
6304
|
// Inline function 'kotlin.collections.contains' call
|
|
6173
6305
|
// Inline function 'kotlin.collections.containsKey' call
|
|
6174
|
-
var this_1 = $this.
|
|
6306
|
+
var this_1 = $this.b1q_1;
|
|
6175
6307
|
tmp_1 = (isInterface(this_1, KtMap) ? this_1 : THROW_CCE()).k2(tok);
|
|
6176
6308
|
}
|
|
6177
6309
|
if (tmp_1) {
|
|
6178
6310
|
tmp_0 = true;
|
|
6179
6311
|
} else {
|
|
6180
6312
|
var tmp_3;
|
|
6181
|
-
if (!$this.
|
|
6313
|
+
if (!$this.v1p_1.b1b()) {
|
|
6182
6314
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
6183
6315
|
var this_2 = splitOptionPrefix(tok).da_1;
|
|
6184
6316
|
tmp_3 = charSequenceLength(this_2) > 0;
|
|
@@ -6202,7 +6334,7 @@
|
|
|
6202
6334
|
}
|
|
6203
6335
|
function parseArguments($this) {
|
|
6204
6336
|
// Inline function 'kotlin.collections.takeWhile' call
|
|
6205
|
-
var this_0 = asReversed_0($this.
|
|
6337
|
+
var this_0 = asReversed_0($this.v1p_1.a19_1);
|
|
6206
6338
|
var list = ArrayList_init_$Create$();
|
|
6207
6339
|
var _iterator__ex2g4s = this_0.r();
|
|
6208
6340
|
$l$loop: while (_iterator__ex2g4s.s()) {
|
|
@@ -6221,25 +6353,25 @@
|
|
|
6221
6353
|
}
|
|
6222
6354
|
var endSize = sum;
|
|
6223
6355
|
var tokenI = 0;
|
|
6224
|
-
var _iterator__ex2g4s_1 = $this.
|
|
6356
|
+
var _iterator__ex2g4s_1 = $this.v1p_1.a19_1.r();
|
|
6225
6357
|
while (_iterator__ex2g4s_1.s()) {
|
|
6226
6358
|
var argument = _iterator__ex2g4s_1.t();
|
|
6227
|
-
var remaining = $this.
|
|
6359
|
+
var remaining = $this.g1q_1.d1() - tokenI | 0;
|
|
6228
6360
|
var tmp_0;
|
|
6229
6361
|
if (argument.h1a() <= 0) {
|
|
6230
|
-
var tmp0 = argument.
|
|
6362
|
+
var tmp0 = argument.k1l() ? 1 : 0;
|
|
6231
6363
|
// Inline function 'kotlin.comparisons.maxOf' call
|
|
6232
6364
|
var b = remaining - endSize | 0;
|
|
6233
6365
|
tmp_0 = Math.max(tmp0, b);
|
|
6234
|
-
} else if (argument.h1a() > 0 && !argument.
|
|
6366
|
+
} else if (argument.h1a() > 0 && !argument.k1l() && remaining === 0) {
|
|
6235
6367
|
tmp_0 = 0;
|
|
6236
6368
|
} else {
|
|
6237
6369
|
tmp_0 = argument.h1a();
|
|
6238
6370
|
}
|
|
6239
6371
|
var consumed = tmp_0;
|
|
6240
|
-
var toIndex = coerceAtMost(tokenI + consumed | 0, $this.
|
|
6241
|
-
var values = $this.
|
|
6242
|
-
var tmp0_0 = $this.
|
|
6372
|
+
var toIndex = coerceAtMost(tokenI + consumed | 0, $this.g1q_1.d1());
|
|
6373
|
+
var values = $this.g1q_1.i2(tokenI, toIndex);
|
|
6374
|
+
var tmp0_0 = $this.j1q_1;
|
|
6243
6375
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
6244
6376
|
var element_0 = new ArgumentInvocation(argument, values);
|
|
6245
6377
|
tmp0_0.v(element_0);
|
|
@@ -6248,39 +6380,39 @@
|
|
|
6248
6380
|
}
|
|
6249
6381
|
tokenI = tokenI + consumed | 0;
|
|
6250
6382
|
}
|
|
6251
|
-
handleExcessArgs($this, $this.
|
|
6383
|
+
handleExcessArgs($this, $this.g1q_1.d1() - tokenI | 0);
|
|
6252
6384
|
}
|
|
6253
6385
|
function handleExcessArgs($this, excessCount) {
|
|
6254
6386
|
if (excessCount !== 0) {
|
|
6255
6387
|
var tmp;
|
|
6256
6388
|
if (excessCount === 1) {
|
|
6257
6389
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
6258
|
-
tmp = !$this.
|
|
6390
|
+
tmp = !$this.a1q_1.p();
|
|
6259
6391
|
} else {
|
|
6260
6392
|
tmp = false;
|
|
6261
6393
|
}
|
|
6262
6394
|
if (tmp) {
|
|
6263
|
-
var actual = last($this.
|
|
6264
|
-
var possibilities = $this.
|
|
6265
|
-
var tmp0 = $this.
|
|
6395
|
+
var actual = last($this.g1q_1);
|
|
6396
|
+
var possibilities = $this.v1p_1.f19().u19_1(actual, toList_0($this.a1q_1.n2()));
|
|
6397
|
+
var tmp0 = $this.k1q_1;
|
|
6266
6398
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
6267
6399
|
var element = new NoSuchSubcommand(actual, possibilities);
|
|
6268
6400
|
tmp0.v(element);
|
|
6269
6401
|
} else {
|
|
6270
|
-
var tmp0_0 = $this.
|
|
6402
|
+
var tmp0_0 = $this.k1q_1;
|
|
6271
6403
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
6272
|
-
var element_0 = new NoSuchArgument(takeLast($this.
|
|
6404
|
+
var element_0 = new NoSuchArgument(takeLast($this.g1q_1, excessCount));
|
|
6273
6405
|
tmp0_0.v(element_0);
|
|
6274
6406
|
}
|
|
6275
6407
|
}
|
|
6276
6408
|
}
|
|
6277
6409
|
function CommandParser(command, argv, startingIndex) {
|
|
6278
|
-
this.
|
|
6279
|
-
this.
|
|
6280
|
-
this.
|
|
6281
|
-
this.
|
|
6410
|
+
this.v1p_1 = command;
|
|
6411
|
+
this.w1p_1 = argv;
|
|
6412
|
+
this.x1p_1 = this.v1p_1.f19();
|
|
6413
|
+
this.y1p_1 = this.v1p_1.j1a();
|
|
6282
6414
|
var tmp = this;
|
|
6283
|
-
var tmp0 = ancestors(this.
|
|
6415
|
+
var tmp0 = ancestors(this.x1p_1);
|
|
6284
6416
|
var tmp$ret$0;
|
|
6285
6417
|
$l$block: {
|
|
6286
6418
|
// Inline function 'kotlin.sequences.firstOrNull' call
|
|
@@ -6315,10 +6447,10 @@
|
|
|
6315
6447
|
tmp_0 = destination;
|
|
6316
6448
|
}
|
|
6317
6449
|
var tmp3_elvis_lhs = tmp_0;
|
|
6318
|
-
tmp.
|
|
6450
|
+
tmp.z1p_1 = tmp3_elvis_lhs == null ? emptyMap() : tmp3_elvis_lhs;
|
|
6319
6451
|
var tmp_1 = this;
|
|
6320
6452
|
// Inline function 'kotlin.collections.associateBy' call
|
|
6321
|
-
var this_0 = this.
|
|
6453
|
+
var this_0 = this.v1p_1.y18_1;
|
|
6322
6454
|
var capacity_0 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
6323
6455
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
6324
6456
|
var destination_0 = LinkedHashMap_init_$Create$_0(capacity_0);
|
|
@@ -6328,14 +6460,14 @@
|
|
|
6328
6460
|
var tmp$ret$8 = element_1.q18_1;
|
|
6329
6461
|
destination_0.p2(tmp$ret$8, element_1);
|
|
6330
6462
|
}
|
|
6331
|
-
tmp_1.
|
|
6332
|
-
this.
|
|
6463
|
+
tmp_1.a1q_1 = destination_0;
|
|
6464
|
+
this.b1q_1 = plus_3(this.z1p_1, this.a1q_1);
|
|
6333
6465
|
var tmp_2 = this;
|
|
6334
6466
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
6335
|
-
tmp_2.
|
|
6467
|
+
tmp_2.c1q_1 = LinkedHashMap_init_$Create$();
|
|
6336
6468
|
var tmp_3 = this;
|
|
6337
6469
|
// Inline function 'kotlin.collections.find' call
|
|
6338
|
-
var tmp0_0 = this.
|
|
6470
|
+
var tmp0_0 = this.v1p_1.z18_1;
|
|
6339
6471
|
var tmp$ret$11;
|
|
6340
6472
|
$l$block_0: {
|
|
6341
6473
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
@@ -6349,42 +6481,42 @@
|
|
|
6349
6481
|
}
|
|
6350
6482
|
tmp$ret$11 = null;
|
|
6351
6483
|
}
|
|
6352
|
-
tmp_3.
|
|
6484
|
+
tmp_3.d1q_1 = tmp$ret$11;
|
|
6353
6485
|
var tmp_4 = this;
|
|
6354
6486
|
// Inline function 'kotlin.collections.mutableSetOf' call
|
|
6355
|
-
tmp_4.
|
|
6487
|
+
tmp_4.e1q_1 = LinkedHashSet_init_$Create$();
|
|
6356
6488
|
var tmp_5 = this;
|
|
6357
6489
|
// Inline function 'kotlin.collections.mutableSetOf' call
|
|
6358
|
-
tmp_5.
|
|
6490
|
+
tmp_5.f1q_1 = LinkedHashSet_init_$Create$();
|
|
6359
6491
|
var tmp_6 = this;
|
|
6360
6492
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
6361
|
-
tmp_6.
|
|
6362
|
-
this.
|
|
6493
|
+
tmp_6.g1q_1 = ArrayList_init_$Create$();
|
|
6494
|
+
this.h1q_1 = null;
|
|
6363
6495
|
var tmp_7 = this;
|
|
6364
6496
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
6365
|
-
tmp_7.
|
|
6497
|
+
tmp_7.i1q_1 = ArrayList_init_$Create$();
|
|
6366
6498
|
var tmp_8 = this;
|
|
6367
6499
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
6368
|
-
tmp_8.
|
|
6500
|
+
tmp_8.j1q_1 = ArrayList_init_$Create$();
|
|
6369
6501
|
var tmp_9 = this;
|
|
6370
6502
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
6371
|
-
tmp_9.
|
|
6372
|
-
this.
|
|
6373
|
-
this.
|
|
6503
|
+
tmp_9.k1q_1 = ArrayList_init_$Create$();
|
|
6504
|
+
this.l1q_1 = startingIndex;
|
|
6505
|
+
this.m1q_1 = this.l1q_1;
|
|
6374
6506
|
var tmp_10 = this;
|
|
6375
6507
|
// Inline function 'kotlin.collections.sumOf' call
|
|
6376
6508
|
var sum = 0;
|
|
6377
|
-
var _iterator__ex2g4s_3 = this.
|
|
6509
|
+
var _iterator__ex2g4s_3 = this.v1p_1.a19_1.r();
|
|
6378
6510
|
while (_iterator__ex2g4s_3.s()) {
|
|
6379
6511
|
var element_3 = _iterator__ex2g4s_3.t();
|
|
6380
6512
|
var tmp_11 = sum;
|
|
6381
|
-
sum = tmp_11 + (element_3.
|
|
6513
|
+
sum = tmp_11 + (element_3.k1l() ? coerceAtLeast(element_3.h1a(), 0) : 0) | 0;
|
|
6382
6514
|
}
|
|
6383
|
-
tmp_10.
|
|
6384
|
-
this.
|
|
6385
|
-
this.
|
|
6515
|
+
tmp_10.n1q_1 = sum;
|
|
6516
|
+
this.o1q_1 = true;
|
|
6517
|
+
this.p1q_1 = this.x1p_1.t1c();
|
|
6386
6518
|
}
|
|
6387
|
-
protoOf(CommandParser).
|
|
6519
|
+
protoOf(CommandParser).q1q = function () {
|
|
6388
6520
|
splitOptionPrefixes(this);
|
|
6389
6521
|
if (printHelpOnEmptyArgsIfNecessary(this))
|
|
6390
6522
|
return makeResult(this);
|
|
@@ -6393,20 +6525,20 @@
|
|
|
6393
6525
|
return makeResult(this);
|
|
6394
6526
|
};
|
|
6395
6527
|
function OptInvocation(opt, name, values) {
|
|
6396
|
-
this.
|
|
6397
|
-
this.
|
|
6398
|
-
this.
|
|
6528
|
+
this.z1q_1 = opt;
|
|
6529
|
+
this.a1r_1 = name;
|
|
6530
|
+
this.b1r_1 = values;
|
|
6399
6531
|
}
|
|
6400
|
-
protoOf(OptInvocation).
|
|
6401
|
-
return new OptionInvocation(this.
|
|
6532
|
+
protoOf(OptInvocation).c1r = function () {
|
|
6533
|
+
return new OptionInvocation(this.a1r_1, this.b1r_1);
|
|
6402
6534
|
};
|
|
6403
6535
|
protoOf(OptInvocation).toString = function () {
|
|
6404
|
-
return 'OptInvocation(opt=' + toString_0(this.
|
|
6536
|
+
return 'OptInvocation(opt=' + toString_0(this.z1q_1) + ', name=' + this.a1r_1 + ', values=' + toString_0(this.b1r_1) + ')';
|
|
6405
6537
|
};
|
|
6406
6538
|
protoOf(OptInvocation).hashCode = function () {
|
|
6407
|
-
var result = hashCode(this.
|
|
6408
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
6409
|
-
result = imul(result, 31) + hashCode(this.
|
|
6539
|
+
var result = hashCode(this.z1q_1);
|
|
6540
|
+
result = imul(result, 31) + getStringHashCode(this.a1r_1) | 0;
|
|
6541
|
+
result = imul(result, 31) + hashCode(this.b1r_1) | 0;
|
|
6410
6542
|
return result;
|
|
6411
6543
|
};
|
|
6412
6544
|
protoOf(OptInvocation).equals = function (other) {
|
|
@@ -6414,11 +6546,11 @@
|
|
|
6414
6546
|
return true;
|
|
6415
6547
|
if (!(other instanceof OptInvocation))
|
|
6416
6548
|
return false;
|
|
6417
|
-
if (!equals(this.
|
|
6549
|
+
if (!equals(this.z1q_1, other.z1q_1))
|
|
6418
6550
|
return false;
|
|
6419
|
-
if (!(this.
|
|
6551
|
+
if (!(this.a1r_1 === other.a1r_1))
|
|
6420
6552
|
return false;
|
|
6421
|
-
if (!equals(this.
|
|
6553
|
+
if (!equals(this.b1r_1, other.b1r_1))
|
|
6422
6554
|
return false;
|
|
6423
6555
|
return true;
|
|
6424
6556
|
};
|
|
@@ -6443,29 +6575,29 @@
|
|
|
6443
6575
|
unknown = unknown === VOID ? emptyList() : unknown;
|
|
6444
6576
|
known = known === VOID ? emptyList() : known;
|
|
6445
6577
|
err = err === VOID ? null : err;
|
|
6446
|
-
this.
|
|
6447
|
-
this.
|
|
6448
|
-
this.
|
|
6449
|
-
this.
|
|
6578
|
+
this.d1r_1 = consumed;
|
|
6579
|
+
this.e1r_1 = unknown;
|
|
6580
|
+
this.f1r_1 = known;
|
|
6581
|
+
this.g1r_1 = err;
|
|
6450
6582
|
}
|
|
6451
|
-
protoOf(OptParseResult).
|
|
6583
|
+
protoOf(OptParseResult).i1r = function (consumed, unknown, known, err) {
|
|
6452
6584
|
return new OptParseResult(consumed, unknown, known, err);
|
|
6453
6585
|
};
|
|
6454
|
-
protoOf(OptParseResult).
|
|
6455
|
-
consumed = consumed === VOID ? this.
|
|
6456
|
-
unknown = unknown === VOID ? this.
|
|
6457
|
-
known = known === VOID ? this.
|
|
6458
|
-
err = err === VOID ? this.
|
|
6459
|
-
return $super === VOID ? this.
|
|
6586
|
+
protoOf(OptParseResult).h1r = function (consumed, unknown, known, err, $super) {
|
|
6587
|
+
consumed = consumed === VOID ? this.d1r_1 : consumed;
|
|
6588
|
+
unknown = unknown === VOID ? this.e1r_1 : unknown;
|
|
6589
|
+
known = known === VOID ? this.f1r_1 : known;
|
|
6590
|
+
err = err === VOID ? this.g1r_1 : err;
|
|
6591
|
+
return $super === VOID ? this.i1r(consumed, unknown, known, err) : $super.i1r.call(this, consumed, unknown, known, err);
|
|
6460
6592
|
};
|
|
6461
6593
|
protoOf(OptParseResult).toString = function () {
|
|
6462
|
-
return 'OptParseResult(consumed=' + this.
|
|
6594
|
+
return 'OptParseResult(consumed=' + this.d1r_1 + ', unknown=' + toString_0(this.e1r_1) + ', known=' + toString_0(this.f1r_1) + ', err=' + toString_1(this.g1r_1) + ')';
|
|
6463
6595
|
};
|
|
6464
6596
|
protoOf(OptParseResult).hashCode = function () {
|
|
6465
|
-
var result = this.
|
|
6466
|
-
result = imul(result, 31) + hashCode(this.d1r_1) | 0;
|
|
6597
|
+
var result = this.d1r_1;
|
|
6467
6598
|
result = imul(result, 31) + hashCode(this.e1r_1) | 0;
|
|
6468
|
-
result = imul(result, 31) +
|
|
6599
|
+
result = imul(result, 31) + hashCode(this.f1r_1) | 0;
|
|
6600
|
+
result = imul(result, 31) + (this.g1r_1 == null ? 0 : hashCode(this.g1r_1)) | 0;
|
|
6469
6601
|
return result;
|
|
6470
6602
|
};
|
|
6471
6603
|
protoOf(OptParseResult).equals = function (other) {
|
|
@@ -6473,14 +6605,14 @@
|
|
|
6473
6605
|
return true;
|
|
6474
6606
|
if (!(other instanceof OptParseResult))
|
|
6475
6607
|
return false;
|
|
6476
|
-
if (!(this.
|
|
6477
|
-
return false;
|
|
6478
|
-
if (!equals(this.d1r_1, other.d1r_1))
|
|
6608
|
+
if (!(this.d1r_1 === other.d1r_1))
|
|
6479
6609
|
return false;
|
|
6480
6610
|
if (!equals(this.e1r_1, other.e1r_1))
|
|
6481
6611
|
return false;
|
|
6482
6612
|
if (!equals(this.f1r_1, other.f1r_1))
|
|
6483
6613
|
return false;
|
|
6614
|
+
if (!equals(this.g1r_1, other.g1r_1))
|
|
6615
|
+
return false;
|
|
6484
6616
|
return true;
|
|
6485
6617
|
};
|
|
6486
6618
|
function shlex(filename, text, localization) {
|
|
@@ -6603,20 +6735,20 @@
|
|
|
6603
6735
|
}
|
|
6604
6736
|
function ChainedValueSource$getValues$lambda($context, $option) {
|
|
6605
6737
|
return function (it) {
|
|
6606
|
-
return it.
|
|
6738
|
+
return it.x1m($context, $option);
|
|
6607
6739
|
};
|
|
6608
6740
|
}
|
|
6609
6741
|
function ChainedValueSource(sources) {
|
|
6610
|
-
this.
|
|
6742
|
+
this.j1r_1 = sources;
|
|
6611
6743
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
6612
6744
|
// Inline function 'kotlin.require' call
|
|
6613
|
-
if (!!this.
|
|
6745
|
+
if (!!this.j1r_1.p()) {
|
|
6614
6746
|
var message = 'Must provide configuration sources';
|
|
6615
6747
|
throw IllegalArgumentException_init_$Create$(toString_0(message));
|
|
6616
6748
|
}
|
|
6617
6749
|
}
|
|
6618
|
-
protoOf(ChainedValueSource).
|
|
6619
|
-
var tmp = asSequence_0(this.
|
|
6750
|
+
protoOf(ChainedValueSource).x1m = function (context, option) {
|
|
6751
|
+
var tmp = asSequence_0(this.j1r_1);
|
|
6620
6752
|
var tmp0 = map(tmp, ChainedValueSource$getValues$lambda(context, option));
|
|
6621
6753
|
var tmp$ret$0;
|
|
6622
6754
|
$l$block: {
|
|
@@ -6638,19 +6770,19 @@
|
|
|
6638
6770
|
};
|
|
6639
6771
|
function Companion_1() {
|
|
6640
6772
|
}
|
|
6641
|
-
protoOf(Companion_1).
|
|
6642
|
-
return listOf_0(this.
|
|
6773
|
+
protoOf(Companion_1).k1r = function (value, location) {
|
|
6774
|
+
return listOf_0(this.l1r(value, location));
|
|
6643
6775
|
};
|
|
6644
|
-
protoOf(Companion_1).
|
|
6776
|
+
protoOf(Companion_1).m1r = function (value, location, $super) {
|
|
6645
6777
|
location = location === VOID ? '' : location;
|
|
6646
|
-
return $super === VOID ? this.
|
|
6778
|
+
return $super === VOID ? this.k1r(value, location) : $super.k1r.call(this, value, location);
|
|
6647
6779
|
};
|
|
6648
|
-
protoOf(Companion_1).
|
|
6780
|
+
protoOf(Companion_1).l1r = function (value, location) {
|
|
6649
6781
|
return new Invocation(listOf_0(toString_1(value)), location);
|
|
6650
6782
|
};
|
|
6651
|
-
protoOf(Companion_1).
|
|
6783
|
+
protoOf(Companion_1).n1r = function (value, location, $super) {
|
|
6652
6784
|
location = location === VOID ? '' : location;
|
|
6653
|
-
return $super === VOID ? this.
|
|
6785
|
+
return $super === VOID ? this.l1r(value, location) : $super.l1r.call(this, value, location);
|
|
6654
6786
|
};
|
|
6655
6787
|
var Companion_instance_2;
|
|
6656
6788
|
function Companion_getInstance_1() {
|
|
@@ -6658,15 +6790,15 @@
|
|
|
6658
6790
|
}
|
|
6659
6791
|
function Invocation(values, location) {
|
|
6660
6792
|
location = location === VOID ? '' : location;
|
|
6661
|
-
this.
|
|
6662
|
-
this.
|
|
6793
|
+
this.y1m_1 = values;
|
|
6794
|
+
this.z1m_1 = location;
|
|
6663
6795
|
}
|
|
6664
6796
|
protoOf(Invocation).toString = function () {
|
|
6665
|
-
return 'Invocation(values=' + toString_0(this.
|
|
6797
|
+
return 'Invocation(values=' + toString_0(this.y1m_1) + ', location=' + this.z1m_1 + ')';
|
|
6666
6798
|
};
|
|
6667
6799
|
protoOf(Invocation).hashCode = function () {
|
|
6668
|
-
var result = hashCode(this.
|
|
6669
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
6800
|
+
var result = hashCode(this.y1m_1);
|
|
6801
|
+
result = imul(result, 31) + getStringHashCode(this.z1m_1) | 0;
|
|
6670
6802
|
return result;
|
|
6671
6803
|
};
|
|
6672
6804
|
protoOf(Invocation).equals = function (other) {
|
|
@@ -6674,15 +6806,15 @@
|
|
|
6674
6806
|
return true;
|
|
6675
6807
|
if (!(other instanceof Invocation))
|
|
6676
6808
|
return false;
|
|
6677
|
-
if (!equals(this.
|
|
6809
|
+
if (!equals(this.y1m_1, other.y1m_1))
|
|
6678
6810
|
return false;
|
|
6679
|
-
if (!(this.
|
|
6811
|
+
if (!(this.z1m_1 === other.z1m_1))
|
|
6680
6812
|
return false;
|
|
6681
6813
|
return true;
|
|
6682
6814
|
};
|
|
6683
6815
|
function Companion_2() {
|
|
6684
6816
|
}
|
|
6685
|
-
protoOf(Companion_2).
|
|
6817
|
+
protoOf(Companion_2).o1r = function (option) {
|
|
6686
6818
|
var longestName_0 = longestName(option);
|
|
6687
6819
|
$l$block: {
|
|
6688
6820
|
// Inline function 'kotlin.requireNotNull' call
|
|
@@ -6721,9 +6853,10 @@
|
|
|
6721
6853
|
protoOf(defaultLocalization$1).s1f = extraArgumentMany;
|
|
6722
6854
|
protoOf(defaultLocalization$1).z1k = invalidFlagValueInFile;
|
|
6723
6855
|
protoOf(defaultLocalization$1).a1l = boolConversionError;
|
|
6724
|
-
protoOf(defaultLocalization$1).b1l =
|
|
6856
|
+
protoOf(defaultLocalization$1).b1l = invalidChoice;
|
|
6857
|
+
protoOf(defaultLocalization$1).c1l = stringMetavar;
|
|
6725
6858
|
protoOf(defaultLocalization$1).u1k = intMetavar;
|
|
6726
|
-
protoOf(defaultLocalization$1).
|
|
6859
|
+
protoOf(defaultLocalization$1).d1l = usageTitle;
|
|
6727
6860
|
protoOf(defaultLocalization$1).z1j = optionsTitle;
|
|
6728
6861
|
protoOf(defaultLocalization$1).l1k = argumentsTitle;
|
|
6729
6862
|
protoOf(defaultLocalization$1).q1k = commandsTitle;
|
|
@@ -6733,10 +6866,10 @@
|
|
|
6733
6866
|
protoOf(defaultLocalization$1).r1k = helpTagDefault;
|
|
6734
6867
|
protoOf(defaultLocalization$1).s1k = helpTagRequired;
|
|
6735
6868
|
protoOf(defaultLocalization$1).g1b = helpOptionMessage;
|
|
6736
|
-
protoOf(ProcessedArgumentImpl).
|
|
6737
|
-
protoOf(OptionWithValuesImpl).
|
|
6738
|
-
protoOf(OptionWithValuesImpl).
|
|
6739
|
-
protoOf(OptionWithValuesImpl).
|
|
6869
|
+
protoOf(ProcessedArgumentImpl).q1l = copy$default;
|
|
6870
|
+
protoOf(OptionWithValuesImpl).p1m = copy$default_0;
|
|
6871
|
+
protoOf(OptionWithValuesImpl).q1m = copy$default_1;
|
|
6872
|
+
protoOf(OptionWithValuesImpl).w1m = getValue_0;
|
|
6740
6873
|
protoOf(OptionWithValuesImpl).j1b = parameterHelp;
|
|
6741
6874
|
//endregion
|
|
6742
6875
|
//region block: init
|
|
@@ -6769,8 +6902,9 @@
|
|
|
6769
6902
|
_.$_$.o = option;
|
|
6770
6903
|
_.$_$.p = required;
|
|
6771
6904
|
_.$_$.q = boolean;
|
|
6772
|
-
_.$_$.r =
|
|
6773
|
-
_.$_$.s =
|
|
6905
|
+
_.$_$.r = choice;
|
|
6906
|
+
_.$_$.s = Companion_instance_3;
|
|
6907
|
+
_.$_$.t = Companion_instance_2;
|
|
6774
6908
|
//endregion
|
|
6775
6909
|
return _;
|
|
6776
6910
|
}(module.exports, require('./kotlin-kotlin-stdlib.js')));
|