git-digger 1.9.23 → 1.9.24
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 +155 -0
- package/kotlin/clikt-clikt-mordant.js +45 -45
- package/kotlin/clikt-clikt.js +587 -454
- package/kotlin/clikt-clikt.js.map +1 -1
- package/kotlin/colormath-root-colormath.js +406 -406
- package/kotlin/command-line-tools-digger-cli.js +111 -142
- package/kotlin/command-line-tools-digger-cli.js.map +1 -1
- package/kotlin/kotlin-kotlin-stdlib.js +10 -10
- package/kotlin/kotlin-kotlin-stdlib.js.map +1 -1
- 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.$_$.vd;
|
|
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.$_$.de;
|
|
41
43
|
var isCharSequence = kotlin_kotlin.$_$.p9;
|
|
42
44
|
var trim = kotlin_kotlin.$_$.md;
|
|
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.$_$.kc;
|
|
@@ -77,7 +78,6 @@
|
|
|
77
78
|
var sortedWith = kotlin_kotlin.$_$.z6;
|
|
78
79
|
var FunctionAdapter = kotlin_kotlin.$_$.o8;
|
|
79
80
|
var Comparator = kotlin_kotlin.$_$.sd;
|
|
80
|
-
var hashCode = kotlin_kotlin.$_$.e9;
|
|
81
81
|
var compareValues = kotlin_kotlin.$_$.q7;
|
|
82
82
|
var print = kotlin_kotlin.$_$.w7;
|
|
83
83
|
var println = kotlin_kotlin.$_$.u7;
|
|
@@ -199,7 +199,7 @@
|
|
|
199
199
|
} else {
|
|
200
200
|
var tmp_0 = this.p1h();
|
|
201
201
|
var tmp_1 = this.q1h();
|
|
202
|
-
var tmp_2 = this.
|
|
202
|
+
var tmp_2 = this.s1u(context);
|
|
203
203
|
var tmp_3 = this.z1i(context);
|
|
204
204
|
var tmp_4 = this.q1i();
|
|
205
205
|
var tmp_5 = this.h1j();
|
|
@@ -335,6 +335,9 @@
|
|
|
335
335
|
function boolConversionError(value) {
|
|
336
336
|
return value + ' is not a valid boolean';
|
|
337
337
|
}
|
|
338
|
+
function invalidChoice(choice, choices) {
|
|
339
|
+
return 'invalid choice: ' + choice + '. (choose from ' + joinToString(choices) + ')';
|
|
340
|
+
}
|
|
338
341
|
function stringMetavar() {
|
|
339
342
|
return 'text';
|
|
340
343
|
}
|
|
@@ -382,7 +385,7 @@
|
|
|
382
385
|
initMetadataForClass(ProcessedArgumentImpl, 'ProcessedArgumentImpl', VOID, VOID, [Argument_0]);
|
|
383
386
|
function parameterHelp_0(context) {
|
|
384
387
|
var n = this.e1m();
|
|
385
|
-
var h = this.
|
|
388
|
+
var h = this.j1u();
|
|
386
389
|
return n == null || h == null ? null : new Group_0(n, h);
|
|
387
390
|
}
|
|
388
391
|
initMetadataForInterface(ParameterGroup, 'ParameterGroup');
|
|
@@ -395,38 +398,38 @@
|
|
|
395
398
|
initMetadataForInterface(OptionDelegate, 'OptionDelegate', VOID, VOID, [GroupableOption]);
|
|
396
399
|
function copy$default(transformValue, transformEach, transformAll, validator, names, metavarGetter, nvalues, helpGetter, hidden, helpTags, valueSourceKey, envvar, valueSplit, completionCandidates, secondaryNames, acceptsNumberValueWithoutName, acceptsUnattachedValue, eager, $super) {
|
|
397
400
|
names = names === VOID ? this.p1h() : names;
|
|
398
|
-
metavarGetter = metavarGetter === VOID ? this.
|
|
401
|
+
metavarGetter = metavarGetter === VOID ? this.b1v() : metavarGetter;
|
|
399
402
|
nvalues = nvalues === VOID ? this.q1i() : nvalues;
|
|
400
|
-
helpGetter = helpGetter === VOID ? this.
|
|
403
|
+
helpGetter = helpGetter === VOID ? this.c1v() : helpGetter;
|
|
401
404
|
hidden = hidden === VOID ? this.o1i() : hidden;
|
|
402
405
|
helpTags = helpTags === VOID ? this.h1j() : helpTags;
|
|
403
406
|
valueSourceKey = valueSourceKey === VOID ? this.f1m() : valueSourceKey;
|
|
404
|
-
envvar = envvar === VOID ? this.
|
|
405
|
-
valueSplit = valueSplit === VOID ? this.
|
|
406
|
-
completionCandidates = completionCandidates === VOID ? this.
|
|
407
|
+
envvar = envvar === VOID ? this.y1u() : envvar;
|
|
408
|
+
valueSplit = valueSplit === VOID ? this.d1v() : valueSplit;
|
|
409
|
+
completionCandidates = completionCandidates === VOID ? this.a1v() : completionCandidates;
|
|
407
410
|
secondaryNames = secondaryNames === VOID ? this.q1h() : secondaryNames;
|
|
408
411
|
acceptsNumberValueWithoutName = acceptsNumberValueWithoutName === VOID ? this.y1j() : acceptsNumberValueWithoutName;
|
|
409
412
|
acceptsUnattachedValue = acceptsUnattachedValue === VOID ? this.h1m() : acceptsUnattachedValue;
|
|
410
413
|
eager = eager === VOID ? this.g1m() : eager;
|
|
411
|
-
return $super === VOID ? this.
|
|
414
|
+
return $super === VOID ? this.e1v(transformValue, transformEach, transformAll, validator, names, metavarGetter, nvalues, helpGetter, hidden, helpTags, valueSourceKey, envvar, valueSplit, completionCandidates, secondaryNames, acceptsNumberValueWithoutName, acceptsUnattachedValue, eager) : $super.e1v.call(this, transformValue, transformEach, transformAll, validator, names, metavarGetter, nvalues, helpGetter, hidden, helpTags, valueSourceKey, envvar, valueSplit, completionCandidates, secondaryNames, acceptsNumberValueWithoutName, acceptsUnattachedValue, eager);
|
|
412
415
|
}
|
|
413
416
|
function copy$default_0(validator, names, metavarGetter, nvalues, helpGetter, hidden, helpTags, envvar, valueSourceKey, valueSplit, completionCandidates, secondaryNames, acceptsNumberValueWithoutName, acceptsUnattachedValue, eager, $super) {
|
|
414
|
-
validator = validator === VOID ? this.
|
|
417
|
+
validator = validator === VOID ? this.z1u() : validator;
|
|
415
418
|
names = names === VOID ? this.p1h() : names;
|
|
416
|
-
metavarGetter = metavarGetter === VOID ? this.
|
|
419
|
+
metavarGetter = metavarGetter === VOID ? this.b1v() : metavarGetter;
|
|
417
420
|
nvalues = nvalues === VOID ? this.q1i() : nvalues;
|
|
418
|
-
helpGetter = helpGetter === VOID ? this.
|
|
421
|
+
helpGetter = helpGetter === VOID ? this.c1v() : helpGetter;
|
|
419
422
|
hidden = hidden === VOID ? this.o1i() : hidden;
|
|
420
423
|
helpTags = helpTags === VOID ? this.h1j() : helpTags;
|
|
421
|
-
envvar = envvar === VOID ? this.
|
|
424
|
+
envvar = envvar === VOID ? this.y1u() : envvar;
|
|
422
425
|
valueSourceKey = valueSourceKey === VOID ? this.f1m() : valueSourceKey;
|
|
423
|
-
valueSplit = valueSplit === VOID ? this.
|
|
424
|
-
completionCandidates = completionCandidates === VOID ? this.
|
|
426
|
+
valueSplit = valueSplit === VOID ? this.d1v() : valueSplit;
|
|
427
|
+
completionCandidates = completionCandidates === VOID ? this.a1v() : completionCandidates;
|
|
425
428
|
secondaryNames = secondaryNames === VOID ? this.q1h() : secondaryNames;
|
|
426
429
|
acceptsNumberValueWithoutName = acceptsNumberValueWithoutName === VOID ? this.y1j() : acceptsNumberValueWithoutName;
|
|
427
430
|
acceptsUnattachedValue = acceptsUnattachedValue === VOID ? this.h1m() : acceptsUnattachedValue;
|
|
428
431
|
eager = eager === VOID ? this.g1m() : eager;
|
|
429
|
-
return $super === VOID ? this.
|
|
432
|
+
return $super === VOID ? this.f1v(validator, names, metavarGetter, nvalues, helpGetter, hidden, helpTags, envvar, valueSourceKey, valueSplit, completionCandidates, secondaryNames, acceptsNumberValueWithoutName, acceptsUnattachedValue, eager) : $super.f1v.call(this, validator, names, metavarGetter, nvalues, helpGetter, hidden, helpTags, envvar, valueSourceKey, valueSplit, completionCandidates, secondaryNames, acceptsNumberValueWithoutName, acceptsUnattachedValue, eager);
|
|
430
433
|
}
|
|
431
434
|
initMetadataForInterface(OptionWithValues, 'OptionWithValues', VOID, VOID, [OptionDelegate]);
|
|
432
435
|
initMetadataForClass(OptionTransformContext, 'OptionTransformContext', VOID, VOID, [Option_0]);
|
|
@@ -915,8 +918,25 @@
|
|
|
915
918
|
new Username();
|
|
916
919
|
return Username_instance;
|
|
917
920
|
}
|
|
918
|
-
function Fixed() {
|
|
921
|
+
function Fixed(candidates) {
|
|
922
|
+
CompletionCandidates.call(this);
|
|
923
|
+
this.t1i_1 = candidates;
|
|
919
924
|
}
|
|
925
|
+
protoOf(Fixed).toString = function () {
|
|
926
|
+
return 'Fixed(candidates=' + toString_0(this.t1i_1) + ')';
|
|
927
|
+
};
|
|
928
|
+
protoOf(Fixed).hashCode = function () {
|
|
929
|
+
return hashCode(this.t1i_1);
|
|
930
|
+
};
|
|
931
|
+
protoOf(Fixed).equals = function (other) {
|
|
932
|
+
if (this === other)
|
|
933
|
+
return true;
|
|
934
|
+
if (!(other instanceof Fixed))
|
|
935
|
+
return false;
|
|
936
|
+
if (!equals(this.t1i_1, other.t1i_1))
|
|
937
|
+
return false;
|
|
938
|
+
return true;
|
|
939
|
+
};
|
|
920
940
|
function Custom() {
|
|
921
941
|
}
|
|
922
942
|
function CompletionCandidates() {
|
|
@@ -3842,9 +3862,9 @@
|
|
|
3842
3862
|
}
|
|
3843
3863
|
function PlaintextHelpFormatter$buildParameterList$lambda(this$0, $termLength) {
|
|
3844
3864
|
return function (it) {
|
|
3845
|
-
var term = this$0.
|
|
3865
|
+
var term = this$0.k1t(it);
|
|
3846
3866
|
// Inline function 'kotlin.text.ifBlank' call
|
|
3847
|
-
var this_0 = this$0.
|
|
3867
|
+
var this_0 = this$0.l1t(it);
|
|
3848
3868
|
var tmp;
|
|
3849
3869
|
if (isBlank(this_0)) {
|
|
3850
3870
|
tmp = null;
|
|
@@ -3871,7 +3891,7 @@
|
|
|
3871
3891
|
};
|
|
3872
3892
|
protoOf(PlaintextHelpFormatter).s1q = function (parameters, programName) {
|
|
3873
3893
|
var params = this.b1r(parameters);
|
|
3874
|
-
var title = this.q1q().
|
|
3894
|
+
var title = this.q1q().f1t();
|
|
3875
3895
|
var tmp;
|
|
3876
3896
|
// Inline function 'kotlin.text.isEmpty' call
|
|
3877
3897
|
if (charSequenceLength(params) === 0) {
|
|
@@ -3918,7 +3938,7 @@
|
|
|
3918
3938
|
this_0.o(this.o1s(options));
|
|
3919
3939
|
return this_0.toString();
|
|
3920
3940
|
};
|
|
3921
|
-
protoOf(PlaintextHelpFormatter).
|
|
3941
|
+
protoOf(PlaintextHelpFormatter).k1t = function (row) {
|
|
3922
3942
|
var tmp;
|
|
3923
3943
|
// Inline function 'kotlin.text.isNullOrEmpty' call
|
|
3924
3944
|
var this_0 = row.c1q_1;
|
|
@@ -3940,7 +3960,7 @@
|
|
|
3940
3960
|
var termPrefix = tmp;
|
|
3941
3961
|
return termPrefix + row.a1q_1;
|
|
3942
3962
|
};
|
|
3943
|
-
protoOf(PlaintextHelpFormatter).
|
|
3963
|
+
protoOf(PlaintextHelpFormatter).l1t = function (row) {
|
|
3944
3964
|
return row.b1q_1;
|
|
3945
3965
|
};
|
|
3946
3966
|
protoOf(PlaintextHelpFormatter).o1s = function (rows) {
|
|
@@ -3976,38 +3996,38 @@
|
|
|
3976
3996
|
return new ProcessedArgumentImpl(name, 1, true, tmp, helpTags, completionCandidates, argument$lambda_0, defaultAllProcessor(), defaultValidator());
|
|
3977
3997
|
}
|
|
3978
3998
|
function ArgumentTransformContext(argument, context) {
|
|
3979
|
-
this.
|
|
3980
|
-
this.
|
|
3999
|
+
this.n1t_1 = argument;
|
|
4000
|
+
this.o1t_1 = context;
|
|
3981
4001
|
}
|
|
3982
4002
|
protoOf(ArgumentTransformContext).y8 = function () {
|
|
3983
|
-
return this.
|
|
4003
|
+
return this.o1t_1;
|
|
3984
4004
|
};
|
|
3985
|
-
protoOf(ArgumentTransformContext).
|
|
3986
|
-
throw BadParameterValue_init_$Create$(message, this.
|
|
4005
|
+
protoOf(ArgumentTransformContext).p1t = function (message) {
|
|
4006
|
+
throw BadParameterValue_init_$Create$(message, this.n1t_1);
|
|
3987
4007
|
};
|
|
3988
4008
|
protoOf(ArgumentTransformContext).k = function () {
|
|
3989
|
-
return this.
|
|
4009
|
+
return this.n1t_1.k();
|
|
3990
4010
|
};
|
|
3991
4011
|
protoOf(ArgumentTransformContext).q1i = function () {
|
|
3992
|
-
return this.
|
|
4012
|
+
return this.n1t_1.q1i();
|
|
3993
4013
|
};
|
|
3994
|
-
protoOf(ArgumentTransformContext).
|
|
3995
|
-
return this.
|
|
4014
|
+
protoOf(ArgumentTransformContext).m1t = function () {
|
|
4015
|
+
return this.n1t_1.m1t();
|
|
3996
4016
|
};
|
|
3997
4017
|
protoOf(ArgumentTransformContext).a1j = function (context) {
|
|
3998
|
-
return this.
|
|
4018
|
+
return this.n1t_1.a1j(context);
|
|
3999
4019
|
};
|
|
4000
4020
|
protoOf(ArgumentTransformContext).p1i = function () {
|
|
4001
|
-
return this.
|
|
4021
|
+
return this.n1t_1.p1i();
|
|
4002
4022
|
};
|
|
4003
4023
|
protoOf(ArgumentTransformContext).s1j = function (context) {
|
|
4004
|
-
return this.
|
|
4024
|
+
return this.n1t_1.s1j(context);
|
|
4005
4025
|
};
|
|
4006
4026
|
protoOf(ArgumentTransformContext).x1p = function (context, values) {
|
|
4007
|
-
this.
|
|
4027
|
+
this.n1t_1.x1p(context, values);
|
|
4008
4028
|
};
|
|
4009
4029
|
protoOf(ArgumentTransformContext).m1p = function (context) {
|
|
4010
|
-
this.
|
|
4030
|
+
this.n1t_1.m1p(context);
|
|
4011
4031
|
};
|
|
4012
4032
|
function ProcessedArgumentImpl$_get_value_$ref_enmq3a() {
|
|
4013
4033
|
return function (p0) {
|
|
@@ -4016,7 +4036,7 @@
|
|
|
4016
4036
|
}
|
|
4017
4037
|
function ProcessedArgumentImpl$_set_value_$ref_en7qba() {
|
|
4018
4038
|
return function (p0, p1) {
|
|
4019
|
-
p0.
|
|
4039
|
+
p0.a1u(p1);
|
|
4020
4040
|
return Unit_instance;
|
|
4021
4041
|
};
|
|
4022
4042
|
}
|
|
@@ -4027,84 +4047,84 @@
|
|
|
4027
4047
|
}
|
|
4028
4048
|
function ProcessedArgumentImpl$_set_value_$ref_en7qba_0() {
|
|
4029
4049
|
return function (p0, p1) {
|
|
4030
|
-
p0.
|
|
4050
|
+
p0.a1u(p1);
|
|
4031
4051
|
return Unit_instance;
|
|
4032
4052
|
};
|
|
4033
4053
|
}
|
|
4034
4054
|
function ProcessedArgumentImpl(name, nvalues, required, helpGetter, helpTags, explicitCompletionCandidates, transformValue, transformAll, transformValidator) {
|
|
4035
|
-
this.
|
|
4036
|
-
this.
|
|
4037
|
-
this.
|
|
4038
|
-
this.
|
|
4039
|
-
this.
|
|
4040
|
-
this.
|
|
4041
|
-
this.
|
|
4042
|
-
this.
|
|
4043
|
-
this.
|
|
4055
|
+
this.q1t_1 = name;
|
|
4056
|
+
this.r1t_1 = nvalues;
|
|
4057
|
+
this.s1t_1 = required;
|
|
4058
|
+
this.t1t_1 = helpGetter;
|
|
4059
|
+
this.u1t_1 = helpTags;
|
|
4060
|
+
this.v1t_1 = explicitCompletionCandidates;
|
|
4061
|
+
this.w1t_1 = transformValue;
|
|
4062
|
+
this.x1t_1 = transformAll;
|
|
4063
|
+
this.y1t_1 = transformValidator;
|
|
4044
4064
|
// Inline function 'kotlin.require' call
|
|
4045
|
-
if (!!(this.
|
|
4065
|
+
if (!!(this.r1t_1 === 0)) {
|
|
4046
4066
|
var message = 'Arguments cannot have nvalues == 0';
|
|
4047
4067
|
throw IllegalArgumentException_init_$Create$(toString_0(message));
|
|
4048
4068
|
}
|
|
4049
|
-
this.
|
|
4069
|
+
this.z1t_1 = new NullableLateinit('Cannot read from argument delegate before parsing command line');
|
|
4050
4070
|
}
|
|
4051
4071
|
protoOf(ProcessedArgumentImpl).k = function () {
|
|
4052
|
-
return this.p1t_1;
|
|
4053
|
-
};
|
|
4054
|
-
protoOf(ProcessedArgumentImpl).q1i = function () {
|
|
4055
4072
|
return this.q1t_1;
|
|
4056
4073
|
};
|
|
4057
|
-
protoOf(ProcessedArgumentImpl).
|
|
4074
|
+
protoOf(ProcessedArgumentImpl).q1i = function () {
|
|
4058
4075
|
return this.r1t_1;
|
|
4059
4076
|
};
|
|
4077
|
+
protoOf(ProcessedArgumentImpl).m1t = function () {
|
|
4078
|
+
return this.s1t_1;
|
|
4079
|
+
};
|
|
4060
4080
|
protoOf(ProcessedArgumentImpl).a1j = function (context) {
|
|
4061
|
-
var tmp0_safe_receiver = this.
|
|
4081
|
+
var tmp0_safe_receiver = this.t1t_1;
|
|
4062
4082
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver(new HelpTransformContext(context));
|
|
4063
4083
|
return tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs;
|
|
4064
4084
|
};
|
|
4065
|
-
protoOf(ProcessedArgumentImpl).
|
|
4085
|
+
protoOf(ProcessedArgumentImpl).a1u = function (_set____db54di) {
|
|
4066
4086
|
var tmp = KMutableProperty1;
|
|
4067
4087
|
var tmp_0 = ProcessedArgumentImpl$_get_value_$ref_enmq3a_0();
|
|
4068
|
-
return this.
|
|
4088
|
+
return this.z1t_1.d1u(this, getPropertyCallableRef('value', 1, tmp, tmp_0, ProcessedArgumentImpl$_set_value_$ref_en7qba_0()), _set____db54di);
|
|
4069
4089
|
};
|
|
4070
4090
|
protoOf(ProcessedArgumentImpl).m1 = function () {
|
|
4071
4091
|
var tmp = KMutableProperty1;
|
|
4072
4092
|
var tmp_0 = ProcessedArgumentImpl$_get_value_$ref_enmq3a();
|
|
4073
|
-
return this.
|
|
4093
|
+
return this.z1t_1.e1u(this, getPropertyCallableRef('value', 1, tmp, tmp_0, ProcessedArgumentImpl$_set_value_$ref_en7qba()));
|
|
4074
4094
|
};
|
|
4075
4095
|
protoOf(ProcessedArgumentImpl).p1i = function () {
|
|
4076
|
-
var tmp0_elvis_lhs = this.
|
|
4096
|
+
var tmp0_elvis_lhs = this.v1t_1;
|
|
4077
4097
|
return tmp0_elvis_lhs == null ? None_getInstance() : tmp0_elvis_lhs;
|
|
4078
4098
|
};
|
|
4079
4099
|
protoOf(ProcessedArgumentImpl).s1j = function (context) {
|
|
4080
|
-
return new Argument(this.
|
|
4081
|
-
};
|
|
4082
|
-
protoOf(ProcessedArgumentImpl).e1u = function (thisRef, property) {
|
|
4083
|
-
return this.m1();
|
|
4100
|
+
return new Argument(this.q1t_1, this.a1j(context), this.s1t_1 || this.r1t_1 > 1, this.r1t_1 < 0, this.u1t_1);
|
|
4084
4101
|
};
|
|
4085
4102
|
protoOf(ProcessedArgumentImpl).f1u = function (thisRef, property) {
|
|
4086
|
-
return this.
|
|
4103
|
+
return this.m1();
|
|
4087
4104
|
};
|
|
4088
4105
|
protoOf(ProcessedArgumentImpl).g1u = function (thisRef, property) {
|
|
4089
|
-
|
|
4106
|
+
return this.f1u(thisRef instanceof BaseCliktCommand ? thisRef : THROW_CCE(), property);
|
|
4107
|
+
};
|
|
4108
|
+
protoOf(ProcessedArgumentImpl).h1u = function (thisRef, property) {
|
|
4109
|
+
if (isBlank(this.q1t_1)) {
|
|
4090
4110
|
var tmp = this;
|
|
4091
4111
|
// Inline function 'kotlin.text.uppercase' call
|
|
4092
4112
|
// Inline function 'kotlin.js.asDynamic' call
|
|
4093
4113
|
var tmp$ret$0 = property.callableName.toUpperCase();
|
|
4094
|
-
tmp.
|
|
4114
|
+
tmp.q1t_1 = replace_0(tmp$ret$0, '-', '_');
|
|
4095
4115
|
}
|
|
4096
4116
|
thisRef.a1k(this);
|
|
4097
4117
|
return this;
|
|
4098
4118
|
};
|
|
4099
|
-
protoOf(ProcessedArgumentImpl).
|
|
4100
|
-
return this.
|
|
4119
|
+
protoOf(ProcessedArgumentImpl).i1u = function (thisRef, property) {
|
|
4120
|
+
return this.h1u(thisRef instanceof BaseCliktCommand ? thisRef : THROW_CCE(), property);
|
|
4101
4121
|
};
|
|
4102
4122
|
protoOf(ProcessedArgumentImpl).x1p = function (context, values) {
|
|
4103
4123
|
var ctx = new ArgumentTransformContext(this, context);
|
|
4104
|
-
if (this.
|
|
4124
|
+
if (this.s1t_1) {
|
|
4105
4125
|
if (values.p())
|
|
4106
4126
|
throw new MissingArgument(this);
|
|
4107
|
-
else if (this.
|
|
4127
|
+
else if (this.r1t_1 > 0 && !(values.d1() === this.r1t_1))
|
|
4108
4128
|
throw IncorrectArgumentValueCount_init_$Create$(this);
|
|
4109
4129
|
}
|
|
4110
4130
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -4113,19 +4133,19 @@
|
|
|
4113
4133
|
var _iterator__ex2g4s = values.r();
|
|
4114
4134
|
while (_iterator__ex2g4s.s()) {
|
|
4115
4135
|
var item = _iterator__ex2g4s.t();
|
|
4116
|
-
var tmp$ret$2 = this.
|
|
4136
|
+
var tmp$ret$2 = this.w1t_1(ctx, item);
|
|
4117
4137
|
destination.v(tmp$ret$2);
|
|
4118
4138
|
}
|
|
4119
|
-
this.
|
|
4139
|
+
this.a1u(this.x1t_1(ctx, destination));
|
|
4120
4140
|
};
|
|
4121
4141
|
protoOf(ProcessedArgumentImpl).m1p = function (context) {
|
|
4122
|
-
this.
|
|
4142
|
+
this.y1t_1(new ArgumentTransformContext(this, context), this.m1());
|
|
4123
4143
|
};
|
|
4124
4144
|
protoOf(ProcessedArgumentImpl).toString = function () {
|
|
4125
4145
|
// Inline function 'kotlin.text.buildString' call
|
|
4126
4146
|
// Inline function 'kotlin.apply' call
|
|
4127
4147
|
var this_0 = StringBuilder_init_$Create$();
|
|
4128
|
-
this_0.o(this.
|
|
4148
|
+
this_0.o(this.q1t_1);
|
|
4129
4149
|
// Inline function 'kotlin.runCatching' call
|
|
4130
4150
|
var tmp;
|
|
4131
4151
|
try {
|
|
@@ -4180,28 +4200,28 @@
|
|
|
4180
4200
|
return UNINITIALIZED_instance;
|
|
4181
4201
|
}
|
|
4182
4202
|
function NullableLateinit(errorMessage) {
|
|
4183
|
-
this.
|
|
4184
|
-
this.
|
|
4203
|
+
this.b1u_1 = errorMessage;
|
|
4204
|
+
this.c1u_1 = UNINITIALIZED_instance;
|
|
4185
4205
|
}
|
|
4186
|
-
protoOf(NullableLateinit).
|
|
4187
|
-
if (this.
|
|
4188
|
-
throw new LateinitException(this.
|
|
4206
|
+
protoOf(NullableLateinit).e1u = function (thisRef, property) {
|
|
4207
|
+
if (this.c1u_1 === UNINITIALIZED_instance)
|
|
4208
|
+
throw new LateinitException(this.b1u_1);
|
|
4189
4209
|
try {
|
|
4190
|
-
return this.
|
|
4210
|
+
return this.c1u_1;
|
|
4191
4211
|
} catch ($p) {
|
|
4192
4212
|
if ($p instanceof ClassCastException) {
|
|
4193
4213
|
var e = $p;
|
|
4194
|
-
throw new LateinitException(this.
|
|
4214
|
+
throw new LateinitException(this.b1u_1);
|
|
4195
4215
|
} else {
|
|
4196
4216
|
throw $p;
|
|
4197
4217
|
}
|
|
4198
4218
|
}
|
|
4199
4219
|
};
|
|
4200
|
-
protoOf(NullableLateinit).
|
|
4201
|
-
return this.
|
|
4220
|
+
protoOf(NullableLateinit).g1u = function (thisRef, property) {
|
|
4221
|
+
return this.e1u(!(thisRef == null) ? thisRef : THROW_CCE(), property);
|
|
4202
4222
|
};
|
|
4203
|
-
protoOf(NullableLateinit).
|
|
4204
|
-
this.
|
|
4223
|
+
protoOf(NullableLateinit).d1u = function (thisRef, property, value) {
|
|
4224
|
+
this.c1u_1 = value;
|
|
4205
4225
|
};
|
|
4206
4226
|
function LateinitException(message) {
|
|
4207
4227
|
IllegalStateException_init_$Init$(message, this);
|
|
@@ -4216,10 +4236,10 @@
|
|
|
4216
4236
|
var tmp$ret$0 = copyToArray(names);
|
|
4217
4237
|
// Inline function 'com.github.ajalt.clikt.parameters.options.validate' call
|
|
4218
4238
|
var this_0 = flag(option(_this__u8e3s4, tmp$ret$0.slice(), help, VOID, hidden, VOID, helpTags, VOID, VOID, true), []);
|
|
4219
|
-
var tmp = this_0.
|
|
4220
|
-
var tmp_0 = this_0.
|
|
4221
|
-
var tmp_1 = this_0.
|
|
4222
|
-
var o = this_0.
|
|
4239
|
+
var tmp = this_0.k1u();
|
|
4240
|
+
var tmp_0 = this_0.l1u();
|
|
4241
|
+
var tmp_1 = this_0.m1u();
|
|
4242
|
+
var o = this_0.n1u(tmp, tmp_0, tmp_1, eagerOption$lambda(action));
|
|
4223
4243
|
o.j1m(groupName);
|
|
4224
4244
|
_this__u8e3s4.z1j(o);
|
|
4225
4245
|
return _this__u8e3s4;
|
|
@@ -4243,16 +4263,16 @@
|
|
|
4243
4263
|
function nullableFlag(_this__u8e3s4, secondaryNames) {
|
|
4244
4264
|
var tmp = boolean(_this__u8e3s4);
|
|
4245
4265
|
var tmp_0 = numberRangeToNumber(0, 0);
|
|
4246
|
-
return transformValues(tmp, tmp_0, nullableFlag$lambda(secondaryNames)).
|
|
4266
|
+
return transformValues(tmp, tmp_0, nullableFlag$lambda(secondaryNames)).o1u(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, toSet_0(secondaryNames));
|
|
4247
4267
|
}
|
|
4248
4268
|
function nullableFlag$lambda($secondaryNames) {
|
|
4249
4269
|
return function ($this$transformValues, it) {
|
|
4250
4270
|
var tmp;
|
|
4251
4271
|
if (it.d1() > 1) {
|
|
4252
|
-
$this$transformValues.
|
|
4272
|
+
$this$transformValues.p1t($this$transformValues.r1u_1.e1i_1.b1t($this$transformValues.p1u_1));
|
|
4253
4273
|
}
|
|
4254
4274
|
var tmp0_elvis_lhs = lastOrNull(it);
|
|
4255
|
-
return tmp0_elvis_lhs == null ? !contains_0($secondaryNames, $this$transformValues.
|
|
4275
|
+
return tmp0_elvis_lhs == null ? !contains_0($secondaryNames, $this$transformValues.p1u_1) : tmp0_elvis_lhs;
|
|
4256
4276
|
};
|
|
4257
4277
|
}
|
|
4258
4278
|
function Option_0() {
|
|
@@ -4407,7 +4427,7 @@
|
|
|
4407
4427
|
}
|
|
4408
4428
|
function readValueSource(_this__u8e3s4, context) {
|
|
4409
4429
|
var tmp0_safe_receiver = context.c1i_1;
|
|
4410
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
4430
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.v1u(context, _this__u8e3s4);
|
|
4411
4431
|
var tmp;
|
|
4412
4432
|
if (tmp1_safe_receiver == null) {
|
|
4413
4433
|
tmp = null;
|
|
@@ -4418,7 +4438,7 @@
|
|
|
4418
4438
|
var _iterator__ex2g4s = tmp1_safe_receiver.r();
|
|
4419
4439
|
while (_iterator__ex2g4s.s()) {
|
|
4420
4440
|
var item = _iterator__ex2g4s.t();
|
|
4421
|
-
var tmp$ret$2 = new OptionInvocation(item.
|
|
4441
|
+
var tmp$ret$2 = new OptionInvocation(item.x1u_1, item.w1u_1);
|
|
4422
4442
|
destination.v(tmp$ret$2);
|
|
4423
4443
|
}
|
|
4424
4444
|
tmp = destination;
|
|
@@ -4444,7 +4464,7 @@
|
|
|
4444
4464
|
if (!invocations.p())
|
|
4445
4465
|
return false;
|
|
4446
4466
|
var tmp0_safe_receiver = isInterface(_this__u8e3s4, OptionWithValues) ? _this__u8e3s4 : null;
|
|
4447
|
-
var envvar = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
4467
|
+
var envvar = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.y1u();
|
|
4448
4468
|
var final = getFinalValue(_this__u8e3s4, context, invocations, envvar);
|
|
4449
4469
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
4450
4470
|
return !final.p();
|
|
@@ -4461,11 +4481,11 @@
|
|
|
4461
4481
|
protoOf(OptionTransformContext).y8 = function () {
|
|
4462
4482
|
return this.d1j_1;
|
|
4463
4483
|
};
|
|
4464
|
-
protoOf(OptionTransformContext).
|
|
4484
|
+
protoOf(OptionTransformContext).p1t = function (message) {
|
|
4465
4485
|
throw BadParameterValue_init_$Create$_0(message, this.c1j_1);
|
|
4466
4486
|
};
|
|
4467
|
-
protoOf(OptionTransformContext).
|
|
4468
|
-
return this.c1j_1.
|
|
4487
|
+
protoOf(OptionTransformContext).s1u = function (context) {
|
|
4488
|
+
return this.c1j_1.s1u(context);
|
|
4469
4489
|
};
|
|
4470
4490
|
protoOf(OptionTransformContext).z1i = function (context) {
|
|
4471
4491
|
return this.c1j_1.z1i(context);
|
|
@@ -4510,60 +4530,60 @@
|
|
|
4510
4530
|
this.c1j_1.m1p(context);
|
|
4511
4531
|
};
|
|
4512
4532
|
function OptionCallTransformContext(name, option, context) {
|
|
4513
|
-
this.
|
|
4514
|
-
this.
|
|
4515
|
-
this.
|
|
4533
|
+
this.p1u_1 = name;
|
|
4534
|
+
this.q1u_1 = option;
|
|
4535
|
+
this.r1u_1 = context;
|
|
4516
4536
|
}
|
|
4517
4537
|
protoOf(OptionCallTransformContext).y8 = function () {
|
|
4518
|
-
return this.
|
|
4538
|
+
return this.r1u_1;
|
|
4519
4539
|
};
|
|
4520
|
-
protoOf(OptionCallTransformContext).
|
|
4521
|
-
throw BadParameterValue_init_$Create$_1(message, this.
|
|
4540
|
+
protoOf(OptionCallTransformContext).p1t = function (message) {
|
|
4541
|
+
throw BadParameterValue_init_$Create$_1(message, this.q1u_1, this.p1u_1);
|
|
4522
4542
|
};
|
|
4523
|
-
protoOf(OptionCallTransformContext).
|
|
4524
|
-
return this.
|
|
4543
|
+
protoOf(OptionCallTransformContext).s1u = function (context) {
|
|
4544
|
+
return this.q1u_1.s1u(context);
|
|
4525
4545
|
};
|
|
4526
4546
|
protoOf(OptionCallTransformContext).z1i = function (context) {
|
|
4527
|
-
return this.
|
|
4547
|
+
return this.q1u_1.z1i(context);
|
|
4528
4548
|
};
|
|
4529
4549
|
protoOf(OptionCallTransformContext).p1h = function () {
|
|
4530
|
-
return this.
|
|
4550
|
+
return this.q1u_1.p1h();
|
|
4531
4551
|
};
|
|
4532
4552
|
protoOf(OptionCallTransformContext).q1h = function () {
|
|
4533
|
-
return this.
|
|
4553
|
+
return this.q1u_1.q1h();
|
|
4534
4554
|
};
|
|
4535
4555
|
protoOf(OptionCallTransformContext).q1i = function () {
|
|
4536
|
-
return this.
|
|
4556
|
+
return this.q1u_1.q1i();
|
|
4537
4557
|
};
|
|
4538
4558
|
protoOf(OptionCallTransformContext).o1i = function () {
|
|
4539
|
-
return this.
|
|
4559
|
+
return this.q1u_1.o1i();
|
|
4540
4560
|
};
|
|
4541
4561
|
protoOf(OptionCallTransformContext).h1j = function () {
|
|
4542
|
-
return this.
|
|
4562
|
+
return this.q1u_1.h1j();
|
|
4543
4563
|
};
|
|
4544
4564
|
protoOf(OptionCallTransformContext).p1i = function () {
|
|
4545
|
-
return this.
|
|
4565
|
+
return this.q1u_1.p1i();
|
|
4546
4566
|
};
|
|
4547
4567
|
protoOf(OptionCallTransformContext).f1m = function () {
|
|
4548
|
-
return this.
|
|
4568
|
+
return this.q1u_1.f1m();
|
|
4549
4569
|
};
|
|
4550
4570
|
protoOf(OptionCallTransformContext).y1j = function () {
|
|
4551
|
-
return this.
|
|
4571
|
+
return this.q1u_1.y1j();
|
|
4552
4572
|
};
|
|
4553
4573
|
protoOf(OptionCallTransformContext).g1m = function () {
|
|
4554
|
-
return this.
|
|
4574
|
+
return this.q1u_1.g1m();
|
|
4555
4575
|
};
|
|
4556
4576
|
protoOf(OptionCallTransformContext).h1m = function () {
|
|
4557
|
-
return this.
|
|
4577
|
+
return this.q1u_1.h1m();
|
|
4558
4578
|
};
|
|
4559
4579
|
protoOf(OptionCallTransformContext).s1j = function (context) {
|
|
4560
|
-
return this.
|
|
4580
|
+
return this.q1u_1.s1j(context);
|
|
4561
4581
|
};
|
|
4562
4582
|
protoOf(OptionCallTransformContext).u1p = function (context, invocations) {
|
|
4563
|
-
this.
|
|
4583
|
+
this.q1u_1.u1p(context, invocations);
|
|
4564
4584
|
};
|
|
4565
4585
|
protoOf(OptionCallTransformContext).m1p = function (context) {
|
|
4566
|
-
this.
|
|
4586
|
+
this.q1u_1.m1p(context);
|
|
4567
4587
|
};
|
|
4568
4588
|
function option(_this__u8e3s4, names, help, metavar, hidden, envvar, helpTags, completionCandidates, valueSourceKey, eager) {
|
|
4569
4589
|
help = help === VOID ? '' : help;
|
|
@@ -4593,7 +4613,7 @@
|
|
|
4593
4613
|
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);
|
|
4594
4614
|
}
|
|
4595
4615
|
function OptionWithValuesImpl$metavar$lambda(_this__u8e3s4) {
|
|
4596
|
-
return _this__u8e3s4.e1i_1.
|
|
4616
|
+
return _this__u8e3s4.e1i_1.e1t();
|
|
4597
4617
|
}
|
|
4598
4618
|
function OptionWithValuesImpl$_get_value_$ref_kjlo8() {
|
|
4599
4619
|
return function (p0) {
|
|
@@ -4602,7 +4622,7 @@
|
|
|
4602
4622
|
}
|
|
4603
4623
|
function OptionWithValuesImpl$_set_value_$ref_tve22s() {
|
|
4604
4624
|
return function (p0, p1) {
|
|
4605
|
-
p0.
|
|
4625
|
+
p0.a1u(p1);
|
|
4606
4626
|
return Unit_instance;
|
|
4607
4627
|
};
|
|
4608
4628
|
}
|
|
@@ -4613,73 +4633,70 @@
|
|
|
4613
4633
|
}
|
|
4614
4634
|
function OptionWithValuesImpl$_set_value_$ref_tve22s_0() {
|
|
4615
4635
|
return function (p0, p1) {
|
|
4616
|
-
p0.
|
|
4636
|
+
p0.a1u(p1);
|
|
4617
4637
|
return Unit_instance;
|
|
4618
4638
|
};
|
|
4619
4639
|
}
|
|
4620
4640
|
function OptionWithValuesImpl(names, metavarGetter, nvalues, helpGetter, hidden, helpTags, valueSourceKey, envvar, valueSplit, explicitCompletionCandidates, secondaryNames, acceptsNumberValueWithoutName, acceptsUnattachedValue, eager, transformValue, transformEach, transformAll, transformValidator) {
|
|
4621
|
-
this.
|
|
4622
|
-
this.
|
|
4623
|
-
this.
|
|
4624
|
-
this.
|
|
4625
|
-
this.
|
|
4626
|
-
this.
|
|
4627
|
-
this.
|
|
4628
|
-
this.
|
|
4629
|
-
this.
|
|
4630
|
-
this.
|
|
4631
|
-
this.
|
|
4632
|
-
this.
|
|
4633
|
-
this.
|
|
4634
|
-
this.
|
|
4635
|
-
this.
|
|
4636
|
-
this.
|
|
4637
|
-
this.
|
|
4638
|
-
this.w1v_1 = null;
|
|
4641
|
+
this.g1v_1 = metavarGetter;
|
|
4642
|
+
this.h1v_1 = nvalues;
|
|
4643
|
+
this.i1v_1 = helpGetter;
|
|
4644
|
+
this.j1v_1 = hidden;
|
|
4645
|
+
this.k1v_1 = helpTags;
|
|
4646
|
+
this.l1v_1 = valueSourceKey;
|
|
4647
|
+
this.m1v_1 = envvar;
|
|
4648
|
+
this.n1v_1 = valueSplit;
|
|
4649
|
+
this.o1v_1 = explicitCompletionCandidates;
|
|
4650
|
+
this.p1v_1 = secondaryNames;
|
|
4651
|
+
this.q1v_1 = acceptsNumberValueWithoutName;
|
|
4652
|
+
this.r1v_1 = acceptsUnattachedValue;
|
|
4653
|
+
this.s1v_1 = eager;
|
|
4654
|
+
this.t1v_1 = transformValue;
|
|
4655
|
+
this.u1v_1 = transformEach;
|
|
4656
|
+
this.v1v_1 = transformAll;
|
|
4657
|
+
this.w1v_1 = transformValidator;
|
|
4639
4658
|
this.x1v_1 = null;
|
|
4640
|
-
this.y1v_1 =
|
|
4641
|
-
this.z1v_1 =
|
|
4659
|
+
this.y1v_1 = null;
|
|
4660
|
+
this.z1v_1 = new NullableLateinit('Cannot read from option delegate before parsing command line');
|
|
4661
|
+
this.a1w_1 = names;
|
|
4642
4662
|
}
|
|
4643
|
-
protoOf(OptionWithValuesImpl).
|
|
4644
|
-
return this.f1v_1;
|
|
4645
|
-
};
|
|
4646
|
-
protoOf(OptionWithValuesImpl).q1i = function () {
|
|
4663
|
+
protoOf(OptionWithValuesImpl).b1v = function () {
|
|
4647
4664
|
return this.g1v_1;
|
|
4648
4665
|
};
|
|
4649
|
-
protoOf(OptionWithValuesImpl).
|
|
4666
|
+
protoOf(OptionWithValuesImpl).q1i = function () {
|
|
4650
4667
|
return this.h1v_1;
|
|
4651
4668
|
};
|
|
4652
|
-
protoOf(OptionWithValuesImpl).
|
|
4669
|
+
protoOf(OptionWithValuesImpl).c1v = function () {
|
|
4653
4670
|
return this.i1v_1;
|
|
4654
4671
|
};
|
|
4655
|
-
protoOf(OptionWithValuesImpl).
|
|
4672
|
+
protoOf(OptionWithValuesImpl).o1i = function () {
|
|
4656
4673
|
return this.j1v_1;
|
|
4657
4674
|
};
|
|
4658
|
-
protoOf(OptionWithValuesImpl).
|
|
4675
|
+
protoOf(OptionWithValuesImpl).h1j = function () {
|
|
4659
4676
|
return this.k1v_1;
|
|
4660
4677
|
};
|
|
4661
|
-
protoOf(OptionWithValuesImpl).
|
|
4678
|
+
protoOf(OptionWithValuesImpl).f1m = function () {
|
|
4662
4679
|
return this.l1v_1;
|
|
4663
4680
|
};
|
|
4664
|
-
protoOf(OptionWithValuesImpl).
|
|
4681
|
+
protoOf(OptionWithValuesImpl).y1u = function () {
|
|
4665
4682
|
return this.m1v_1;
|
|
4666
4683
|
};
|
|
4667
|
-
protoOf(OptionWithValuesImpl).
|
|
4684
|
+
protoOf(OptionWithValuesImpl).d1v = function () {
|
|
4668
4685
|
return this.n1v_1;
|
|
4669
4686
|
};
|
|
4670
|
-
protoOf(OptionWithValuesImpl).
|
|
4687
|
+
protoOf(OptionWithValuesImpl).a1v = function () {
|
|
4671
4688
|
return this.o1v_1;
|
|
4672
4689
|
};
|
|
4673
|
-
protoOf(OptionWithValuesImpl).
|
|
4690
|
+
protoOf(OptionWithValuesImpl).q1h = function () {
|
|
4674
4691
|
return this.p1v_1;
|
|
4675
4692
|
};
|
|
4676
|
-
protoOf(OptionWithValuesImpl).
|
|
4693
|
+
protoOf(OptionWithValuesImpl).y1j = function () {
|
|
4677
4694
|
return this.q1v_1;
|
|
4678
4695
|
};
|
|
4679
|
-
protoOf(OptionWithValuesImpl).
|
|
4696
|
+
protoOf(OptionWithValuesImpl).h1m = function () {
|
|
4680
4697
|
return this.r1v_1;
|
|
4681
4698
|
};
|
|
4682
|
-
protoOf(OptionWithValuesImpl).
|
|
4699
|
+
protoOf(OptionWithValuesImpl).g1m = function () {
|
|
4683
4700
|
return this.s1v_1;
|
|
4684
4701
|
};
|
|
4685
4702
|
protoOf(OptionWithValuesImpl).k1u = function () {
|
|
@@ -4688,20 +4705,23 @@
|
|
|
4688
4705
|
protoOf(OptionWithValuesImpl).l1u = function () {
|
|
4689
4706
|
return this.u1v_1;
|
|
4690
4707
|
};
|
|
4691
|
-
protoOf(OptionWithValuesImpl).
|
|
4708
|
+
protoOf(OptionWithValuesImpl).m1u = function () {
|
|
4692
4709
|
return this.v1v_1;
|
|
4693
4710
|
};
|
|
4694
|
-
protoOf(OptionWithValuesImpl).
|
|
4711
|
+
protoOf(OptionWithValuesImpl).z1u = function () {
|
|
4695
4712
|
return this.w1v_1;
|
|
4696
4713
|
};
|
|
4714
|
+
protoOf(OptionWithValuesImpl).i1m = function () {
|
|
4715
|
+
return this.x1v_1;
|
|
4716
|
+
};
|
|
4697
4717
|
protoOf(OptionWithValuesImpl).j1m = function (_set____db54di) {
|
|
4698
|
-
this.
|
|
4718
|
+
this.y1v_1 = _set____db54di;
|
|
4699
4719
|
};
|
|
4700
4720
|
protoOf(OptionWithValuesImpl).e1m = function () {
|
|
4701
|
-
return this.
|
|
4721
|
+
return this.y1v_1;
|
|
4702
4722
|
};
|
|
4703
|
-
protoOf(OptionWithValuesImpl).
|
|
4704
|
-
var tmp0_elvis_lhs = this.
|
|
4723
|
+
protoOf(OptionWithValuesImpl).s1u = function (context) {
|
|
4724
|
+
var tmp0_elvis_lhs = this.g1v_1;
|
|
4705
4725
|
var tmp;
|
|
4706
4726
|
if (tmp0_elvis_lhs == null) {
|
|
4707
4727
|
tmp = OptionWithValuesImpl$metavar$lambda;
|
|
@@ -4710,31 +4730,31 @@
|
|
|
4710
4730
|
}
|
|
4711
4731
|
return tmp(context);
|
|
4712
4732
|
};
|
|
4713
|
-
protoOf(OptionWithValuesImpl).
|
|
4733
|
+
protoOf(OptionWithValuesImpl).a1u = function (_set____db54di) {
|
|
4714
4734
|
var tmp = KMutableProperty1;
|
|
4715
4735
|
var tmp_0 = OptionWithValuesImpl$_get_value_$ref_kjlo8_0();
|
|
4716
|
-
return this.
|
|
4736
|
+
return this.z1v_1.d1u(this, getPropertyCallableRef('value', 1, tmp, tmp_0, OptionWithValuesImpl$_set_value_$ref_tve22s_0()), _set____db54di);
|
|
4717
4737
|
};
|
|
4718
4738
|
protoOf(OptionWithValuesImpl).m1 = function () {
|
|
4719
4739
|
var tmp = KMutableProperty1;
|
|
4720
4740
|
var tmp_0 = OptionWithValuesImpl$_get_value_$ref_kjlo8();
|
|
4721
|
-
return this.
|
|
4741
|
+
return this.z1v_1.e1u(this, getPropertyCallableRef('value', 1, tmp, tmp_0, OptionWithValuesImpl$_set_value_$ref_tve22s()));
|
|
4722
4742
|
};
|
|
4723
4743
|
protoOf(OptionWithValuesImpl).p1h = function () {
|
|
4724
|
-
return this.
|
|
4744
|
+
return this.a1w_1;
|
|
4725
4745
|
};
|
|
4726
4746
|
protoOf(OptionWithValuesImpl).p1i = function () {
|
|
4727
|
-
var tmp0_elvis_lhs = this.
|
|
4747
|
+
var tmp0_elvis_lhs = this.o1v_1;
|
|
4728
4748
|
return tmp0_elvis_lhs == null ? None_getInstance() : tmp0_elvis_lhs;
|
|
4729
4749
|
};
|
|
4730
4750
|
protoOf(OptionWithValuesImpl).z1i = function (context) {
|
|
4731
|
-
var tmp0_safe_receiver = this.
|
|
4751
|
+
var tmp0_safe_receiver = this.i1v_1;
|
|
4732
4752
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver(new HelpTransformContext(context));
|
|
4733
4753
|
return tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs;
|
|
4734
4754
|
};
|
|
4735
4755
|
protoOf(OptionWithValuesImpl).u1p = function (context, invocations) {
|
|
4736
4756
|
// Inline function 'kotlin.collections.map' call
|
|
4737
|
-
var this_0 = getFinalValue(this, context, invocations, this.
|
|
4757
|
+
var this_0 = getFinalValue(this, context, invocations, this.m1v_1);
|
|
4738
4758
|
// Inline function 'kotlin.collections.mapTo' call
|
|
4739
4759
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
4740
4760
|
var _iterator__ex2g4s = this_0.r();
|
|
@@ -4743,28 +4763,28 @@
|
|
|
4743
4763
|
var tmp;
|
|
4744
4764
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
4745
4765
|
if (!invocations.p()) {
|
|
4746
|
-
var progression = this.
|
|
4766
|
+
var progression = this.h1v_1;
|
|
4747
4767
|
var containsLower = progression.o1_1;
|
|
4748
4768
|
var containsUpper = progression.p1_1;
|
|
4749
|
-
var containsArg = item.
|
|
4769
|
+
var containsArg = item.c1w_1.d1();
|
|
4750
4770
|
tmp = !(containsLower <= containsArg ? containsArg <= containsUpper : false);
|
|
4751
4771
|
} else {
|
|
4752
4772
|
tmp = false;
|
|
4753
4773
|
}
|
|
4754
4774
|
if (tmp) {
|
|
4755
|
-
throw IncorrectOptionValueCount_init_$Create$(this, item.
|
|
4775
|
+
throw IncorrectOptionValueCount_init_$Create$(this, item.b1w_1);
|
|
4756
4776
|
}
|
|
4757
4777
|
// Inline function 'kotlin.collections.flatMap' call
|
|
4758
|
-
var tmp0 = item.
|
|
4778
|
+
var tmp0 = item.c1w_1;
|
|
4759
4779
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
4760
4780
|
var destination_0 = ArrayList_init_$Create$();
|
|
4761
4781
|
var _iterator__ex2g4s_0 = tmp0.r();
|
|
4762
4782
|
while (_iterator__ex2g4s_0.s()) {
|
|
4763
4783
|
var element = _iterator__ex2g4s_0.t();
|
|
4764
|
-
var list = this.
|
|
4784
|
+
var list = this.n1v_1(element);
|
|
4765
4785
|
addAll(destination_0, list);
|
|
4766
4786
|
}
|
|
4767
|
-
var tmp$ret$2 = item.
|
|
4787
|
+
var tmp$ret$2 = item.d1w(VOID, destination_0);
|
|
4768
4788
|
destination.v(tmp$ret$2);
|
|
4769
4789
|
}
|
|
4770
4790
|
var invs = destination;
|
|
@@ -4775,38 +4795,38 @@
|
|
|
4775
4795
|
var _iterator__ex2g4s_1 = invs.r();
|
|
4776
4796
|
while (_iterator__ex2g4s_1.s()) {
|
|
4777
4797
|
var item_0 = _iterator__ex2g4s_1.t();
|
|
4778
|
-
var tc = new OptionCallTransformContext(item_0.
|
|
4798
|
+
var tc = new OptionCallTransformContext(item_0.b1w_1, this, context);
|
|
4779
4799
|
// Inline function 'kotlin.collections.map' call
|
|
4780
|
-
var this_1 = item_0.
|
|
4800
|
+
var this_1 = item_0.c1w_1;
|
|
4781
4801
|
// Inline function 'kotlin.collections.mapTo' call
|
|
4782
4802
|
var destination_2 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_1, 10));
|
|
4783
4803
|
var _iterator__ex2g4s_2 = this_1.r();
|
|
4784
4804
|
while (_iterator__ex2g4s_2.s()) {
|
|
4785
4805
|
var item_1 = _iterator__ex2g4s_2.t();
|
|
4786
|
-
var tmp$ret$12 = this.
|
|
4806
|
+
var tmp$ret$12 = this.t1v_1(tc, item_1);
|
|
4787
4807
|
destination_2.v(tmp$ret$12);
|
|
4788
4808
|
}
|
|
4789
|
-
var tmp$ret$9 = this.
|
|
4809
|
+
var tmp$ret$9 = this.u1v_1(tc, destination_2);
|
|
4790
4810
|
destination_1.v(tmp$ret$9);
|
|
4791
4811
|
}
|
|
4792
|
-
this.
|
|
4812
|
+
this.a1u(this.v1v_1(tmp_0, destination_1));
|
|
4793
4813
|
};
|
|
4794
|
-
protoOf(OptionWithValuesImpl).
|
|
4795
|
-
this.
|
|
4814
|
+
protoOf(OptionWithValuesImpl).t1u = function (thisRef, property) {
|
|
4815
|
+
this.a1w_1 = inferOptionNames(this.a1w_1, property.callableName);
|
|
4796
4816
|
thisRef.z1j(this);
|
|
4797
4817
|
return this;
|
|
4798
4818
|
};
|
|
4799
|
-
protoOf(OptionWithValuesImpl).
|
|
4800
|
-
return this.
|
|
4819
|
+
protoOf(OptionWithValuesImpl).i1u = function (thisRef, property) {
|
|
4820
|
+
return this.t1u((!(thisRef == null) ? isInterface(thisRef, ParameterHolder) : false) ? thisRef : THROW_CCE(), property);
|
|
4801
4821
|
};
|
|
4802
4822
|
protoOf(OptionWithValuesImpl).m1p = function (context) {
|
|
4803
|
-
this.
|
|
4823
|
+
this.w1v_1(new OptionTransformContext(this, context), this.m1());
|
|
4804
4824
|
};
|
|
4805
|
-
protoOf(OptionWithValuesImpl).
|
|
4825
|
+
protoOf(OptionWithValuesImpl).e1v = function (transformValue, transformEach, transformAll, validator, names, metavarGetter, nvalues, helpGetter, hidden, helpTags, valueSourceKey, envvar, valueSplit, completionCandidates, secondaryNames, acceptsNumberValueWithoutName, acceptsUnattachedValue, eager) {
|
|
4806
4826
|
return new OptionWithValuesImpl(names, metavarGetter, nvalues, helpGetter, hidden, helpTags, valueSourceKey, envvar, valueSplit, completionCandidates, secondaryNames, acceptsNumberValueWithoutName, acceptsUnattachedValue, eager, transformValue, transformEach, transformAll, validator);
|
|
4807
4827
|
};
|
|
4808
|
-
protoOf(OptionWithValuesImpl).
|
|
4809
|
-
return new OptionWithValuesImpl(names, metavarGetter, nvalues, helpGetter, hidden, helpTags, valueSourceKey, envvar, valueSplit, completionCandidates, secondaryNames, acceptsNumberValueWithoutName, acceptsUnattachedValue, eager, this.
|
|
4828
|
+
protoOf(OptionWithValuesImpl).f1v = function (validator, names, metavarGetter, nvalues, helpGetter, hidden, helpTags, envvar, valueSourceKey, valueSplit, completionCandidates, secondaryNames, acceptsNumberValueWithoutName, acceptsUnattachedValue, eager) {
|
|
4829
|
+
return new OptionWithValuesImpl(names, metavarGetter, nvalues, helpGetter, hidden, helpTags, valueSourceKey, envvar, valueSplit, completionCandidates, secondaryNames, acceptsNumberValueWithoutName, acceptsUnattachedValue, eager, this.t1v_1, this.u1v_1, this.v1v_1, validator);
|
|
4810
4830
|
};
|
|
4811
4831
|
protoOf(OptionWithValuesImpl).toString = function () {
|
|
4812
4832
|
// Inline function 'kotlin.text.buildString' call
|
|
@@ -4838,8 +4858,8 @@
|
|
|
4838
4858
|
}
|
|
4839
4859
|
return this_0.toString();
|
|
4840
4860
|
};
|
|
4841
|
-
protoOf(OptionWithValuesImpl).
|
|
4842
|
-
return this.
|
|
4861
|
+
protoOf(OptionWithValuesImpl).g1u = function (thisRef, property) {
|
|
4862
|
+
return this.u1u((!(thisRef == null) ? isInterface(thisRef, ParameterHolder) : false) ? thisRef : THROW_CCE(), property);
|
|
4843
4863
|
};
|
|
4844
4864
|
function defaultEachProcessor() {
|
|
4845
4865
|
return defaultEachProcessor$lambda;
|
|
@@ -4908,7 +4928,7 @@
|
|
|
4908
4928
|
tags.p2('default', defaultForHelp);
|
|
4909
4929
|
} else
|
|
4910
4930
|
tags.q2('default');
|
|
4911
|
-
return _this__u8e3s4.
|
|
4931
|
+
return _this__u8e3s4.n1u(_this__u8e3s4.k1u(), _this__u8e3s4.l1u(), transform, defaultValidator_0(), VOID, VOID, VOID, VOID, VOID, tags);
|
|
4912
4932
|
}
|
|
4913
4933
|
function default$lambda($value) {
|
|
4914
4934
|
return function ($this$transformAll, it) {
|
|
@@ -4932,41 +4952,41 @@
|
|
|
4932
4952
|
var message_1 = 'Cannot set nvalues = 1. Use convert() instead.';
|
|
4933
4953
|
throw IllegalArgumentException_init_$Create$(toString_0(message_1));
|
|
4934
4954
|
}
|
|
4935
|
-
var tmp = _this__u8e3s4.
|
|
4955
|
+
var tmp = _this__u8e3s4.k1u();
|
|
4936
4956
|
var tmp_0 = defaultAllProcessor_0();
|
|
4937
4957
|
var tmp_1 = defaultValidator_0();
|
|
4938
4958
|
var tmp_2;
|
|
4939
4959
|
if (nvalues.equals(numberRangeToNumber(0, 0))) {
|
|
4940
4960
|
tmp_2 = transformValues$lambda;
|
|
4941
4961
|
} else {
|
|
4942
|
-
tmp_2 = _this__u8e3s4.
|
|
4962
|
+
tmp_2 = _this__u8e3s4.b1v();
|
|
4943
4963
|
}
|
|
4944
|
-
return _this__u8e3s4.
|
|
4964
|
+
return _this__u8e3s4.n1u(tmp, transform, tmp_0, tmp_1, VOID, tmp_2, nvalues);
|
|
4945
4965
|
}
|
|
4946
4966
|
function transformValues$lambda($this$copy) {
|
|
4947
4967
|
return null;
|
|
4948
4968
|
}
|
|
4949
4969
|
function HelpTransformContext(context) {
|
|
4950
|
-
this.
|
|
4970
|
+
this.e1w_1 = context;
|
|
4951
4971
|
}
|
|
4952
4972
|
protoOf(HelpTransformContext).y8 = function () {
|
|
4953
|
-
return this.
|
|
4973
|
+
return this.e1w_1;
|
|
4954
4974
|
};
|
|
4955
|
-
protoOf(HelpTransformContext).
|
|
4975
|
+
protoOf(HelpTransformContext).p1t = function (message) {
|
|
4956
4976
|
throw new UsageError(message);
|
|
4957
4977
|
};
|
|
4958
4978
|
protoOf(HelpTransformContext).toString = function () {
|
|
4959
|
-
return 'HelpTransformContext(context=' + this.
|
|
4979
|
+
return 'HelpTransformContext(context=' + this.e1w_1.toString() + ')';
|
|
4960
4980
|
};
|
|
4961
4981
|
protoOf(HelpTransformContext).hashCode = function () {
|
|
4962
|
-
return hashCode(this.
|
|
4982
|
+
return hashCode(this.e1w_1);
|
|
4963
4983
|
};
|
|
4964
4984
|
protoOf(HelpTransformContext).equals = function (other) {
|
|
4965
4985
|
if (this === other)
|
|
4966
4986
|
return true;
|
|
4967
4987
|
if (!(other instanceof HelpTransformContext))
|
|
4968
4988
|
return false;
|
|
4969
|
-
if (!equals(this.
|
|
4989
|
+
if (!equals(this.e1w_1, other.e1w_1))
|
|
4970
4990
|
return false;
|
|
4971
4991
|
return true;
|
|
4972
4992
|
};
|
|
@@ -4979,10 +4999,10 @@
|
|
|
4979
4999
|
var tmp = defaultEachProcessor();
|
|
4980
5000
|
var tmp_0 = defaultAllProcessor_0();
|
|
4981
5001
|
var tmp_1 = defaultValidator_0();
|
|
4982
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
5002
|
+
var tmp0_elvis_lhs = _this__u8e3s4.b1v();
|
|
4983
5003
|
var tmp_2 = tmp0_elvis_lhs == null ? metavar_0 : tmp0_elvis_lhs;
|
|
4984
|
-
var tmp1_elvis_lhs = _this__u8e3s4.
|
|
4985
|
-
return _this__u8e3s4.
|
|
5004
|
+
var tmp1_elvis_lhs = _this__u8e3s4.a1v();
|
|
5005
|
+
return _this__u8e3s4.n1u(valueTransform, tmp, tmp_0, tmp_1, VOID, tmp_2, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp1_elvis_lhs == null ? null : tmp1_elvis_lhs);
|
|
4986
5006
|
}
|
|
4987
5007
|
function valueToBool(_this__u8e3s4, value) {
|
|
4988
5008
|
// Inline function 'kotlin.text.lowercase' call
|
|
@@ -5006,7 +5026,7 @@
|
|
|
5006
5026
|
tmp = false;
|
|
5007
5027
|
break;
|
|
5008
5028
|
default:
|
|
5009
|
-
_this__u8e3s4.
|
|
5029
|
+
_this__u8e3s4.p1t(_this__u8e3s4.y8().e1i_1.c1t(value));
|
|
5010
5030
|
break;
|
|
5011
5031
|
}
|
|
5012
5032
|
return tmp;
|
|
@@ -5020,7 +5040,7 @@
|
|
|
5020
5040
|
return function (_this__u8e3s4, it) {
|
|
5021
5041
|
var tmp;
|
|
5022
5042
|
try {
|
|
5023
|
-
var it_0 = $this.
|
|
5043
|
+
var it_0 = $this.k1u()(_this__u8e3s4, it);
|
|
5024
5044
|
tmp = valueToBool(_this__u8e3s4, it_0);
|
|
5025
5045
|
} catch ($p) {
|
|
5026
5046
|
var tmp_0;
|
|
@@ -5031,7 +5051,7 @@
|
|
|
5031
5051
|
var tmp_2;
|
|
5032
5052
|
if (tmp0_elvis_lhs == null) {
|
|
5033
5053
|
// Inline function 'kotlin.takeUnless' call
|
|
5034
|
-
var this_0 = _this__u8e3s4.
|
|
5054
|
+
var this_0 = _this__u8e3s4.p1u_1;
|
|
5035
5055
|
var tmp_3;
|
|
5036
5056
|
// Inline function 'kotlin.text.isEmpty' call
|
|
5037
5057
|
if (!(charSequenceLength(this_0) === 0)) {
|
|
@@ -5044,13 +5064,13 @@
|
|
|
5044
5064
|
tmp_2 = tmp0_elvis_lhs;
|
|
5045
5065
|
}
|
|
5046
5066
|
var tmp1_elvis_lhs = tmp_2;
|
|
5047
|
-
tmp_1.m1m_1 = tmp1_elvis_lhs == null ? longestName(_this__u8e3s4.
|
|
5067
|
+
tmp_1.m1m_1 = tmp1_elvis_lhs == null ? longestName(_this__u8e3s4.q1u_1) : tmp1_elvis_lhs;
|
|
5048
5068
|
throw err;
|
|
5049
5069
|
} else {
|
|
5050
5070
|
if ($p instanceof Exception) {
|
|
5051
5071
|
var err_0 = $p;
|
|
5052
5072
|
var tmp2_elvis_lhs = err_0.message;
|
|
5053
|
-
_this__u8e3s4.
|
|
5073
|
+
_this__u8e3s4.p1t(tmp2_elvis_lhs == null ? '' : tmp2_elvis_lhs);
|
|
5054
5074
|
} else {
|
|
5055
5075
|
throw $p;
|
|
5056
5076
|
}
|
|
@@ -5060,6 +5080,118 @@
|
|
|
5060
5080
|
return tmp;
|
|
5061
5081
|
};
|
|
5062
5082
|
}
|
|
5083
|
+
function choice(_this__u8e3s4, choices, metavar, ignoreCase) {
|
|
5084
|
+
metavar = metavar === VOID ? mvar(choices.n2()) : metavar;
|
|
5085
|
+
ignoreCase = ignoreCase === VOID ? false : ignoreCase;
|
|
5086
|
+
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
5087
|
+
// Inline function 'kotlin.require' call
|
|
5088
|
+
if (!!choices.p()) {
|
|
5089
|
+
var message = 'Must specify at least one choice';
|
|
5090
|
+
throw IllegalArgumentException_init_$Create$(toString_0(message));
|
|
5091
|
+
}
|
|
5092
|
+
var tmp;
|
|
5093
|
+
if (ignoreCase) {
|
|
5094
|
+
// Inline function 'kotlin.collections.mapKeys' call
|
|
5095
|
+
// Inline function 'kotlin.collections.mapKeysTo' call
|
|
5096
|
+
var destination = LinkedHashMap_init_$Create$_0(mapCapacity(choices.d1()));
|
|
5097
|
+
// Inline function 'kotlin.collections.associateByTo' call
|
|
5098
|
+
var _iterator__ex2g4s = choices.k1().r();
|
|
5099
|
+
while (_iterator__ex2g4s.s()) {
|
|
5100
|
+
var element = _iterator__ex2g4s.t();
|
|
5101
|
+
// Inline function 'kotlin.text.lowercase' call
|
|
5102
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
5103
|
+
var tmp_0 = element.l1().toLowerCase();
|
|
5104
|
+
var tmp$ret$9 = element.m1();
|
|
5105
|
+
destination.p2(tmp_0, tmp$ret$9);
|
|
5106
|
+
}
|
|
5107
|
+
tmp = destination;
|
|
5108
|
+
} else {
|
|
5109
|
+
tmp = choices;
|
|
5110
|
+
}
|
|
5111
|
+
var c = tmp;
|
|
5112
|
+
// Inline function 'com.github.ajalt.clikt.parameters.options.convert' call
|
|
5113
|
+
var completionCandidates = new Fixed(choices.n2());
|
|
5114
|
+
// Inline function 'com.github.ajalt.clikt.parameters.options.convert' call
|
|
5115
|
+
var metavar_0 = choice$lambda(metavar);
|
|
5116
|
+
var valueTransform = choice$lambda_0(_this__u8e3s4, c, ignoreCase, choices);
|
|
5117
|
+
var tmp_1 = defaultEachProcessor();
|
|
5118
|
+
var tmp_2 = defaultAllProcessor_0();
|
|
5119
|
+
var tmp_3 = defaultValidator_0();
|
|
5120
|
+
var tmp0_elvis_lhs = _this__u8e3s4.b1v();
|
|
5121
|
+
var tmp_4 = tmp0_elvis_lhs == null ? metavar_0 : tmp0_elvis_lhs;
|
|
5122
|
+
var tmp1_elvis_lhs = _this__u8e3s4.a1v();
|
|
5123
|
+
return _this__u8e3s4.n1u(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);
|
|
5124
|
+
}
|
|
5125
|
+
function mvar(choices) {
|
|
5126
|
+
return joinToString(choices, '|', '(', ')');
|
|
5127
|
+
}
|
|
5128
|
+
function errorMessage(context, choice, choices) {
|
|
5129
|
+
return context.e1i_1.d1t(choice, toList_0(choices.n2()));
|
|
5130
|
+
}
|
|
5131
|
+
function choice$lambda($metavar) {
|
|
5132
|
+
return function ($this$convert) {
|
|
5133
|
+
return $metavar;
|
|
5134
|
+
};
|
|
5135
|
+
}
|
|
5136
|
+
function choice$lambda_0($this, $c, $ignoreCase, $choices) {
|
|
5137
|
+
return function (_this__u8e3s4, it) {
|
|
5138
|
+
var tmp;
|
|
5139
|
+
try {
|
|
5140
|
+
var it_0 = $this.k1u()(_this__u8e3s4, it);
|
|
5141
|
+
var tmp_0;
|
|
5142
|
+
if ($ignoreCase) {
|
|
5143
|
+
// Inline function 'kotlin.text.lowercase' call
|
|
5144
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
5145
|
+
tmp_0 = it_0.toLowerCase();
|
|
5146
|
+
} else {
|
|
5147
|
+
tmp_0 = it_0;
|
|
5148
|
+
}
|
|
5149
|
+
var tmp0_elvis_lhs = $c.m2(tmp_0);
|
|
5150
|
+
var tmp_1;
|
|
5151
|
+
if (tmp0_elvis_lhs == null) {
|
|
5152
|
+
_this__u8e3s4.p1t(errorMessage(_this__u8e3s4.r1u_1, it_0, $choices));
|
|
5153
|
+
} else {
|
|
5154
|
+
tmp_1 = tmp0_elvis_lhs;
|
|
5155
|
+
}
|
|
5156
|
+
tmp = tmp_1;
|
|
5157
|
+
} catch ($p) {
|
|
5158
|
+
var tmp_2;
|
|
5159
|
+
if ($p instanceof UsageError) {
|
|
5160
|
+
var err = $p;
|
|
5161
|
+
var tmp_3 = err;
|
|
5162
|
+
var tmp0_elvis_lhs_0 = err.m1m_1;
|
|
5163
|
+
var tmp_4;
|
|
5164
|
+
if (tmp0_elvis_lhs_0 == null) {
|
|
5165
|
+
// Inline function 'kotlin.takeUnless' call
|
|
5166
|
+
var this_0 = _this__u8e3s4.p1u_1;
|
|
5167
|
+
var tmp_5;
|
|
5168
|
+
// Inline function 'kotlin.text.isEmpty' call
|
|
5169
|
+
if (!(charSequenceLength(this_0) === 0)) {
|
|
5170
|
+
tmp_5 = this_0;
|
|
5171
|
+
} else {
|
|
5172
|
+
tmp_5 = null;
|
|
5173
|
+
}
|
|
5174
|
+
tmp_4 = tmp_5;
|
|
5175
|
+
} else {
|
|
5176
|
+
tmp_4 = tmp0_elvis_lhs_0;
|
|
5177
|
+
}
|
|
5178
|
+
var tmp1_elvis_lhs = tmp_4;
|
|
5179
|
+
tmp_3.m1m_1 = tmp1_elvis_lhs == null ? longestName(_this__u8e3s4.q1u_1) : tmp1_elvis_lhs;
|
|
5180
|
+
throw err;
|
|
5181
|
+
} else {
|
|
5182
|
+
if ($p instanceof Exception) {
|
|
5183
|
+
var err_0 = $p;
|
|
5184
|
+
var tmp2_elvis_lhs = err_0.message;
|
|
5185
|
+
_this__u8e3s4.p1t(tmp2_elvis_lhs == null ? '' : tmp2_elvis_lhs);
|
|
5186
|
+
} else {
|
|
5187
|
+
throw $p;
|
|
5188
|
+
}
|
|
5189
|
+
}
|
|
5190
|
+
tmp = tmp_2;
|
|
5191
|
+
}
|
|
5192
|
+
return tmp;
|
|
5193
|
+
};
|
|
5194
|
+
}
|
|
5063
5195
|
function getInvs($this, invocation) {
|
|
5064
5196
|
// Inline function 'kotlin.collections.partition' call
|
|
5065
5197
|
var this_0 = invocation.a1m_1.k1();
|
|
@@ -5122,7 +5254,7 @@
|
|
|
5122
5254
|
protoOf(CommandLineParser).s1l = function (command, argv) {
|
|
5123
5255
|
return parseArgv(command, argv);
|
|
5124
5256
|
};
|
|
5125
|
-
protoOf(CommandLineParser).
|
|
5257
|
+
protoOf(CommandLineParser).f1w = function (invocation) {
|
|
5126
5258
|
var command = invocation.z1l_1;
|
|
5127
5259
|
var context = command.o1h();
|
|
5128
5260
|
throwCompletionMessageIfRequested(context, command);
|
|
@@ -5132,7 +5264,7 @@
|
|
|
5132
5264
|
finalizeOptions(context, eagerOpts, eagerInvs);
|
|
5133
5265
|
throwErrors(validateParameters(context, eagerInvs.n2()));
|
|
5134
5266
|
};
|
|
5135
|
-
protoOf(CommandLineParser).
|
|
5267
|
+
protoOf(CommandLineParser).g1w = function (invocation) {
|
|
5136
5268
|
var command = invocation.z1l_1;
|
|
5137
5269
|
var context = command.o1h();
|
|
5138
5270
|
var groups = command.w1j();
|
|
@@ -5251,23 +5383,23 @@
|
|
|
5251
5383
|
throw tmp$ret$2;
|
|
5252
5384
|
}
|
|
5253
5385
|
function OptionInvocation(name, values) {
|
|
5254
|
-
this.
|
|
5255
|
-
this.
|
|
5386
|
+
this.b1w_1 = name;
|
|
5387
|
+
this.c1w_1 = values;
|
|
5256
5388
|
}
|
|
5257
|
-
protoOf(OptionInvocation).
|
|
5389
|
+
protoOf(OptionInvocation).h1w = function (name, values) {
|
|
5258
5390
|
return new OptionInvocation(name, values);
|
|
5259
5391
|
};
|
|
5260
|
-
protoOf(OptionInvocation).
|
|
5261
|
-
name = name === VOID ? this.
|
|
5262
|
-
values = values === VOID ? this.
|
|
5263
|
-
return $super === VOID ? this.
|
|
5392
|
+
protoOf(OptionInvocation).d1w = function (name, values, $super) {
|
|
5393
|
+
name = name === VOID ? this.b1w_1 : name;
|
|
5394
|
+
values = values === VOID ? this.c1w_1 : values;
|
|
5395
|
+
return $super === VOID ? this.h1w(name, values) : $super.h1w.call(this, name, values);
|
|
5264
5396
|
};
|
|
5265
5397
|
protoOf(OptionInvocation).toString = function () {
|
|
5266
|
-
return 'OptionInvocation(name=' + this.
|
|
5398
|
+
return 'OptionInvocation(name=' + this.b1w_1 + ', values=' + toString_0(this.c1w_1) + ')';
|
|
5267
5399
|
};
|
|
5268
5400
|
protoOf(OptionInvocation).hashCode = function () {
|
|
5269
|
-
var result = getStringHashCode(this.
|
|
5270
|
-
result = imul(result, 31) + hashCode(this.
|
|
5401
|
+
var result = getStringHashCode(this.b1w_1);
|
|
5402
|
+
result = imul(result, 31) + hashCode(this.c1w_1) | 0;
|
|
5271
5403
|
return result;
|
|
5272
5404
|
};
|
|
5273
5405
|
protoOf(OptionInvocation).equals = function (other) {
|
|
@@ -5275,9 +5407,9 @@
|
|
|
5275
5407
|
return true;
|
|
5276
5408
|
if (!(other instanceof OptionInvocation))
|
|
5277
5409
|
return false;
|
|
5278
|
-
if (!(this.
|
|
5410
|
+
if (!(this.b1w_1 === other.b1w_1))
|
|
5279
5411
|
return false;
|
|
5280
|
-
if (!equals(this.
|
|
5412
|
+
if (!equals(this.c1w_1, other.c1w_1))
|
|
5281
5413
|
return false;
|
|
5282
5414
|
return true;
|
|
5283
5415
|
};
|
|
@@ -5301,9 +5433,9 @@
|
|
|
5301
5433
|
}
|
|
5302
5434
|
function $invoke$yieldSubsCOROUTINE$(_this__u8e3s4, this$0, inv, resultContinuation) {
|
|
5303
5435
|
CoroutineImpl.call(this, resultContinuation);
|
|
5304
|
-
this.
|
|
5305
|
-
this.
|
|
5306
|
-
this.
|
|
5436
|
+
this.q1w_1 = _this__u8e3s4;
|
|
5437
|
+
this.r1w_1 = this$0;
|
|
5438
|
+
this.s1w_1 = inv;
|
|
5307
5439
|
}
|
|
5308
5440
|
protoOf($invoke$yieldSubsCOROUTINE$).a9 = function () {
|
|
5309
5441
|
var suspendResult = this.u8_1;
|
|
@@ -5313,27 +5445,27 @@
|
|
|
5313
5445
|
switch (tmp) {
|
|
5314
5446
|
case 0:
|
|
5315
5447
|
this.t8_1 = 5;
|
|
5316
|
-
this.
|
|
5448
|
+
this.r1w_1.x1l_1.v(this.s1w_1.z1l_1.o1h());
|
|
5317
5449
|
this.s8_1 = 1;
|
|
5318
|
-
suspendResult = this.
|
|
5450
|
+
suspendResult = this.q1w_1.ue(this.s1w_1, this);
|
|
5319
5451
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
5320
5452
|
return suspendResult;
|
|
5321
5453
|
}
|
|
5322
5454
|
|
|
5323
5455
|
continue $sm;
|
|
5324
5456
|
case 1:
|
|
5325
|
-
this.
|
|
5457
|
+
this.t1w_1 = this.s1w_1.c1m_1.r();
|
|
5326
5458
|
this.s8_1 = 2;
|
|
5327
5459
|
continue $sm;
|
|
5328
5460
|
case 2:
|
|
5329
|
-
if (!this.
|
|
5461
|
+
if (!this.t1w_1.s()) {
|
|
5330
5462
|
this.s8_1 = 4;
|
|
5331
5463
|
continue $sm;
|
|
5332
5464
|
}
|
|
5333
5465
|
|
|
5334
|
-
var sub = this.
|
|
5466
|
+
var sub = this.t1w_1.t();
|
|
5335
5467
|
this.s8_1 = 3;
|
|
5336
|
-
suspendResult = invoke$yieldSubs(this.
|
|
5468
|
+
suspendResult = invoke$yieldSubs(this.q1w_1, this.r1w_1, sub, this);
|
|
5337
5469
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
5338
5470
|
return suspendResult;
|
|
5339
5471
|
}
|
|
@@ -5343,7 +5475,7 @@
|
|
|
5343
5475
|
this.s8_1 = 2;
|
|
5344
5476
|
continue $sm;
|
|
5345
5477
|
case 4:
|
|
5346
|
-
removeLast(this.
|
|
5478
|
+
removeLast(this.r1w_1.x1l_1).u3();
|
|
5347
5479
|
return Unit_instance;
|
|
5348
5480
|
case 5:
|
|
5349
5481
|
throw this.v8_1;
|
|
@@ -5360,22 +5492,22 @@
|
|
|
5360
5492
|
while (true);
|
|
5361
5493
|
};
|
|
5362
5494
|
function FlatInvocations$iterator$slambda$lambda(it) {
|
|
5363
|
-
CommandLineParser_instance.
|
|
5495
|
+
CommandLineParser_instance.g1w(it);
|
|
5364
5496
|
return Unit_instance;
|
|
5365
5497
|
}
|
|
5366
5498
|
function FlatInvocations$seq$slambda($root, this$0, resultContinuation) {
|
|
5367
|
-
this.
|
|
5368
|
-
this.
|
|
5499
|
+
this.c1x_1 = $root;
|
|
5500
|
+
this.d1x_1 = this$0;
|
|
5369
5501
|
CoroutineImpl.call(this, resultContinuation);
|
|
5370
5502
|
}
|
|
5371
|
-
protoOf(FlatInvocations$seq$slambda).
|
|
5372
|
-
var tmp = this.
|
|
5503
|
+
protoOf(FlatInvocations$seq$slambda).f1x = function ($this$sequence, $completion) {
|
|
5504
|
+
var tmp = this.g1x($this$sequence, $completion);
|
|
5373
5505
|
tmp.u8_1 = Unit_instance;
|
|
5374
5506
|
tmp.v8_1 = null;
|
|
5375
5507
|
return tmp.a9();
|
|
5376
5508
|
};
|
|
5377
5509
|
protoOf(FlatInvocations$seq$slambda).s9 = function (p1, $completion) {
|
|
5378
|
-
return this.
|
|
5510
|
+
return this.f1x(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
|
|
5379
5511
|
};
|
|
5380
5512
|
protoOf(FlatInvocations$seq$slambda).a9 = function () {
|
|
5381
5513
|
var suspendResult = this.u8_1;
|
|
@@ -5386,7 +5518,7 @@
|
|
|
5386
5518
|
case 0:
|
|
5387
5519
|
this.t8_1 = 2;
|
|
5388
5520
|
this.s8_1 = 1;
|
|
5389
|
-
suspendResult = invoke$yieldSubs(this.
|
|
5521
|
+
suspendResult = invoke$yieldSubs(this.e1x_1, this.d1x_1, this.c1x_1, this);
|
|
5390
5522
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
5391
5523
|
return suspendResult;
|
|
5392
5524
|
}
|
|
@@ -5408,31 +5540,31 @@
|
|
|
5408
5540
|
}
|
|
5409
5541
|
while (true);
|
|
5410
5542
|
};
|
|
5411
|
-
protoOf(FlatInvocations$seq$slambda).
|
|
5412
|
-
var i = new FlatInvocations$seq$slambda(this.
|
|
5413
|
-
i.
|
|
5543
|
+
protoOf(FlatInvocations$seq$slambda).g1x = function ($this$sequence, completion) {
|
|
5544
|
+
var i = new FlatInvocations$seq$slambda(this.c1x_1, this.d1x_1, completion);
|
|
5545
|
+
i.e1x_1 = $this$sequence;
|
|
5414
5546
|
return i;
|
|
5415
5547
|
};
|
|
5416
5548
|
function FlatInvocations$seq$slambda_0($root, this$0, resultContinuation) {
|
|
5417
5549
|
var i = new FlatInvocations$seq$slambda($root, this$0, resultContinuation);
|
|
5418
5550
|
var l = function ($this$sequence, $completion) {
|
|
5419
|
-
return i.
|
|
5551
|
+
return i.f1x($this$sequence, $completion);
|
|
5420
5552
|
};
|
|
5421
5553
|
l.$arity = 1;
|
|
5422
5554
|
return l;
|
|
5423
5555
|
}
|
|
5424
5556
|
function FlatInvocations$iterator$slambda(this$0, resultContinuation) {
|
|
5425
|
-
this.
|
|
5557
|
+
this.p1x_1 = this$0;
|
|
5426
5558
|
CoroutineImpl.call(this, resultContinuation);
|
|
5427
5559
|
}
|
|
5428
|
-
protoOf(FlatInvocations$iterator$slambda).
|
|
5429
|
-
var tmp = this.
|
|
5560
|
+
protoOf(FlatInvocations$iterator$slambda).f1x = function ($this$sequence, $completion) {
|
|
5561
|
+
var tmp = this.g1x($this$sequence, $completion);
|
|
5430
5562
|
tmp.u8_1 = Unit_instance;
|
|
5431
5563
|
tmp.v8_1 = null;
|
|
5432
5564
|
return tmp.a9();
|
|
5433
5565
|
};
|
|
5434
5566
|
protoOf(FlatInvocations$iterator$slambda).s9 = function (p1, $completion) {
|
|
5435
|
-
return this.
|
|
5567
|
+
return this.f1x(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
|
|
5436
5568
|
};
|
|
5437
5569
|
protoOf(FlatInvocations$iterator$slambda).a9 = function () {
|
|
5438
5570
|
var suspendResult = this.u8_1;
|
|
@@ -5442,14 +5574,14 @@
|
|
|
5442
5574
|
switch (tmp) {
|
|
5443
5575
|
case 0:
|
|
5444
5576
|
this.t8_1 = 2;
|
|
5445
|
-
var _iterator__ex2g4s = this.
|
|
5577
|
+
var _iterator__ex2g4s = this.p1x_1.y1l_1.r();
|
|
5446
5578
|
while (_iterator__ex2g4s.s()) {
|
|
5447
5579
|
var element = _iterator__ex2g4s.t();
|
|
5448
|
-
CommandLineParser_instance.
|
|
5580
|
+
CommandLineParser_instance.f1w(element);
|
|
5449
5581
|
}
|
|
5450
5582
|
|
|
5451
5583
|
this.s8_1 = 1;
|
|
5452
|
-
suspendResult = this.
|
|
5584
|
+
suspendResult = this.q1x_1.we(onEach(this.p1x_1.y1l_1, FlatInvocations$iterator$slambda$lambda), this);
|
|
5453
5585
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
5454
5586
|
return suspendResult;
|
|
5455
5587
|
}
|
|
@@ -5471,15 +5603,15 @@
|
|
|
5471
5603
|
}
|
|
5472
5604
|
while (true);
|
|
5473
5605
|
};
|
|
5474
|
-
protoOf(FlatInvocations$iterator$slambda).
|
|
5475
|
-
var i = new FlatInvocations$iterator$slambda(this.
|
|
5476
|
-
i.
|
|
5606
|
+
protoOf(FlatInvocations$iterator$slambda).g1x = function ($this$sequence, completion) {
|
|
5607
|
+
var i = new FlatInvocations$iterator$slambda(this.p1x_1, completion);
|
|
5608
|
+
i.q1x_1 = $this$sequence;
|
|
5477
5609
|
return i;
|
|
5478
5610
|
};
|
|
5479
5611
|
function FlatInvocations$iterator$slambda_0(this$0, resultContinuation) {
|
|
5480
5612
|
var i = new FlatInvocations$iterator$slambda(this$0, resultContinuation);
|
|
5481
5613
|
var l = function ($this$sequence, $completion) {
|
|
5482
|
-
return i.
|
|
5614
|
+
return i.f1x($this$sequence, $completion);
|
|
5483
5615
|
};
|
|
5484
5616
|
l.$arity = 1;
|
|
5485
5617
|
return l;
|
|
@@ -5520,21 +5652,21 @@
|
|
|
5520
5652
|
function parseArgv(rootCommand, originalArgv) {
|
|
5521
5653
|
rootCommand.q1j();
|
|
5522
5654
|
var result = parseCommandArgv(rootCommand, originalArgv, 0);
|
|
5523
|
-
return new CommandLineParseResult(result.
|
|
5655
|
+
return new CommandLineParseResult(result.r1x_1, originalArgv, result.t1x_1);
|
|
5524
5656
|
}
|
|
5525
5657
|
function CommandArgvParseResult(invocation, nextCommand, argv, i) {
|
|
5526
|
-
this.
|
|
5527
|
-
this.
|
|
5528
|
-
this.
|
|
5529
|
-
this.
|
|
5658
|
+
this.r1x_1 = invocation;
|
|
5659
|
+
this.s1x_1 = nextCommand;
|
|
5660
|
+
this.t1x_1 = argv;
|
|
5661
|
+
this.u1x_1 = i;
|
|
5530
5662
|
}
|
|
5531
5663
|
function parseCommandArgv(command, argv, i) {
|
|
5532
|
-
var rootResult = (new CommandParser(command, argv, i)).
|
|
5664
|
+
var rootResult = (new CommandParser(command, argv, i)).q1y();
|
|
5533
5665
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
5534
5666
|
var subcommands = ArrayList_init_$Create$();
|
|
5535
|
-
var nextCommand = rootResult.
|
|
5536
|
-
var nextArgv = rootResult.
|
|
5537
|
-
var nextI = rootResult.
|
|
5667
|
+
var nextCommand = rootResult.s1y_1;
|
|
5668
|
+
var nextArgv = rootResult.v1y_1;
|
|
5669
|
+
var nextI = rootResult.t1y_1;
|
|
5538
5670
|
$l$loop: while (true) {
|
|
5539
5671
|
var tmp;
|
|
5540
5672
|
if (!(nextCommand == null)) {
|
|
@@ -5547,38 +5679,38 @@
|
|
|
5547
5679
|
break $l$loop;
|
|
5548
5680
|
}
|
|
5549
5681
|
var result = parseCommandArgv(nextCommand, nextArgv, nextI);
|
|
5550
|
-
nextCommand = result.
|
|
5551
|
-
nextArgv = result.
|
|
5552
|
-
nextI = result.
|
|
5682
|
+
nextCommand = result.s1x_1;
|
|
5683
|
+
nextArgv = result.t1x_1;
|
|
5684
|
+
nextI = result.u1x_1;
|
|
5553
5685
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
5554
|
-
var element = result.
|
|
5686
|
+
var element = result.r1x_1;
|
|
5555
5687
|
subcommands.v(element);
|
|
5556
5688
|
}
|
|
5557
|
-
return new CommandArgvParseResult(rootResult.
|
|
5689
|
+
return new CommandArgvParseResult(rootResult.y1y(subcommands), nextCommand, nextArgv, nextI);
|
|
5558
5690
|
}
|
|
5559
5691
|
function CommandParseResult(command, nextCommand, i, errors, expandedArgv, optInvocations, argInvocations) {
|
|
5560
|
-
this.
|
|
5561
|
-
this.
|
|
5562
|
-
this.
|
|
5563
|
-
this.
|
|
5564
|
-
this.
|
|
5565
|
-
this.
|
|
5566
|
-
this.
|
|
5692
|
+
this.r1y_1 = command;
|
|
5693
|
+
this.s1y_1 = nextCommand;
|
|
5694
|
+
this.t1y_1 = i;
|
|
5695
|
+
this.u1y_1 = errors;
|
|
5696
|
+
this.v1y_1 = expandedArgv;
|
|
5697
|
+
this.w1y_1 = optInvocations;
|
|
5698
|
+
this.x1y_1 = argInvocations;
|
|
5567
5699
|
}
|
|
5568
|
-
protoOf(CommandParseResult).
|
|
5569
|
-
return new CommandInvocation(this.
|
|
5700
|
+
protoOf(CommandParseResult).y1y = function (subcommands) {
|
|
5701
|
+
return new CommandInvocation(this.r1y_1, this.w1y_1, this.x1y_1, subcommands, this.u1y_1);
|
|
5570
5702
|
};
|
|
5571
5703
|
protoOf(CommandParseResult).toString = function () {
|
|
5572
|
-
return 'CommandParseResult(command=' + toString_0(this.
|
|
5704
|
+
return 'CommandParseResult(command=' + toString_0(this.r1y_1) + ', nextCommand=' + toString_1(this.s1y_1) + ', i=' + this.t1y_1 + ', errors=' + toString_0(this.u1y_1) + ', expandedArgv=' + toString_0(this.v1y_1) + ', optInvocations=' + toString_0(this.w1y_1) + ', argInvocations=' + toString_0(this.x1y_1) + ')';
|
|
5573
5705
|
};
|
|
5574
5706
|
protoOf(CommandParseResult).hashCode = function () {
|
|
5575
|
-
var result = hashCode(this.
|
|
5576
|
-
result = imul(result, 31) + (this.
|
|
5577
|
-
result = imul(result, 31) + this.
|
|
5578
|
-
result = imul(result, 31) + hashCode(this.t1y_1) | 0;
|
|
5707
|
+
var result = hashCode(this.r1y_1);
|
|
5708
|
+
result = imul(result, 31) + (this.s1y_1 == null ? 0 : hashCode(this.s1y_1)) | 0;
|
|
5709
|
+
result = imul(result, 31) + this.t1y_1 | 0;
|
|
5579
5710
|
result = imul(result, 31) + hashCode(this.u1y_1) | 0;
|
|
5580
5711
|
result = imul(result, 31) + hashCode(this.v1y_1) | 0;
|
|
5581
5712
|
result = imul(result, 31) + hashCode(this.w1y_1) | 0;
|
|
5713
|
+
result = imul(result, 31) + hashCode(this.x1y_1) | 0;
|
|
5582
5714
|
return result;
|
|
5583
5715
|
};
|
|
5584
5716
|
protoOf(CommandParseResult).equals = function (other) {
|
|
@@ -5586,13 +5718,11 @@
|
|
|
5586
5718
|
return true;
|
|
5587
5719
|
if (!(other instanceof CommandParseResult))
|
|
5588
5720
|
return false;
|
|
5589
|
-
if (!equals(this.q1y_1, other.q1y_1))
|
|
5590
|
-
return false;
|
|
5591
5721
|
if (!equals(this.r1y_1, other.r1y_1))
|
|
5592
5722
|
return false;
|
|
5593
|
-
if (!(this.s1y_1
|
|
5723
|
+
if (!equals(this.s1y_1, other.s1y_1))
|
|
5594
5724
|
return false;
|
|
5595
|
-
if (!
|
|
5725
|
+
if (!(this.t1y_1 === other.t1y_1))
|
|
5596
5726
|
return false;
|
|
5597
5727
|
if (!equals(this.u1y_1, other.u1y_1))
|
|
5598
5728
|
return false;
|
|
@@ -5600,66 +5730,68 @@
|
|
|
5600
5730
|
return false;
|
|
5601
5731
|
if (!equals(this.w1y_1, other.w1y_1))
|
|
5602
5732
|
return false;
|
|
5733
|
+
if (!equals(this.x1y_1, other.x1y_1))
|
|
5734
|
+
return false;
|
|
5603
5735
|
return true;
|
|
5604
5736
|
};
|
|
5605
5737
|
function _get_canParseSubcommands__hq4fdg($this) {
|
|
5606
|
-
return $this.
|
|
5738
|
+
return $this.g1y_1.d1() >= $this.n1y_1;
|
|
5607
5739
|
}
|
|
5608
5740
|
function consumeTokens($this) {
|
|
5609
|
-
$l$loop: while ($this.
|
|
5610
|
-
var tok = $this.
|
|
5611
|
-
var normTok = $this.
|
|
5741
|
+
$l$loop: while ($this.l1y_1 <= get_lastIndex_0($this.w1x_1)) {
|
|
5742
|
+
var tok = $this.w1x_1.c1($this.l1y_1);
|
|
5743
|
+
var normTok = $this.x1x_1.z1h_1($this.x1x_1, tok);
|
|
5612
5744
|
var prefix = splitOptionPrefix(tok).da_1;
|
|
5613
5745
|
var tmp;
|
|
5614
|
-
if ($this.
|
|
5746
|
+
if ($this.l1y_1 >= $this.m1y_1) {
|
|
5615
5747
|
// Inline function 'kotlin.collections.contains' call
|
|
5616
5748
|
// Inline function 'kotlin.collections.containsKey' call
|
|
5617
|
-
var this_0 = $this.
|
|
5749
|
+
var this_0 = $this.y1x_1;
|
|
5618
5750
|
tmp = (isInterface(this_0, KtMap) ? this_0 : THROW_CCE()).k2(tok);
|
|
5619
5751
|
} else {
|
|
5620
5752
|
tmp = false;
|
|
5621
5753
|
}
|
|
5622
5754
|
if (tmp) {
|
|
5623
|
-
insertTokens($this, getValue($this.
|
|
5755
|
+
insertTokens($this, getValue($this.y1x_1, tok));
|
|
5624
5756
|
} else {
|
|
5625
5757
|
var tmp_0;
|
|
5626
|
-
if ($this.
|
|
5758
|
+
if ($this.p1y_1 && startsWith(tok, '@')) {
|
|
5627
5759
|
// Inline function 'kotlin.collections.contains' call
|
|
5628
5760
|
// Inline function 'kotlin.collections.containsKey' call
|
|
5629
|
-
var this_1 = $this.
|
|
5761
|
+
var this_1 = $this.c1y_1;
|
|
5630
5762
|
tmp_0 = !(isInterface(this_1, KtMap) ? this_1 : THROW_CCE()).k2(normTok);
|
|
5631
5763
|
} else {
|
|
5632
5764
|
tmp_0 = false;
|
|
5633
5765
|
}
|
|
5634
5766
|
if (tmp_0) {
|
|
5635
5767
|
if (startsWith(tok, '@@')) {
|
|
5636
|
-
var tmp0 = $this.
|
|
5768
|
+
var tmp0 = $this.g1y_1;
|
|
5637
5769
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
5638
5770
|
var element = drop(tok, 1);
|
|
5639
5771
|
tmp0.v(element);
|
|
5640
|
-
$this.
|
|
5772
|
+
$this.l1y_1 = $this.l1y_1 + 1 | 0;
|
|
5641
5773
|
} else {
|
|
5642
|
-
insertTokens($this, loadArgFile(drop(normTok, 1), $this.
|
|
5774
|
+
insertTokens($this, loadArgFile(drop(normTok, 1), $this.x1x_1));
|
|
5643
5775
|
}
|
|
5644
5776
|
} else {
|
|
5645
|
-
if ($this.
|
|
5646
|
-
$this.
|
|
5647
|
-
$this.n1y_1 = false;
|
|
5777
|
+
if ($this.o1y_1 && tok === '--') {
|
|
5778
|
+
$this.l1y_1 = $this.l1y_1 + 1 | 0;
|
|
5648
5779
|
$this.o1y_1 = false;
|
|
5780
|
+
$this.p1y_1 = false;
|
|
5649
5781
|
} else {
|
|
5650
|
-
if ($this.
|
|
5782
|
+
if ($this.o1y_1 && (prefix.length > 1 && $this.e1y_1.u1(prefix) || $this.f1y_1.u1(normTok) || isLongOptionWithEquals($this, prefix, tok) || !$this.x1x_1.u1h_1)) {
|
|
5651
5783
|
consumeOptionParse($this, parseLongOpt($this, tok));
|
|
5652
5784
|
} else {
|
|
5653
5785
|
var tmp_1;
|
|
5654
5786
|
var tmp_2;
|
|
5655
|
-
if ($this.
|
|
5787
|
+
if ($this.o1y_1 && tok.length >= 2) {
|
|
5656
5788
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
5657
5789
|
tmp_2 = charSequenceLength(prefix) > 0;
|
|
5658
5790
|
} else {
|
|
5659
5791
|
tmp_2 = false;
|
|
5660
5792
|
}
|
|
5661
5793
|
if (tmp_2) {
|
|
5662
|
-
tmp_1 = $this.
|
|
5794
|
+
tmp_1 = $this.e1y_1.u1(prefix);
|
|
5663
5795
|
} else {
|
|
5664
5796
|
tmp_1 = false;
|
|
5665
5797
|
}
|
|
@@ -5670,21 +5802,21 @@
|
|
|
5670
5802
|
if (_get_canParseSubcommands__hq4fdg($this)) {
|
|
5671
5803
|
// Inline function 'kotlin.collections.contains' call
|
|
5672
5804
|
// Inline function 'kotlin.collections.containsKey' call
|
|
5673
|
-
var this_2 = $this.
|
|
5805
|
+
var this_2 = $this.b1y_1;
|
|
5674
5806
|
tmp_3 = (isInterface(this_2, KtMap) ? this_2 : THROW_CCE()).k2(normTok);
|
|
5675
5807
|
} else {
|
|
5676
5808
|
tmp_3 = false;
|
|
5677
5809
|
}
|
|
5678
5810
|
if (tmp_3) {
|
|
5679
|
-
$this.
|
|
5680
|
-
$this.
|
|
5811
|
+
$this.h1y_1 = getValue($this.b1y_1, normTok);
|
|
5812
|
+
$this.l1y_1 = $this.l1y_1 + 1 | 0;
|
|
5681
5813
|
break $l$loop;
|
|
5682
5814
|
} else {
|
|
5683
|
-
if (!$this.
|
|
5684
|
-
$this.
|
|
5815
|
+
if (!$this.x1x_1.t1h_1)
|
|
5816
|
+
$this.o1y_1 = false;
|
|
5685
5817
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
5686
|
-
$this.
|
|
5687
|
-
$this.
|
|
5818
|
+
$this.g1y_1.v(tok);
|
|
5819
|
+
$this.l1y_1 = $this.l1y_1 + 1 | 0;
|
|
5688
5820
|
}
|
|
5689
5821
|
}
|
|
5690
5822
|
}
|
|
@@ -5695,8 +5827,8 @@
|
|
|
5695
5827
|
}
|
|
5696
5828
|
function printHelpOnEmptyArgsIfNecessary($this) {
|
|
5697
5829
|
var tmp;
|
|
5698
|
-
if ($this.
|
|
5699
|
-
var tmp0 = $this.
|
|
5830
|
+
if ($this.l1y_1 > get_lastIndex_0($this.w1x_1) && $this.v1x_1.g1j()) {
|
|
5831
|
+
var tmp0 = $this.v1x_1.i1h_1;
|
|
5700
5832
|
var tmp$ret$0;
|
|
5701
5833
|
$l$block_0: {
|
|
5702
5834
|
// Inline function 'kotlin.collections.none' call
|
|
@@ -5713,7 +5845,7 @@
|
|
|
5713
5845
|
var _iterator__ex2g4s = tmp0.r();
|
|
5714
5846
|
while (_iterator__ex2g4s.s()) {
|
|
5715
5847
|
var element = _iterator__ex2g4s.t();
|
|
5716
|
-
if (hasEnvvarOrSourcedValue(element, $this.
|
|
5848
|
+
if (hasEnvvarOrSourcedValue(element, $this.x1x_1, emptyList())) {
|
|
5717
5849
|
tmp$ret$0 = false;
|
|
5718
5850
|
break $l$block_0;
|
|
5719
5851
|
}
|
|
@@ -5725,16 +5857,16 @@
|
|
|
5725
5857
|
tmp = false;
|
|
5726
5858
|
}
|
|
5727
5859
|
if (tmp) {
|
|
5728
|
-
var tmp0_0 = $this.
|
|
5860
|
+
var tmp0_0 = $this.k1y_1;
|
|
5729
5861
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
5730
|
-
var element_0 = new PrintHelpMessage($this.
|
|
5862
|
+
var element_0 = new PrintHelpMessage($this.x1x_1, true);
|
|
5731
5863
|
tmp0_0.v(element_0);
|
|
5732
5864
|
return true;
|
|
5733
5865
|
}
|
|
5734
5866
|
return false;
|
|
5735
5867
|
}
|
|
5736
5868
|
function splitOptionPrefixes($this) {
|
|
5737
|
-
var _iterator__ex2g4s = $this.
|
|
5869
|
+
var _iterator__ex2g4s = $this.v1x_1.i1h_1.r();
|
|
5738
5870
|
while (_iterator__ex2g4s.s()) {
|
|
5739
5871
|
var option = _iterator__ex2g4s.t();
|
|
5740
5872
|
var tmp;
|
|
@@ -5759,28 +5891,28 @@
|
|
|
5759
5891
|
while (_iterator__ex2g4s_0.s()) {
|
|
5760
5892
|
var name = _iterator__ex2g4s_0.t();
|
|
5761
5893
|
// Inline function 'kotlin.collections.set' call
|
|
5762
|
-
$this.
|
|
5894
|
+
$this.c1y_1.p2(name, option);
|
|
5763
5895
|
if (name.length > 2) {
|
|
5764
5896
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
5765
|
-
$this.
|
|
5897
|
+
$this.f1y_1.v(name);
|
|
5766
5898
|
}
|
|
5767
|
-
var tmp0 = $this.
|
|
5899
|
+
var tmp0 = $this.e1y_1;
|
|
5768
5900
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
5769
5901
|
var element = splitOptionPrefix(name).da_1;
|
|
5770
5902
|
tmp0.v(element);
|
|
5771
5903
|
}
|
|
5772
5904
|
}
|
|
5773
|
-
$this.
|
|
5905
|
+
$this.e1y_1.w2('');
|
|
5774
5906
|
}
|
|
5775
5907
|
function makeResult($this) {
|
|
5776
5908
|
// Inline function 'kotlin.collections.groupBy' call
|
|
5777
|
-
var tmp0 = $this.
|
|
5909
|
+
var tmp0 = $this.i1y_1;
|
|
5778
5910
|
// Inline function 'kotlin.collections.groupByTo' call
|
|
5779
5911
|
var destination = LinkedHashMap_init_$Create$();
|
|
5780
5912
|
var _iterator__ex2g4s = tmp0.r();
|
|
5781
5913
|
while (_iterator__ex2g4s.s()) {
|
|
5782
5914
|
var element = _iterator__ex2g4s.t();
|
|
5783
|
-
var key = element.
|
|
5915
|
+
var key = element.z1y_1;
|
|
5784
5916
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
5785
5917
|
var value = destination.m2(key);
|
|
5786
5918
|
var tmp;
|
|
@@ -5792,29 +5924,29 @@
|
|
|
5792
5924
|
tmp = value;
|
|
5793
5925
|
}
|
|
5794
5926
|
var list = tmp;
|
|
5795
|
-
var tmp$ret$5 = element.
|
|
5927
|
+
var tmp$ret$5 = element.c1z();
|
|
5796
5928
|
list.v(tmp$ret$5);
|
|
5797
5929
|
}
|
|
5798
5930
|
var opts = destination;
|
|
5799
|
-
var _iterator__ex2g4s_0 = $this.
|
|
5931
|
+
var _iterator__ex2g4s_0 = $this.k1y_1.r();
|
|
5800
5932
|
while (_iterator__ex2g4s_0.s()) {
|
|
5801
5933
|
var e = _iterator__ex2g4s_0.t();
|
|
5802
5934
|
if (e instanceof UsageError) {
|
|
5803
5935
|
var tmp0_elvis_lhs = e.y8();
|
|
5804
|
-
e.p1m(tmp0_elvis_lhs == null ? $this.
|
|
5936
|
+
e.p1m(tmp0_elvis_lhs == null ? $this.x1x_1 : tmp0_elvis_lhs);
|
|
5805
5937
|
}
|
|
5806
|
-
$this.
|
|
5938
|
+
$this.x1x_1.k1i_1 = true;
|
|
5807
5939
|
}
|
|
5808
5940
|
// Inline function 'kotlin.takeIf' call
|
|
5809
|
-
var this_0 = $this.
|
|
5941
|
+
var this_0 = $this.h1y_1;
|
|
5810
5942
|
var tmp_0;
|
|
5811
|
-
if ($this.
|
|
5943
|
+
if ($this.k1y_1.p()) {
|
|
5812
5944
|
tmp_0 = this_0;
|
|
5813
5945
|
} else {
|
|
5814
5946
|
tmp_0 = null;
|
|
5815
5947
|
}
|
|
5816
5948
|
var nextCommand = tmp_0;
|
|
5817
|
-
return new CommandParseResult($this.
|
|
5949
|
+
return new CommandParseResult($this.v1x_1, nextCommand, $this.l1y_1, $this.k1y_1, $this.w1x_1, opts, $this.j1y_1);
|
|
5818
5950
|
}
|
|
5819
5951
|
function isLongOptionWithEquals($this, prefix, token) {
|
|
5820
5952
|
if (!contains_1(token, '='))
|
|
@@ -5824,37 +5956,37 @@
|
|
|
5824
5956
|
return false;
|
|
5825
5957
|
if (prefix.length > 1)
|
|
5826
5958
|
return true;
|
|
5827
|
-
if ($this.
|
|
5959
|
+
if ($this.f1y_1.u1($this.x1x_1.z1h_1($this.x1x_1, substringBefore(token, '='))))
|
|
5828
5960
|
return true;
|
|
5829
|
-
var tmp0 = $this.
|
|
5961
|
+
var tmp0 = $this.c1y_1;
|
|
5830
5962
|
// Inline function 'kotlin.collections.contains' call
|
|
5831
5963
|
// Inline function 'kotlin.collections.containsKey' call
|
|
5832
|
-
var key = $this.
|
|
5964
|
+
var key = $this.x1x_1.z1h_1($this.x1x_1, take(token, 2));
|
|
5833
5965
|
return !(isInterface(tmp0, KtMap) ? tmp0 : THROW_CCE()).k2(key);
|
|
5834
5966
|
}
|
|
5835
5967
|
function consumeOptionParse($this, result) {
|
|
5836
|
-
var tmp0 = $this.
|
|
5968
|
+
var tmp0 = $this.g1y_1;
|
|
5837
5969
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
5838
|
-
var elements = result.
|
|
5970
|
+
var elements = result.e1z_1;
|
|
5839
5971
|
addAll(tmp0, elements);
|
|
5840
|
-
var tmp0_0 = $this.
|
|
5972
|
+
var tmp0_0 = $this.i1y_1;
|
|
5841
5973
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
5842
|
-
var elements_0 = result.
|
|
5974
|
+
var elements_0 = result.f1z_1;
|
|
5843
5975
|
addAll(tmp0_0, elements_0);
|
|
5844
|
-
var tmp0_safe_receiver = result.
|
|
5976
|
+
var tmp0_safe_receiver = result.g1z_1;
|
|
5845
5977
|
if (tmp0_safe_receiver == null)
|
|
5846
5978
|
null;
|
|
5847
5979
|
else {
|
|
5848
5980
|
// Inline function 'kotlin.let' call
|
|
5849
5981
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
5850
|
-
$this.
|
|
5851
|
-
$this.
|
|
5982
|
+
$this.k1y_1.v(tmp0_safe_receiver);
|
|
5983
|
+
$this.x1x_1.k1i_1 = true;
|
|
5852
5984
|
}
|
|
5853
|
-
$this.
|
|
5985
|
+
$this.l1y_1 = $this.l1y_1 + result.d1z_1 | 0;
|
|
5854
5986
|
}
|
|
5855
5987
|
function insertTokens($this, newTokens) {
|
|
5856
|
-
$this.
|
|
5857
|
-
$this.
|
|
5988
|
+
$this.w1x_1 = flatten(listOf([take_0($this.w1x_1, $this.l1y_1), newTokens, drop_0($this.w1x_1, $this.l1y_1 + 1 | 0)]));
|
|
5989
|
+
$this.m1y_1 = $this.l1y_1 + newTokens.d1() | 0;
|
|
5858
5990
|
}
|
|
5859
5991
|
function parseLongOpt($this, tok) {
|
|
5860
5992
|
var equalsIndex = indexOf(tok, _Char___init__impl__6a9atx(61));
|
|
@@ -5867,17 +5999,17 @@
|
|
|
5867
5999
|
var _destruct__k2r9zo = tmp;
|
|
5868
6000
|
var name = _destruct__k2r9zo.fa();
|
|
5869
6001
|
var attachedValue = _destruct__k2r9zo.ga();
|
|
5870
|
-
name = $this.
|
|
5871
|
-
var tmp0_elvis_lhs = $this.
|
|
6002
|
+
name = $this.x1x_1.z1h_1($this.x1x_1, name);
|
|
6003
|
+
var tmp0_elvis_lhs = $this.c1y_1.m2(name);
|
|
5872
6004
|
var tmp_0;
|
|
5873
6005
|
if (tmp0_elvis_lhs == null) {
|
|
5874
6006
|
var tmp_1;
|
|
5875
|
-
if ($this.
|
|
6007
|
+
if ($this.v1x_1.k1j()) {
|
|
5876
6008
|
return new OptParseResult(1, listOf_0(tok));
|
|
5877
6009
|
} else {
|
|
5878
6010
|
var tmp_2 = name;
|
|
5879
6011
|
// Inline function 'kotlin.collections.filterNot' call
|
|
5880
|
-
var tmp0 = $this.
|
|
6012
|
+
var tmp0 = $this.c1y_1;
|
|
5881
6013
|
// Inline function 'kotlin.collections.filterNotTo' call
|
|
5882
6014
|
var destination = LinkedHashMap_init_$Create$();
|
|
5883
6015
|
// Inline function 'kotlin.collections.iterator' call
|
|
@@ -5888,7 +6020,7 @@
|
|
|
5888
6020
|
destination.p2(element.l1(), element.m1());
|
|
5889
6021
|
}
|
|
5890
6022
|
}
|
|
5891
|
-
var possibilities = $this.
|
|
6023
|
+
var possibilities = $this.x1x_1.d1i_1(tmp_2, toList_0(destination.n2()));
|
|
5892
6024
|
return new OptParseResult(1, VOID, VOID, createNoSuchOption($this, name, possibilities));
|
|
5893
6025
|
}
|
|
5894
6026
|
} else {
|
|
@@ -5900,7 +6032,7 @@
|
|
|
5900
6032
|
function parseShortOpt($this, tok) {
|
|
5901
6033
|
var prefix = toString(charCodeAt(tok, 0));
|
|
5902
6034
|
var tmp;
|
|
5903
|
-
if (!($this.
|
|
6035
|
+
if (!($this.d1y_1 == null)) {
|
|
5904
6036
|
var tmp0 = drop(tok, 1);
|
|
5905
6037
|
var tmp$ret$0;
|
|
5906
6038
|
$l$block: {
|
|
@@ -5921,7 +6053,7 @@
|
|
|
5921
6053
|
tmp = false;
|
|
5922
6054
|
}
|
|
5923
6055
|
if (tmp) {
|
|
5924
|
-
return OptParseResult_init_$Create$_0(1, $this.
|
|
6056
|
+
return OptParseResult_init_$Create$_0(1, $this.d1y_1, '', listOf_0(drop(tok, 1)));
|
|
5925
6057
|
}
|
|
5926
6058
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
5927
6059
|
var invocations = ArrayList_init_$Create$();
|
|
@@ -5933,18 +6065,18 @@
|
|
|
5933
6065
|
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
5934
6066
|
if (i === 0)
|
|
5935
6067
|
continue $l$loop;
|
|
5936
|
-
var name = $this.
|
|
5937
|
-
var tmp0_elvis_lhs = $this.
|
|
6068
|
+
var name = $this.x1x_1.z1h_1($this.x1x_1, prefix + toString(opt));
|
|
6069
|
+
var tmp0_elvis_lhs = $this.c1y_1.m2(name);
|
|
5938
6070
|
var tmp_0;
|
|
5939
6071
|
if (tmp0_elvis_lhs == null) {
|
|
5940
6072
|
var tmp_1;
|
|
5941
|
-
if ($this.
|
|
6073
|
+
if ($this.v1x_1.k1j()) {
|
|
5942
6074
|
return new OptParseResult(1, listOf_0(tok));
|
|
5943
6075
|
} else {
|
|
5944
6076
|
var tmp_2;
|
|
5945
6077
|
var tmp_3;
|
|
5946
6078
|
if (prefix === '-') {
|
|
5947
|
-
var tmp0_0 = $this.
|
|
6079
|
+
var tmp0_0 = $this.c1y_1;
|
|
5948
6080
|
// Inline function 'kotlin.collections.contains' call
|
|
5949
6081
|
// Inline function 'kotlin.collections.containsKey' call
|
|
5950
6082
|
var key = '-' + tok;
|
|
@@ -5967,7 +6099,7 @@
|
|
|
5967
6099
|
if (option.q1i().p1_1 > 0) {
|
|
5968
6100
|
var value = i < get_lastIndex(tok) ? drop(tok, i + 1 | 0) : null;
|
|
5969
6101
|
var result = parseOptValues($this, option, name, value);
|
|
5970
|
-
return result.
|
|
6102
|
+
return result.h1z(VOID, VOID, plus_0(invocations, result.f1z_1));
|
|
5971
6103
|
} else {
|
|
5972
6104
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
5973
6105
|
var element_0 = new OptInvocation(option, name, emptyList());
|
|
@@ -5979,7 +6111,7 @@
|
|
|
5979
6111
|
function createNoSuchOption($this, name, possibilities) {
|
|
5980
6112
|
if (possibilities.p()) {
|
|
5981
6113
|
// Inline function 'kotlin.collections.find' call
|
|
5982
|
-
var tmp0 = $this.
|
|
6114
|
+
var tmp0 = $this.b1y_1.o2();
|
|
5983
6115
|
var tmp$ret$1;
|
|
5984
6116
|
$l$block_1: {
|
|
5985
6117
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
@@ -6032,13 +6164,13 @@
|
|
|
6032
6164
|
} else if (!option.h1m()) {
|
|
6033
6165
|
return OptParseResult_init_$Create$_0(1, option, name, emptyList());
|
|
6034
6166
|
}
|
|
6035
|
-
var inductionVariable = $this.
|
|
6036
|
-
var last = get_lastIndex_0($this.
|
|
6167
|
+
var inductionVariable = $this.l1y_1 + 1 | 0;
|
|
6168
|
+
var last = get_lastIndex_0($this.w1x_1);
|
|
6037
6169
|
if (inductionVariable <= last)
|
|
6038
6170
|
$l$loop_0: do {
|
|
6039
6171
|
var j = inductionVariable;
|
|
6040
6172
|
inductionVariable = inductionVariable + 1 | 0;
|
|
6041
|
-
var tok = $this.
|
|
6173
|
+
var tok = $this.w1x_1.c1(j);
|
|
6042
6174
|
if (values.d1() >= option.q1i().p1_1)
|
|
6043
6175
|
break $l$loop_0;
|
|
6044
6176
|
var tmp;
|
|
@@ -6051,7 +6183,7 @@
|
|
|
6051
6183
|
} else {
|
|
6052
6184
|
// Inline function 'kotlin.collections.contains' call
|
|
6053
6185
|
// Inline function 'kotlin.collections.containsKey' call
|
|
6054
|
-
var this_0 = $this.
|
|
6186
|
+
var this_0 = $this.c1y_1;
|
|
6055
6187
|
tmp_2 = (isInterface(this_0, KtMap) ? this_0 : THROW_CCE()).k2(tok);
|
|
6056
6188
|
}
|
|
6057
6189
|
if (tmp_2) {
|
|
@@ -6059,14 +6191,14 @@
|
|
|
6059
6191
|
} else {
|
|
6060
6192
|
// Inline function 'kotlin.collections.contains' call
|
|
6061
6193
|
// Inline function 'kotlin.collections.containsKey' call
|
|
6062
|
-
var this_1 = $this.
|
|
6194
|
+
var this_1 = $this.b1y_1;
|
|
6063
6195
|
tmp_1 = (isInterface(this_1, KtMap) ? this_1 : THROW_CCE()).k2(tok);
|
|
6064
6196
|
}
|
|
6065
6197
|
if (tmp_1) {
|
|
6066
6198
|
tmp_0 = true;
|
|
6067
6199
|
} else {
|
|
6068
6200
|
var tmp_3;
|
|
6069
|
-
if (!$this.
|
|
6201
|
+
if (!$this.v1x_1.k1j()) {
|
|
6070
6202
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
6071
6203
|
var this_2 = splitOptionPrefix(tok).da_1;
|
|
6072
6204
|
tmp_3 = charSequenceLength(this_2) > 0;
|
|
@@ -6090,7 +6222,7 @@
|
|
|
6090
6222
|
}
|
|
6091
6223
|
function parseArguments($this) {
|
|
6092
6224
|
// Inline function 'kotlin.collections.takeWhile' call
|
|
6093
|
-
var this_0 = asReversed_0($this.
|
|
6225
|
+
var this_0 = asReversed_0($this.v1x_1.j1h_1);
|
|
6094
6226
|
var list = ArrayList_init_$Create$();
|
|
6095
6227
|
var _iterator__ex2g4s = this_0.r();
|
|
6096
6228
|
$l$loop: while (_iterator__ex2g4s.s()) {
|
|
@@ -6109,25 +6241,25 @@
|
|
|
6109
6241
|
}
|
|
6110
6242
|
var endSize = sum;
|
|
6111
6243
|
var tokenI = 0;
|
|
6112
|
-
var _iterator__ex2g4s_1 = $this.
|
|
6244
|
+
var _iterator__ex2g4s_1 = $this.v1x_1.j1h_1.r();
|
|
6113
6245
|
while (_iterator__ex2g4s_1.s()) {
|
|
6114
6246
|
var argument = _iterator__ex2g4s_1.t();
|
|
6115
|
-
var remaining = $this.
|
|
6247
|
+
var remaining = $this.g1y_1.d1() - tokenI | 0;
|
|
6116
6248
|
var tmp_0;
|
|
6117
6249
|
if (argument.q1i() <= 0) {
|
|
6118
|
-
var tmp0 = argument.
|
|
6250
|
+
var tmp0 = argument.m1t() ? 1 : 0;
|
|
6119
6251
|
// Inline function 'kotlin.comparisons.maxOf' call
|
|
6120
6252
|
var b = remaining - endSize | 0;
|
|
6121
6253
|
tmp_0 = Math.max(tmp0, b);
|
|
6122
|
-
} else if (argument.q1i() > 0 && !argument.
|
|
6254
|
+
} else if (argument.q1i() > 0 && !argument.m1t() && remaining === 0) {
|
|
6123
6255
|
tmp_0 = 0;
|
|
6124
6256
|
} else {
|
|
6125
6257
|
tmp_0 = argument.q1i();
|
|
6126
6258
|
}
|
|
6127
6259
|
var consumed = tmp_0;
|
|
6128
|
-
var toIndex = coerceAtMost(tokenI + consumed | 0, $this.
|
|
6129
|
-
var values = $this.
|
|
6130
|
-
var tmp0_0 = $this.
|
|
6260
|
+
var toIndex = coerceAtMost(tokenI + consumed | 0, $this.g1y_1.d1());
|
|
6261
|
+
var values = $this.g1y_1.i2(tokenI, toIndex);
|
|
6262
|
+
var tmp0_0 = $this.j1y_1;
|
|
6131
6263
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
6132
6264
|
var element_0 = new ArgumentInvocation(argument, values);
|
|
6133
6265
|
tmp0_0.v(element_0);
|
|
@@ -6136,39 +6268,39 @@
|
|
|
6136
6268
|
}
|
|
6137
6269
|
tokenI = tokenI + consumed | 0;
|
|
6138
6270
|
}
|
|
6139
|
-
handleExcessArgs($this, $this.
|
|
6271
|
+
handleExcessArgs($this, $this.g1y_1.d1() - tokenI | 0);
|
|
6140
6272
|
}
|
|
6141
6273
|
function handleExcessArgs($this, excessCount) {
|
|
6142
6274
|
if (excessCount !== 0) {
|
|
6143
6275
|
var tmp;
|
|
6144
6276
|
if (excessCount === 1) {
|
|
6145
6277
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
6146
|
-
tmp = !$this.
|
|
6278
|
+
tmp = !$this.a1y_1.p();
|
|
6147
6279
|
} else {
|
|
6148
6280
|
tmp = false;
|
|
6149
6281
|
}
|
|
6150
6282
|
if (tmp) {
|
|
6151
|
-
var actual = last($this.
|
|
6152
|
-
var possibilities = $this.
|
|
6153
|
-
var tmp0 = $this.
|
|
6283
|
+
var actual = last($this.g1y_1);
|
|
6284
|
+
var possibilities = $this.v1x_1.o1h().d1i_1(actual, toList_0($this.a1y_1.n2()));
|
|
6285
|
+
var tmp0 = $this.k1y_1;
|
|
6154
6286
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
6155
6287
|
var element = new NoSuchSubcommand(actual, possibilities);
|
|
6156
6288
|
tmp0.v(element);
|
|
6157
6289
|
} else {
|
|
6158
|
-
var tmp0_0 = $this.
|
|
6290
|
+
var tmp0_0 = $this.k1y_1;
|
|
6159
6291
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
6160
|
-
var element_0 = new NoSuchArgument(takeLast($this.
|
|
6292
|
+
var element_0 = new NoSuchArgument(takeLast($this.g1y_1, excessCount));
|
|
6161
6293
|
tmp0_0.v(element_0);
|
|
6162
6294
|
}
|
|
6163
6295
|
}
|
|
6164
6296
|
}
|
|
6165
6297
|
function CommandParser(command, argv, startingIndex) {
|
|
6166
|
-
this.
|
|
6167
|
-
this.
|
|
6168
|
-
this.
|
|
6169
|
-
this.
|
|
6298
|
+
this.v1x_1 = command;
|
|
6299
|
+
this.w1x_1 = argv;
|
|
6300
|
+
this.x1x_1 = this.v1x_1.o1h();
|
|
6301
|
+
this.y1x_1 = this.v1x_1.s1i();
|
|
6170
6302
|
var tmp = this;
|
|
6171
|
-
var tmp0 = ancestors(this.
|
|
6303
|
+
var tmp0 = ancestors(this.x1x_1);
|
|
6172
6304
|
var tmp$ret$0;
|
|
6173
6305
|
$l$block: {
|
|
6174
6306
|
// Inline function 'kotlin.sequences.firstOrNull' call
|
|
@@ -6203,10 +6335,10 @@
|
|
|
6203
6335
|
tmp_0 = destination;
|
|
6204
6336
|
}
|
|
6205
6337
|
var tmp3_elvis_lhs = tmp_0;
|
|
6206
|
-
tmp.
|
|
6338
|
+
tmp.z1x_1 = tmp3_elvis_lhs == null ? emptyMap() : tmp3_elvis_lhs;
|
|
6207
6339
|
var tmp_1 = this;
|
|
6208
6340
|
// Inline function 'kotlin.collections.associateBy' call
|
|
6209
|
-
var this_0 = this.
|
|
6341
|
+
var this_0 = this.v1x_1.h1h_1;
|
|
6210
6342
|
var capacity_0 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
6211
6343
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
6212
6344
|
var destination_0 = LinkedHashMap_init_$Create$_0(capacity_0);
|
|
@@ -6216,14 +6348,14 @@
|
|
|
6216
6348
|
var tmp$ret$8 = element_1.z1g_1;
|
|
6217
6349
|
destination_0.p2(tmp$ret$8, element_1);
|
|
6218
6350
|
}
|
|
6219
|
-
tmp_1.
|
|
6220
|
-
this.
|
|
6351
|
+
tmp_1.a1y_1 = destination_0;
|
|
6352
|
+
this.b1y_1 = plus_3(this.z1x_1, this.a1y_1);
|
|
6221
6353
|
var tmp_2 = this;
|
|
6222
6354
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
6223
|
-
tmp_2.
|
|
6355
|
+
tmp_2.c1y_1 = LinkedHashMap_init_$Create$();
|
|
6224
6356
|
var tmp_3 = this;
|
|
6225
6357
|
// Inline function 'kotlin.collections.find' call
|
|
6226
|
-
var tmp0_0 = this.
|
|
6358
|
+
var tmp0_0 = this.v1x_1.i1h_1;
|
|
6227
6359
|
var tmp$ret$11;
|
|
6228
6360
|
$l$block_0: {
|
|
6229
6361
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
@@ -6237,42 +6369,42 @@
|
|
|
6237
6369
|
}
|
|
6238
6370
|
tmp$ret$11 = null;
|
|
6239
6371
|
}
|
|
6240
|
-
tmp_3.
|
|
6372
|
+
tmp_3.d1y_1 = tmp$ret$11;
|
|
6241
6373
|
var tmp_4 = this;
|
|
6242
6374
|
// Inline function 'kotlin.collections.mutableSetOf' call
|
|
6243
|
-
tmp_4.
|
|
6375
|
+
tmp_4.e1y_1 = LinkedHashSet_init_$Create$();
|
|
6244
6376
|
var tmp_5 = this;
|
|
6245
6377
|
// Inline function 'kotlin.collections.mutableSetOf' call
|
|
6246
|
-
tmp_5.
|
|
6378
|
+
tmp_5.f1y_1 = LinkedHashSet_init_$Create$();
|
|
6247
6379
|
var tmp_6 = this;
|
|
6248
6380
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
6249
|
-
tmp_6.
|
|
6250
|
-
this.
|
|
6381
|
+
tmp_6.g1y_1 = ArrayList_init_$Create$();
|
|
6382
|
+
this.h1y_1 = null;
|
|
6251
6383
|
var tmp_7 = this;
|
|
6252
6384
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
6253
|
-
tmp_7.
|
|
6385
|
+
tmp_7.i1y_1 = ArrayList_init_$Create$();
|
|
6254
6386
|
var tmp_8 = this;
|
|
6255
6387
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
6256
|
-
tmp_8.
|
|
6388
|
+
tmp_8.j1y_1 = ArrayList_init_$Create$();
|
|
6257
6389
|
var tmp_9 = this;
|
|
6258
6390
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
6259
|
-
tmp_9.
|
|
6260
|
-
this.
|
|
6261
|
-
this.
|
|
6391
|
+
tmp_9.k1y_1 = ArrayList_init_$Create$();
|
|
6392
|
+
this.l1y_1 = startingIndex;
|
|
6393
|
+
this.m1y_1 = this.l1y_1;
|
|
6262
6394
|
var tmp_10 = this;
|
|
6263
6395
|
// Inline function 'kotlin.collections.sumOf' call
|
|
6264
6396
|
var sum = 0;
|
|
6265
|
-
var _iterator__ex2g4s_3 = this.
|
|
6397
|
+
var _iterator__ex2g4s_3 = this.v1x_1.j1h_1.r();
|
|
6266
6398
|
while (_iterator__ex2g4s_3.s()) {
|
|
6267
6399
|
var element_3 = _iterator__ex2g4s_3.t();
|
|
6268
6400
|
var tmp_11 = sum;
|
|
6269
|
-
sum = tmp_11 + (element_3.
|
|
6401
|
+
sum = tmp_11 + (element_3.m1t() ? coerceAtLeast(element_3.q1i(), 0) : 0) | 0;
|
|
6270
6402
|
}
|
|
6271
|
-
tmp_10.
|
|
6272
|
-
this.
|
|
6273
|
-
this.
|
|
6403
|
+
tmp_10.n1y_1 = sum;
|
|
6404
|
+
this.o1y_1 = true;
|
|
6405
|
+
this.p1y_1 = this.x1x_1.a1l();
|
|
6274
6406
|
}
|
|
6275
|
-
protoOf(CommandParser).
|
|
6407
|
+
protoOf(CommandParser).q1y = function () {
|
|
6276
6408
|
splitOptionPrefixes(this);
|
|
6277
6409
|
if (printHelpOnEmptyArgsIfNecessary(this))
|
|
6278
6410
|
return makeResult(this);
|
|
@@ -6281,20 +6413,20 @@
|
|
|
6281
6413
|
return makeResult(this);
|
|
6282
6414
|
};
|
|
6283
6415
|
function OptInvocation(opt, name, values) {
|
|
6284
|
-
this.
|
|
6285
|
-
this.
|
|
6286
|
-
this.
|
|
6416
|
+
this.z1y_1 = opt;
|
|
6417
|
+
this.a1z_1 = name;
|
|
6418
|
+
this.b1z_1 = values;
|
|
6287
6419
|
}
|
|
6288
|
-
protoOf(OptInvocation).
|
|
6289
|
-
return new OptionInvocation(this.
|
|
6420
|
+
protoOf(OptInvocation).c1z = function () {
|
|
6421
|
+
return new OptionInvocation(this.a1z_1, this.b1z_1);
|
|
6290
6422
|
};
|
|
6291
6423
|
protoOf(OptInvocation).toString = function () {
|
|
6292
|
-
return 'OptInvocation(opt=' + toString_0(this.
|
|
6424
|
+
return 'OptInvocation(opt=' + toString_0(this.z1y_1) + ', name=' + this.a1z_1 + ', values=' + toString_0(this.b1z_1) + ')';
|
|
6293
6425
|
};
|
|
6294
6426
|
protoOf(OptInvocation).hashCode = function () {
|
|
6295
|
-
var result = hashCode(this.
|
|
6296
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
6297
|
-
result = imul(result, 31) + hashCode(this.
|
|
6427
|
+
var result = hashCode(this.z1y_1);
|
|
6428
|
+
result = imul(result, 31) + getStringHashCode(this.a1z_1) | 0;
|
|
6429
|
+
result = imul(result, 31) + hashCode(this.b1z_1) | 0;
|
|
6298
6430
|
return result;
|
|
6299
6431
|
};
|
|
6300
6432
|
protoOf(OptInvocation).equals = function (other) {
|
|
@@ -6302,11 +6434,11 @@
|
|
|
6302
6434
|
return true;
|
|
6303
6435
|
if (!(other instanceof OptInvocation))
|
|
6304
6436
|
return false;
|
|
6305
|
-
if (!equals(this.
|
|
6437
|
+
if (!equals(this.z1y_1, other.z1y_1))
|
|
6306
6438
|
return false;
|
|
6307
|
-
if (!(this.
|
|
6439
|
+
if (!(this.a1z_1 === other.a1z_1))
|
|
6308
6440
|
return false;
|
|
6309
|
-
if (!equals(this.
|
|
6441
|
+
if (!equals(this.b1z_1, other.b1z_1))
|
|
6310
6442
|
return false;
|
|
6311
6443
|
return true;
|
|
6312
6444
|
};
|
|
@@ -6331,29 +6463,29 @@
|
|
|
6331
6463
|
unknown = unknown === VOID ? emptyList() : unknown;
|
|
6332
6464
|
known = known === VOID ? emptyList() : known;
|
|
6333
6465
|
err = err === VOID ? null : err;
|
|
6334
|
-
this.
|
|
6335
|
-
this.
|
|
6336
|
-
this.
|
|
6337
|
-
this.
|
|
6466
|
+
this.d1z_1 = consumed;
|
|
6467
|
+
this.e1z_1 = unknown;
|
|
6468
|
+
this.f1z_1 = known;
|
|
6469
|
+
this.g1z_1 = err;
|
|
6338
6470
|
}
|
|
6339
|
-
protoOf(OptParseResult).
|
|
6471
|
+
protoOf(OptParseResult).i1z = function (consumed, unknown, known, err) {
|
|
6340
6472
|
return new OptParseResult(consumed, unknown, known, err);
|
|
6341
6473
|
};
|
|
6342
|
-
protoOf(OptParseResult).
|
|
6343
|
-
consumed = consumed === VOID ? this.
|
|
6344
|
-
unknown = unknown === VOID ? this.
|
|
6345
|
-
known = known === VOID ? this.
|
|
6346
|
-
err = err === VOID ? this.
|
|
6347
|
-
return $super === VOID ? this.
|
|
6474
|
+
protoOf(OptParseResult).h1z = function (consumed, unknown, known, err, $super) {
|
|
6475
|
+
consumed = consumed === VOID ? this.d1z_1 : consumed;
|
|
6476
|
+
unknown = unknown === VOID ? this.e1z_1 : unknown;
|
|
6477
|
+
known = known === VOID ? this.f1z_1 : known;
|
|
6478
|
+
err = err === VOID ? this.g1z_1 : err;
|
|
6479
|
+
return $super === VOID ? this.i1z(consumed, unknown, known, err) : $super.i1z.call(this, consumed, unknown, known, err);
|
|
6348
6480
|
};
|
|
6349
6481
|
protoOf(OptParseResult).toString = function () {
|
|
6350
|
-
return 'OptParseResult(consumed=' + this.
|
|
6482
|
+
return 'OptParseResult(consumed=' + this.d1z_1 + ', unknown=' + toString_0(this.e1z_1) + ', known=' + toString_0(this.f1z_1) + ', err=' + toString_1(this.g1z_1) + ')';
|
|
6351
6483
|
};
|
|
6352
6484
|
protoOf(OptParseResult).hashCode = function () {
|
|
6353
|
-
var result = this.
|
|
6354
|
-
result = imul(result, 31) + hashCode(this.d1z_1) | 0;
|
|
6485
|
+
var result = this.d1z_1;
|
|
6355
6486
|
result = imul(result, 31) + hashCode(this.e1z_1) | 0;
|
|
6356
|
-
result = imul(result, 31) +
|
|
6487
|
+
result = imul(result, 31) + hashCode(this.f1z_1) | 0;
|
|
6488
|
+
result = imul(result, 31) + (this.g1z_1 == null ? 0 : hashCode(this.g1z_1)) | 0;
|
|
6357
6489
|
return result;
|
|
6358
6490
|
};
|
|
6359
6491
|
protoOf(OptParseResult).equals = function (other) {
|
|
@@ -6361,14 +6493,14 @@
|
|
|
6361
6493
|
return true;
|
|
6362
6494
|
if (!(other instanceof OptParseResult))
|
|
6363
6495
|
return false;
|
|
6364
|
-
if (!(this.
|
|
6365
|
-
return false;
|
|
6366
|
-
if (!equals(this.d1z_1, other.d1z_1))
|
|
6496
|
+
if (!(this.d1z_1 === other.d1z_1))
|
|
6367
6497
|
return false;
|
|
6368
6498
|
if (!equals(this.e1z_1, other.e1z_1))
|
|
6369
6499
|
return false;
|
|
6370
6500
|
if (!equals(this.f1z_1, other.f1z_1))
|
|
6371
6501
|
return false;
|
|
6502
|
+
if (!equals(this.g1z_1, other.g1z_1))
|
|
6503
|
+
return false;
|
|
6372
6504
|
return true;
|
|
6373
6505
|
};
|
|
6374
6506
|
function shlex(filename, text, localization) {
|
|
@@ -6510,9 +6642,10 @@
|
|
|
6510
6642
|
protoOf(defaultLocalization$1).z1n = extraArgumentMany;
|
|
6511
6643
|
protoOf(defaultLocalization$1).b1t = invalidFlagValueInFile;
|
|
6512
6644
|
protoOf(defaultLocalization$1).c1t = boolConversionError;
|
|
6513
|
-
protoOf(defaultLocalization$1).d1t =
|
|
6645
|
+
protoOf(defaultLocalization$1).d1t = invalidChoice;
|
|
6646
|
+
protoOf(defaultLocalization$1).e1t = stringMetavar;
|
|
6514
6647
|
protoOf(defaultLocalization$1).w1s = intMetavar;
|
|
6515
|
-
protoOf(defaultLocalization$1).
|
|
6648
|
+
protoOf(defaultLocalization$1).f1t = usageTitle;
|
|
6516
6649
|
protoOf(defaultLocalization$1).b1s = optionsTitle;
|
|
6517
6650
|
protoOf(defaultLocalization$1).n1s = argumentsTitle;
|
|
6518
6651
|
protoOf(defaultLocalization$1).s1s = commandsTitle;
|
|
@@ -6522,9 +6655,9 @@
|
|
|
6522
6655
|
protoOf(defaultLocalization$1).t1s = helpTagDefault;
|
|
6523
6656
|
protoOf(defaultLocalization$1).u1s = helpTagRequired;
|
|
6524
6657
|
protoOf(defaultLocalization$1).p1j = helpOptionMessage;
|
|
6525
|
-
protoOf(OptionWithValuesImpl).
|
|
6526
|
-
protoOf(OptionWithValuesImpl).
|
|
6527
|
-
protoOf(OptionWithValuesImpl).
|
|
6658
|
+
protoOf(OptionWithValuesImpl).n1u = copy$default;
|
|
6659
|
+
protoOf(OptionWithValuesImpl).o1u = copy$default_0;
|
|
6660
|
+
protoOf(OptionWithValuesImpl).u1u = getValue_0;
|
|
6528
6661
|
protoOf(OptionWithValuesImpl).s1j = parameterHelp;
|
|
6529
6662
|
//endregion
|
|
6530
6663
|
//region block: init
|
|
@@ -6538,18 +6671,18 @@
|
|
|
6538
6671
|
//endregion
|
|
6539
6672
|
//region block: exports
|
|
6540
6673
|
_.$_$ = _.$_$ || {};
|
|
6541
|
-
_.$_$.a =
|
|
6542
|
-
_.$_$.b =
|
|
6543
|
-
_.$_$.c =
|
|
6544
|
-
_.$_$.d =
|
|
6545
|
-
_.$_$.e =
|
|
6546
|
-
_.$_$.f =
|
|
6547
|
-
_.$_$.g =
|
|
6548
|
-
_.$_$.h =
|
|
6549
|
-
_.$_$.i =
|
|
6550
|
-
_.$_$.j =
|
|
6551
|
-
_.$_$.k =
|
|
6552
|
-
_.$_$.l =
|
|
6674
|
+
_.$_$.a = CoreCliktCommand;
|
|
6675
|
+
_.$_$.b = FileNotFound;
|
|
6676
|
+
_.$_$.c = PrintMessage;
|
|
6677
|
+
_.$_$.d = main;
|
|
6678
|
+
_.$_$.e = selfAndAncestors;
|
|
6679
|
+
_.$_$.f = subcommands;
|
|
6680
|
+
_.$_$.g = AbstractHelpFormatter;
|
|
6681
|
+
_.$_$.h = argument;
|
|
6682
|
+
_.$_$.i = default_0;
|
|
6683
|
+
_.$_$.j = eagerOption;
|
|
6684
|
+
_.$_$.k = option;
|
|
6685
|
+
_.$_$.l = choice;
|
|
6553
6686
|
//endregion
|
|
6554
6687
|
return _;
|
|
6555
6688
|
}(module.exports, require('./kotlin-kotlin-stdlib.js')));
|