@@ -411,15 +411,15 @@ function makeOptionDefinitions(
411
411
{
412
412
name : "out" ,
413
413
alias : "o" ,
414
- type : String ,
414
+ optionType : "string" ,
415
415
typeLabel : "FILE" ,
416
416
description : "The output file. Determines --lang and --top-level." ,
417
417
kind : "cli" ,
418
418
} ,
419
419
{
420
420
name : "top-level" ,
421
421
alias : "t" ,
422
- type : String ,
422
+ optionType : "string" ,
423
423
typeLabel : "NAME" ,
424
424
description : "The name for the top level type." ,
425
425
kind : "cli" ,
@@ -432,7 +432,7 @@ function makeOptionDefinitions(
432
432
{
433
433
name : "lang" ,
434
434
alias : "l" ,
435
- type : String ,
435
+ optionType : "string" ,
436
436
typeLabel : "LANG" ,
437
437
description : "The target language." ,
438
438
kind : "cli" ,
@@ -442,24 +442,23 @@ function makeOptionDefinitions(
442
442
{
443
443
name : "src-lang" ,
444
444
alias : "s" ,
445
- type : String ,
445
+ optionType : "string" ,
446
446
defaultValue : undefined ,
447
447
typeLabel : "SRC_LANG" ,
448
448
description : "The source language (default is json)." ,
449
449
kind : "cli" ,
450
450
} ,
451
451
{
452
452
name : "src" ,
453
- type : String ,
453
+ optionType : "string" ,
454
454
multiple : true ,
455
- defaultOption : true ,
456
455
typeLabel : "FILE|URL|DIRECTORY" ,
457
456
description : "The file, url, or data directory to type." ,
458
457
kind : "cli" ,
459
458
} ,
460
459
{
461
460
name : "src-urls" ,
462
- type : String ,
461
+ optionType : "string" ,
463
462
typeLabel : "FILE" ,
464
463
description : "Tracery grammar describing URLs to crawl." ,
465
464
kind : "cli" ,
@@ -469,7 +468,7 @@ function makeOptionDefinitions(
469
468
mapMap ( mapFromObject ( inferenceFlags ) , ( flag , name ) => {
470
469
return {
471
470
name : dashedFromCamelCase ( negatedInferenceFlagName ( name ) ) ,
472
- type : Boolean ,
471
+ optionType : "boolean" as const ,
473
472
description : flag . negationDescription + "." ,
474
473
kind : "cli" as const ,
475
474
} ;
@@ -478,29 +477,29 @@ function makeOptionDefinitions(
478
477
const afterInference : OptionDefinition [ ] = [
479
478
{
480
479
name : "graphql-schema" ,
481
- type : String ,
480
+ optionType : "string" ,
482
481
typeLabel : "FILE" ,
483
482
description : "GraphQL introspection file." ,
484
483
kind : "cli" ,
485
484
} ,
486
485
{
487
486
name : "graphql-introspect" ,
488
- type : String ,
487
+ optionType : "string" ,
489
488
typeLabel : "URL" ,
490
489
description : "Introspect GraphQL schema from a server." ,
491
490
kind : "cli" ,
492
491
} ,
493
492
{
494
493
name : "http-method" ,
495
- type : String ,
494
+ optionType : "string" ,
496
495
typeLabel : "METHOD" ,
497
496
description :
498
497
"HTTP method to use for the GraphQL introspection query." ,
499
498
kind : "cli" ,
500
499
} ,
501
500
{
502
501
name : "http-header" ,
503
- type : String ,
502
+ optionType : "string" ,
504
503
multiple : true ,
505
504
typeLabel : "HEADER" ,
506
505
description :
@@ -510,69 +509,69 @@ function makeOptionDefinitions(
510
509
{
511
510
name : "additional-schema" ,
512
511
alias : "S" ,
513
- type : String ,
512
+ optionType : "string" ,
514
513
multiple : true ,
515
514
typeLabel : "FILE" ,
516
515
description : "Register the $id's of additional JSON Schema files." ,
517
516
kind : "cli" ,
518
517
} ,
519
518
{
520
519
name : "no-render" ,
521
- type : Boolean ,
520
+ optionType : "boolean" ,
522
521
description : "Don't render output." ,
523
522
kind : "cli" ,
524
523
} ,
525
524
{
526
525
name : "alphabetize-properties" ,
527
- type : Boolean ,
526
+ optionType : "boolean" ,
528
527
description : "Alphabetize order of class properties." ,
529
528
kind : "cli" ,
530
529
} ,
531
530
{
532
531
name : "all-properties-optional" ,
533
- type : Boolean ,
532
+ optionType : "boolean" ,
534
533
description : "Make all class properties optional." ,
535
534
kind : "cli" ,
536
535
} ,
537
536
{
538
537
name : "build-markov-chain" ,
539
- type : String ,
538
+ optionType : "string" ,
540
539
typeLabel : "FILE" ,
541
540
description : "Markov chain corpus filename." ,
542
541
kind : "cli" ,
543
542
} ,
544
543
{
545
544
name : "quiet" ,
546
- type : Boolean ,
545
+ optionType : "boolean" ,
547
546
description : "Don't show issues in the generated code." ,
548
547
kind : "cli" ,
549
548
} ,
550
549
{
551
550
name : "debug" ,
552
- type : String ,
551
+ optionType : "string" ,
553
552
typeLabel : "OPTIONS or all" ,
554
553
description :
555
554
"Comma separated debug options: print-graph, print-reconstitution, print-gather-names, print-transformations, print-schema-resolving, print-times, provenance" ,
556
555
kind : "cli" ,
557
556
} ,
558
557
{
559
558
name : "telemetry" ,
560
- type : String ,
559
+ optionType : "string" ,
561
560
typeLabel : "enable|disable" ,
562
561
description : "Enable anonymous telemetry to help improve quicktype" ,
563
562
kind : "cli" ,
564
563
} ,
565
564
{
566
565
name : "help" ,
567
566
alias : "h" ,
568
- type : Boolean ,
567
+ optionType : "boolean" ,
569
568
description : "Get some help." ,
570
569
kind : "cli" ,
571
570
} ,
572
571
{
573
572
name : "version" ,
574
573
alias : "v" ,
575
- type : Boolean ,
574
+ optionType : "boolean" ,
576
575
description : "Display the version of quicktype" ,
577
576
kind : "cli" ,
578
577
} ,
0 commit comments