diff --git a/src/gsc_cli.erl b/src/gsc_cli.erl index 7174f9e..a0f5571 100644 --- a/src/gsc_cli.erl +++ b/src/gsc_cli.erl @@ -22,63 +22,52 @@ do_help() -> io:format("~ts", [help_screen()]). help_screen() -> - ["Usage: gsc [args]\n" - "\n" - "COMMANDS\n" - "\n" - " (no args)\n" - " shell\n" - " eshell\n" - " Start an Erlang shell with GSC loaded.\n" - "\n" - " tokens \n" - " Print GSC tokens from , one per line.\n" - "\n" - " tokens -c \n" - " tokens --color \n" - " tcat \n" - " ctokens \n" - " color_tokens \n" - " Print to stdout with each token highlighted in a\n" - " different color so token boundaries are visible.\n" - "\n" - " gso tokens \n" - " gso_tokens \n" - " Print sophia-compatible (so_scan) tokens from ,\n" - " one per line.\n" - "\n" - " rmm \n" - " Compile and call its main/0 with GSC context loaded.\n" - " Useful for running scratch scripts.\n" - "\n" - "TEST HARNESS (gsc test ...)\n" - "\n" - " gsc test -l\n" - " gsc test --list\n" - " List available named tests.\n" - "\n" - " gsc test -a\n" - " gsc test --all\n" - " Run all named tests.\n" - "\n" - " gsc test so tokens \n" - " gsc test so_tokens \n" - " Print sophia-original (so_scan) tokens from ,\n" - " one per line.\n" - "\n" - " gsc test tokenizers_agree \n" - " Check whether gsc and so_scan produce identical tokens\n" - " for . Prints 'true' or 'false'.\n" - " is resolved relative to cwd.\n" - " Example:\n" - " gsc test tokenizers_agree foo.aes\n" - "\n" - " gsc test \n" - " Run a named test module. 'gsc test foo' and\n" - " 'gsc test gsc_test_foo' are equivalent.\n" - " Use 'gsc test --list' to see available names.\n" - "\n" - ]. + """ + Usage: gsc [args] + COMMANDS + (no args) + shell + eshell + Start an Erlang shell with GSC loaded. + tokens + Print GSC tokens from , one per line. + tokens -c + tokens --color + tcat + ctokens + color_tokens + Print to stdout with each token highlighted in a + different color so token boundaries are visible. + gso tokens + gso_tokens + Print sophia-compatible (so_scan) tokens from , + one per line. + rmm + Compile and call its main/0 with GSC context loaded. + Useful for running scratch scripts. + + TEST HARNESS (gsc test ...) + gsc test -l + gsc test --list + List available named tests. + gsc test -a + gsc test --all + Run all named tests. + gsc test so tokens + gsc test so_tokens + Print sophia-original (so_scan) tokens from , + one per line. + gsc test tokenizers_agree + Check whether gsc and so_scan produce identical tokens + for . Prints 'true' or 'false'. + is resolved relative to cwd. + Example: + gsc test tokenizers_agree foo.aes + gsc test + Run a named test module. 'gsc test foo' and + 'gsc test gsc_test_foo' are equivalent. + Use 'gsc test --list' to see available names. + """. -spec start(ArgV) -> ok