mirror of
https://github.com/neovim/neovim.git
synced 2025-09-11 22:08:18 +00:00
main: Rename --embedded-mode and --api-msgpack-metadata options
--embedded-mode -> --embed --api-msgpack-metadata -> --api-info
This commit is contained in:
@@ -23,7 +23,7 @@ fi
|
|||||||
|
|
||||||
valgrind_check "$tmpdir"
|
valgrind_check "$tmpdir"
|
||||||
|
|
||||||
export NVIM_SPAWN_ARGV="[\"valgrind\", \"-q\", \"--track-origins=yes\", \"--leak-check=yes\", \"--suppressions=$suppressions\", \"--log-file=$tmpdir/valgrind-%p.log\", \"../build/bin/nvim\", \"-u\", \"NONE\", \"--embedded-mode\"]"
|
export NVIM_SPAWN_ARGV="[\"valgrind\", \"-q\", \"--track-origins=yes\", \"--leak-check=yes\", \"--suppressions=$suppressions\", \"--log-file=$tmpdir/valgrind-%p.log\", \"../build/bin/nvim\", \"-u\", \"NONE\", \"--embed\"]"
|
||||||
if ! nosetests --verbosity=2 --nologcapture; then
|
if ! nosetests --verbosity=2 --nologcapture; then
|
||||||
valgrind_check "$tmpdir"
|
valgrind_check "$tmpdir"
|
||||||
exit 1
|
exit 1
|
||||||
|
@@ -1026,12 +1026,12 @@ static void command_line_scan(mparm_T *parmp)
|
|||||||
msg_putchar('\n');
|
msg_putchar('\n');
|
||||||
msg_didout = FALSE;
|
msg_didout = FALSE;
|
||||||
mch_exit(0);
|
mch_exit(0);
|
||||||
} else if (STRICMP(argv[0] + argv_idx, "api-msgpack-metadata") == 0) {
|
} else if (STRICMP(argv[0] + argv_idx, "api-info") == 0) {
|
||||||
for (unsigned int i = 0; i<msgpack_metadata_size; i++) {
|
for (unsigned int i = 0; i<msgpack_metadata_size; i++) {
|
||||||
putchar(msgpack_metadata[i]);
|
putchar(msgpack_metadata[i]);
|
||||||
}
|
}
|
||||||
mch_exit(0);
|
mch_exit(0);
|
||||||
} else if (STRICMP(argv[0] + argv_idx, "embedded-mode") == 0) {
|
} else if (STRICMP(argv[0] + argv_idx, "embed") == 0) {
|
||||||
embedded_mode = true;
|
embedded_mode = true;
|
||||||
} else if (STRNICMP(argv[0] + argv_idx, "literal", 7) == 0) {
|
} else if (STRNICMP(argv[0] + argv_idx, "literal", 7) == 0) {
|
||||||
#if !defined(UNIX)
|
#if !defined(UNIX)
|
||||||
@@ -2212,8 +2212,8 @@ static void usage(void)
|
|||||||
main_msg(_("-W <scriptout>\tWrite all typed commands to file <scriptout>"));
|
main_msg(_("-W <scriptout>\tWrite all typed commands to file <scriptout>"));
|
||||||
main_msg(_("--startuptime <file>\tWrite startup timing messages to <file>"));
|
main_msg(_("--startuptime <file>\tWrite startup timing messages to <file>"));
|
||||||
main_msg(_("-i <viminfo>\t\tUse <viminfo> instead of .viminfo"));
|
main_msg(_("-i <viminfo>\t\tUse <viminfo> instead of .viminfo"));
|
||||||
main_msg(_("--api-msgpack-metadata\tDump API metadata information and exit"));
|
main_msg(_("--api-info\t\tDump API metadata serialized to msgpack and exit"));
|
||||||
main_msg(_("--embedded-mode\tUse stdin/stdout as a msgpack-rpc channel. "
|
main_msg(_("--embed\t\tUse stdin/stdout as a msgpack-rpc channel. "
|
||||||
"This can be used for embedding Neovim into other programs"));
|
"This can be used for embedding Neovim into other programs"));
|
||||||
main_msg(_("-h or --help\tPrint Help (this message) and exit"));
|
main_msg(_("-h or --help\tPrint Help (this message) and exit"));
|
||||||
main_msg(_("--version\t\tPrint version information and exit"));
|
main_msg(_("--version\t\tPrint version information and exit"));
|
||||||
|
Reference in New Issue
Block a user