| 439 | } |
| 440 | |
| 441 | void fxPrintUsage() |
| 442 | { |
| 443 | printf("xst [-h] [-e] [-f] [-j] [-m] [-p] [-s] [-t] [-v] strings...\n"); |
| 444 | printf("\t-b: strings are paths to script buffers\n"); |
| 445 | printf("\t-e: eval strings\n"); |
| 446 | printf("\t-f: fuzz with REPRL harness\n"); |
| 447 | printf("\t-h: print this help message\n"); |
| 448 | printf("\t-j: strings are paths to JSON buffers\n"); |
| 449 | printf("\t-m: strings are paths to modules\n"); |
| 450 | printf("\t-p: profile\n"); |
| 451 | printf("\t-s: strings are paths to scripts\n"); |
| 452 | printf("\t-t: strings are paths to test262 cases or directories\n"); |
| 453 | printf("\t-v: print XS version\n"); |
| 454 | printf("without -b, -e, -f, -j, -m, -s, or -t:\n"); |
| 455 | printf("\tif ../harness exists, strings are paths to test262 cases or directories\n"); |
| 456 | printf("\telse if the extension is .mjs, strings are paths to modules\n"); |
| 457 | printf("\telse strings are paths to scripts\n"); |
| 458 | } |
| 459 | |
| 460 | void fx_evalScript(xsMachine* the) |
| 461 | { |