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()]).
|
io:format("~ts", [help_screen()]).
|
||||||
|
|
||||||
help_screen() ->
|
help_screen() ->
|
||||||
["Usage: gsc <command> [args]\n"
|
"""
|
||||||
"\n"
|
Usage: gsc <command> [args]
|
||||||
"COMMANDS\n"
|
COMMANDS
|
||||||
"\n"
|
(no args)
|
||||||
" (no args)\n"
|
shell
|
||||||
" shell\n"
|
eshell
|
||||||
" eshell\n"
|
Start an Erlang shell with GSC loaded.
|
||||||
" Start an Erlang shell with GSC loaded.\n"
|
tokens <file>
|
||||||
"\n"
|
Print GSC tokens from <file>, one per line.
|
||||||
" tokens <file>\n"
|
tokens -c <file>
|
||||||
" Print GSC tokens from <file>, one per line.\n"
|
tokens --color <file>
|
||||||
"\n"
|
tcat <file>
|
||||||
" tokens -c <file>\n"
|
ctokens <file>
|
||||||
" tokens --color <file>\n"
|
color_tokens <file>
|
||||||
" tcat <file>\n"
|
Print <file> to stdout with each token highlighted in a
|
||||||
" ctokens <file>\n"
|
different color so token boundaries are visible.
|
||||||
" color_tokens <file>\n"
|
gso tokens <file>
|
||||||
" Print <file> to stdout with each token highlighted in a\n"
|
gso_tokens <file>
|
||||||
" different color so token boundaries are visible.\n"
|
Print sophia-compatible (so_scan) tokens from <file>,
|
||||||
"\n"
|
one per line.
|
||||||
" gso tokens <file>\n"
|
rmm <file>
|
||||||
" gso_tokens <file>\n"
|
Compile <file> and call its main/0 with GSC context loaded.
|
||||||
" Print sophia-compatible (so_scan) tokens from <file>,\n"
|
Useful for running scratch scripts.
|
||||||
" one per line.\n"
|
|
||||||
"\n"
|
TEST HARNESS (gsc test ...)
|
||||||
" rmm <file>\n"
|
gsc test -l
|
||||||
" Compile <file> and call its main/0 with GSC context loaded.\n"
|
gsc test --list
|
||||||
" Useful for running scratch scripts.\n"
|
List available named tests.
|
||||||
"\n"
|
gsc test -a
|
||||||
"TEST HARNESS (gsc test ...)\n"
|
gsc test --all
|
||||||
"\n"
|
Run all named tests.
|
||||||
" gsc test -l\n"
|
gsc test so tokens <file>
|
||||||
" gsc test --list\n"
|
gsc test so_tokens <file>
|
||||||
" List available named tests.\n"
|
Print sophia-original (so_scan) tokens from <file>,
|
||||||
"\n"
|
one per line.
|
||||||
" gsc test -a\n"
|
gsc test tokenizers_agree <file>
|
||||||
" gsc test --all\n"
|
Check whether gsc and so_scan produce identical tokens
|
||||||
" Run all named tests.\n"
|
for <file>. Prints 'true' or 'false'.
|
||||||
"\n"
|
<file> is resolved relative to cwd.
|
||||||
" gsc test so tokens <file>\n"
|
Example:
|
||||||
" gsc test so_tokens <file>\n"
|
gsc test tokenizers_agree foo.aes
|
||||||
" Print sophia-original (so_scan) tokens from <file>,\n"
|
gsc test <name>
|
||||||
" one per line.\n"
|
Run a named test module. 'gsc test foo' and
|
||||||
"\n"
|
'gsc test gsc_test_foo' are equivalent.
|
||||||
" gsc test tokenizers_agree <file>\n"
|
Use 'gsc test --list' to see available names.
|
||||||
" 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"
|
|
||||||
].
|
|
||||||
|
|
||||||
|
|
||||||
-spec start(ArgV) -> ok
|
-spec start(ArgV) -> ok
|
||||||
|
|||||||
Reference in New Issue
Block a user