@@ -28,14 +28,12 @@ function assoc3(x, _l) {
28
28
var match = l [ 0 ] ;
29
29
if ( Caml_obj . caml_equal ( match [ 0 ] , x ) ) {
30
30
return match [ 1 ] ;
31
- }
32
- else {
31
+ } else {
33
32
_l = l [ 1 ] ;
34
33
continue ;
35
34
36
35
}
37
- }
38
- else {
36
+ } else {
39
37
throw Caml_builtin_exceptions . not_found ;
40
38
}
41
39
} ;
@@ -46,8 +44,7 @@ function make_symlist(prefix, sep, suffix, l) {
46
44
return List . fold_left ( function ( x , y ) {
47
45
return x + ( sep + y ) ;
48
46
} , prefix + l [ 0 ] , l [ 1 ] ) + suffix ;
49
- }
50
- else {
47
+ } else {
51
48
return "<none>" ;
52
49
}
53
50
}
@@ -75,8 +72,7 @@ function add_help(speclist) {
75
72
] ,
76
73
/* [] */ 0
77
74
] ;
78
- }
79
- else {
75
+ } else {
80
76
throw exn ;
81
77
}
82
78
}
@@ -95,8 +91,7 @@ function add_help(speclist) {
95
91
] ,
96
92
/* [] */ 0
97
93
] ;
98
- }
99
- else {
94
+ } else {
100
95
throw exn$1 ;
101
96
}
102
97
}
@@ -144,8 +139,7 @@ function usage_b(buf, speclist, errmsg) {
144
139
] ) ,
145
140
" %s %s%s\n"
146
141
] ) , key , make_symlist ( "{" , "|" , "}" , spec [ 0 ] ) , doc ) ;
147
- }
148
- else {
142
+ } else {
149
143
return Curry . _2 ( Printf . bprintf ( buf$1 , /* Format */ [
150
144
/* String_literal */ Block . __ ( 11 , [
151
145
" " ,
@@ -166,8 +160,7 @@ function usage_b(buf, speclist, errmsg) {
166
160
" %s %s\n"
167
161
] ) , key , doc ) ;
168
162
}
169
- }
170
- else {
163
+ } else {
171
164
return 0 ;
172
165
}
173
166
} , add_help ( speclist ) ) ;
@@ -298,8 +291,7 @@ function parse_argv_dynamic($staropt$star, argv, speclist, anonfun, errmsg) {
298
291
Help ,
299
292
Buffer . contents ( b )
300
293
] ;
301
- }
302
- else {
294
+ } else {
303
295
throw [
304
296
Bad ,
305
297
Buffer . contents ( b )
@@ -317,8 +309,7 @@ function parse_argv_dynamic($staropt$star, argv, speclist, anonfun, errmsg) {
317
309
catch ( exn ) {
318
310
if ( exn === Caml_builtin_exceptions . not_found ) {
319
311
action = stop ( /* Unknown */ Block . __ ( 0 , [ s ] ) ) ;
320
- }
321
- else {
312
+ } else {
322
313
throw exn ;
323
314
}
324
315
}
@@ -345,18 +336,15 @@ function parse_argv_dynamic($staropt$star, argv, speclist, anonfun, errmsg) {
345
336
"a boolean"
346
337
] )
347
338
] ;
348
- }
349
- else {
339
+ } else {
350
340
throw exn ;
351
341
}
352
- }
353
- else {
342
+ } else {
354
343
throw exn ;
355
344
}
356
345
}
357
346
return current$1 [ 0 ] = current$1 [ 0 ] + 1 | 0 ;
358
- }
359
- else {
347
+ } else {
360
348
throw [
361
349
Stop ,
362
350
/* Missing */ Block . __ ( 2 , [ s ] )
@@ -373,8 +361,7 @@ function parse_argv_dynamic($staropt$star, argv, speclist, anonfun, errmsg) {
373
361
if ( ( current$1 [ 0 ] + 1 | 0 ) < l ) {
374
362
Curry . _1 ( param [ 0 ] , argv [ current$1 [ 0 ] + 1 | 0 ] ) ;
375
363
return current$1 [ 0 ] = current$1 [ 0 ] + 1 | 0 ;
376
- }
377
- else {
364
+ } else {
378
365
throw [
379
366
Stop ,
380
367
/* Missing */ Block . __ ( 2 , [ s ] )
@@ -385,8 +372,7 @@ function parse_argv_dynamic($staropt$star, argv, speclist, anonfun, errmsg) {
385
372
if ( ( current$1 [ 0 ] + 1 | 0 ) < l ) {
386
373
param [ 0 ] [ 0 ] = argv [ current$1 [ 0 ] + 1 | 0 ] ;
387
374
return current$1 [ 0 ] = current$1 [ 0 ] + 1 | 0 ;
388
- }
389
- else {
375
+ } else {
390
376
throw [
391
377
Stop ,
392
378
/* Missing */ Block . __ ( 2 , [ s ] )
@@ -410,18 +396,15 @@ function parse_argv_dynamic($staropt$star, argv, speclist, anonfun, errmsg) {
410
396
"an integer"
411
397
] )
412
398
] ;
413
- }
414
- else {
399
+ } else {
415
400
throw exn$1 ;
416
401
}
417
- }
418
- else {
402
+ } else {
419
403
throw exn$1 ;
420
404
}
421
405
}
422
406
return current$1 [ 0 ] = current$1 [ 0 ] + 1 | 0 ;
423
- }
424
- else {
407
+ } else {
425
408
throw [
426
409
Stop ,
427
410
/* Missing */ Block . __ ( 2 , [ s ] )
@@ -445,18 +428,15 @@ function parse_argv_dynamic($staropt$star, argv, speclist, anonfun, errmsg) {
445
428
"an integer"
446
429
] )
447
430
] ;
448
- }
449
- else {
431
+ } else {
450
432
throw exn$2 ;
451
433
}
452
- }
453
- else {
434
+ } else {
454
435
throw exn$2 ;
455
436
}
456
437
}
457
438
return current$1 [ 0 ] = current$1 [ 0 ] + 1 | 0 ;
458
- }
459
- else {
439
+ } else {
460
440
throw [
461
441
Stop ,
462
442
/* Missing */ Block . __ ( 2 , [ s ] )
@@ -480,18 +460,15 @@ function parse_argv_dynamic($staropt$star, argv, speclist, anonfun, errmsg) {
480
460
"a float"
481
461
] )
482
462
] ;
483
- }
484
- else {
463
+ } else {
485
464
throw exn$3 ;
486
465
}
487
- }
488
- else {
466
+ } else {
489
467
throw exn$3 ;
490
468
}
491
469
}
492
470
return current$1 [ 0 ] = current$1 [ 0 ] + 1 | 0 ;
493
- }
494
- else {
471
+ } else {
495
472
throw [
496
473
Stop ,
497
474
/* Missing */ Block . __ ( 2 , [ s ] )
@@ -515,18 +492,15 @@ function parse_argv_dynamic($staropt$star, argv, speclist, anonfun, errmsg) {
515
492
"a float"
516
493
] )
517
494
] ;
518
- }
519
- else {
495
+ } else {
520
496
throw exn$4 ;
521
497
}
522
- }
523
- else {
498
+ } else {
524
499
throw exn$4 ;
525
500
}
526
501
}
527
502
return current$1 [ 0 ] = current$1 [ 0 ] + 1 | 0 ;
528
- }
529
- else {
503
+ } else {
530
504
throw [
531
505
Stop ,
532
506
/* Missing */ Block . __ ( 2 , [ s ] )
@@ -542,8 +516,7 @@ function parse_argv_dynamic($staropt$star, argv, speclist, anonfun, errmsg) {
542
516
if ( List . mem ( arg$5 , symb ) ) {
543
517
Curry . _1 ( param [ 1 ] , argv [ current$1 [ 0 ] + 1 | 0 ] ) ;
544
518
return current$1 [ 0 ] = current$1 [ 0 ] + 1 | 0 ;
545
- }
546
- else {
519
+ } else {
547
520
throw [
548
521
Stop ,
549
522
/* Wrong */ Block . __ ( 1 , [
@@ -553,8 +526,7 @@ function parse_argv_dynamic($staropt$star, argv, speclist, anonfun, errmsg) {
553
526
] )
554
527
] ;
555
528
}
556
- }
557
- else {
529
+ } else {
558
530
throw [
559
531
Stop ,
560
532
/* Missing */ Block . __ ( 2 , [ s ] )
@@ -577,25 +549,21 @@ function parse_argv_dynamic($staropt$star, argv, speclist, anonfun, errmsg) {
577
549
catch ( exn$1 ) {
578
550
if ( exn$1 [ 0 ] === Bad ) {
579
551
stop ( /* Message */ Block . __ ( 3 , [ exn$1 [ 1 ] ] ) ) ;
580
- }
581
- else if ( exn$1 [ 0 ] === Stop ) {
552
+ } else if ( exn$1 [ 0 ] === Stop ) {
582
553
stop ( exn$1 [ 1 ] ) ;
583
- }
584
- else {
554
+ } else {
585
555
throw exn$1 ;
586
556
}
587
557
}
588
558
current$1 [ 0 ] = current$1 [ 0 ] + 1 | 0 ;
589
- }
590
- else {
559
+ } else {
591
560
try {
592
561
Curry . _1 ( anonfun , s ) ;
593
562
}
594
563
catch ( exn$2 ) {
595
564
if ( exn$2 [ 0 ] === Bad ) {
596
565
stop ( /* Message */ Block . __ ( 3 , [ exn$2 [ 1 ] ] ) ) ;
597
- }
598
- else {
566
+ } else {
599
567
throw exn$2 ;
600
568
}
601
569
}
@@ -624,8 +592,7 @@ function parse(l, f, msg) {
624
592
"%s"
625
593
] ) , exn [ 1 ] ) ;
626
594
return Pervasives . exit ( 2 ) ;
627
- }
628
- else if ( exn [ 0 ] === Help ) {
595
+ } else if ( exn [ 0 ] === Help ) {
629
596
Curry . _1 ( Printf . printf ( /* Format */ [
630
597
/* String */ Block . __ ( 2 , [
631
598
/* No_padding */ 0 ,
@@ -634,8 +601,7 @@ function parse(l, f, msg) {
634
601
"%s"
635
602
] ) , exn [ 1 ] ) ;
636
603
return Pervasives . exit ( 0 ) ;
637
- }
638
- else {
604
+ } else {
639
605
throw exn ;
640
606
}
641
607
}
@@ -655,8 +621,7 @@ function parse_dynamic(l, f, msg) {
655
621
"%s"
656
622
] ) , exn [ 1 ] ) ;
657
623
return Pervasives . exit ( 2 ) ;
658
- }
659
- else if ( exn [ 0 ] === Help ) {
624
+ } else if ( exn [ 0 ] === Help ) {
660
625
Curry . _1 ( Printf . printf ( /* Format */ [
661
626
/* String */ Block . __ ( 2 , [
662
627
/* No_padding */ 0 ,
@@ -665,8 +630,7 @@ function parse_dynamic(l, f, msg) {
665
630
"%s"
666
631
] ) , exn [ 1 ] ) ;
667
632
return Pervasives . exit ( 0 ) ;
668
- }
669
- else {
633
+ } else {
670
634
throw exn ;
671
635
}
672
636
}
@@ -680,22 +644,19 @@ function second_word(s) {
680
644
var n = _n ;
681
645
if ( n >= len ) {
682
646
return len ;
683
- }
684
- else if ( Caml_string . get ( s , n ) === /* " " */ 32 ) {
647
+ } else if ( Caml_string . get ( s , n ) === /* " " */ 32 ) {
685
648
_n = n + 1 | 0 ;
686
649
continue ;
687
650
688
- }
689
- else {
651
+ } else {
690
652
return n ;
691
653
}
692
654
} ;
693
655
}
694
656
catch ( exn ) {
695
657
if ( exn === Caml_builtin_exceptions . not_found ) {
696
658
return len ;
697
- }
698
- else {
659
+ } else {
699
660
throw exn ;
700
661
}
701
662
}
@@ -705,8 +666,7 @@ function max_arg_len(cur, param) {
705
666
var kwd = param [ 0 ] ;
706
667
if ( param [ 1 ] . tag === 11 ) {
707
668
return Pervasives . max ( cur , kwd . length ) ;
708
- }
709
- else {
669
+ } else {
710
670
return Pervasives . max ( cur , kwd . length + second_word ( param [ 2 ] ) | 0 ) ;
711
671
}
712
672
}
@@ -723,8 +683,7 @@ function align($staropt$star, speclist) {
723
683
var kwd = ksd [ 0 ] ;
724
684
if ( ksd [ 2 ] === "" ) {
725
685
return ksd ;
726
- }
727
- else if ( spec . tag === 11 ) {
686
+ } else if ( spec . tag === 11 ) {
728
687
var msg = ksd [ 2 ] ;
729
688
var cutcol = second_word ( msg ) ;
730
689
var n = Pervasives . max ( 0 , len$2 - cutcol | 0 ) + 3 | 0 ;
@@ -734,8 +693,7 @@ function align($staropt$star, speclist) {
734
693
spec ,
735
694
"\n" + ( spaces + msg )
736
695
] ;
737
- }
738
- else {
696
+ } else {
739
697
var msg$1 = ksd [ 2 ] ;
740
698
var cutcol$1 = second_word ( msg$1 ) ;
741
699
var kwd_len = kwd . length ;
@@ -746,8 +704,7 @@ function align($staropt$star, speclist) {
746
704
spec ,
747
705
msg$1
748
706
] ;
749
- }
750
- else {
707
+ } else {
751
708
var spaces$1 = Caml_string . bytes_to_string ( Bytes . make ( diff , /* " " */ 32 ) ) ;
752
709
var prefix = $$String . sub ( msg$1 , 0 , cutcol$1 ) ;
753
710
var suffix = $$String . sub ( msg$1 , cutcol$1 , msg$1 . length - cutcol$1 | 0 ) ;
0 commit comments