gsc_cli: use blockquote for help message
This commit is contained in:
+46
-57
@@ -22,63 +22,52 @@ do_help() ->
|
||||
io:format("~ts", [help_screen()]).
|
||||
|
||||
help_screen() ->
|
||||
["Usage: gsc <command> [args]\n"
|
||||
"\n"
|
||||
"COMMANDS\n"
|
||||
"\n"
|
||||
" (no args)\n"
|
||||
" shell\n"
|
||||
" eshell\n"
|
||||
" Start an Erlang shell with GSC loaded.\n"
|
||||
"\n"
|
||||
" tokens <file>\n"
|
||||
" Print GSC tokens from <file>, one per line.\n"
|
||||
"\n"
|
||||
" tokens -c <file>\n"
|
||||
" tokens --color <file>\n"
|
||||
" tcat <file>\n"
|
||||
" ctokens <file>\n"
|
||||
" color_tokens <file>\n"
|
||||
" Print <file> to stdout with each token highlighted in a\n"
|
||||
" different color so token boundaries are visible.\n"
|
||||
"\n"
|
||||
" gso tokens <file>\n"
|
||||
" gso_tokens <file>\n"
|
||||
" Print sophia-compatible (so_scan) tokens from <file>,\n"
|
||||
" one per line.\n"
|
||||
"\n"
|
||||
" rmm <file>\n"
|
||||
" Compile <file> 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 <file>\n"
|
||||
" gsc test so_tokens <file>\n"
|
||||
" Print sophia-original (so_scan) tokens from <file>,\n"
|
||||
" one per line.\n"
|
||||
"\n"
|
||||
" gsc test tokenizers_agree <file>\n"
|
||||
" Check whether gsc and so_scan produce identical tokens\n"
|
||||
" for <file>. Prints 'true' or 'false'.\n"
|
||||
" <file> is resolved relative to cwd.\n"
|
||||
" Example:\n"
|
||||
" gsc test tokenizers_agree foo.aes\n"
|
||||
"\n"
|
||||
" gsc test <name>\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 <command> [args]
|
||||
COMMANDS
|
||||
(no args)
|
||||
shell
|
||||
eshell
|
||||
Start an Erlang shell with GSC loaded.
|
||||
tokens <file>
|
||||
Print GSC tokens from <file>, one per line.
|
||||
tokens -c <file>
|
||||
tokens --color <file>
|
||||
tcat <file>
|
||||
ctokens <file>
|
||||
color_tokens <file>
|
||||
Print <file> to stdout with each token highlighted in a
|
||||
different color so token boundaries are visible.
|
||||
gso tokens <file>
|
||||
gso_tokens <file>
|
||||
Print sophia-compatible (so_scan) tokens from <file>,
|
||||
one per line.
|
||||
rmm <file>
|
||||
Compile <file> 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 <file>
|
||||
gsc test so_tokens <file>
|
||||
Print sophia-original (so_scan) tokens from <file>,
|
||||
one per line.
|
||||
gsc test tokenizers_agree <file>
|
||||
Check whether gsc and so_scan produce identical tokens
|
||||
for <file>. Prints 'true' or 'false'.
|
||||
<file> is resolved relative to cwd.
|
||||
Example:
|
||||
gsc test tokenizers_agree foo.aes
|
||||
gsc test <name>
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user