Documentation: Sync two differing copies of -E docs (#10446)
Alphabetize both lists. Put platform-specific docs in both places too.
This commit is contained in:
parent
2434d8826e
commit
1019d82727
|
@ -979,37 +979,39 @@ void CMakeCommandUsage(const char* program)
|
|||
errorStream
|
||||
<< "Usage: " << program << " -E [command] [arguments ...]\n"
|
||||
<< "Available commands: \n"
|
||||
<< " build build_dir - build the project in build_dir.\n"
|
||||
<< " chdir dir cmd [args]... - run command in a given directory\n"
|
||||
<< " rename oldname newname - rename a file or directory "
|
||||
"(on one volume)\n"
|
||||
<< " compare_files file1 file2 - check if file1 is same as file2\n"
|
||||
<< " copy file destination - copy file to destination (either file "
|
||||
"or directory)\n"
|
||||
<< " copy_if_different in-file out-file - copy file if input has "
|
||||
"changed\n"
|
||||
<< " copy_directory source destination - copy directory 'source' "
|
||||
"content to directory 'destination'\n"
|
||||
<< " compare_files file1 file2 - check if file1 is same as file2\n"
|
||||
<< " copy_if_different in-file out-file - copy file if input has "
|
||||
"changed\n"
|
||||
<< " echo [string]... - displays arguments as text\n"
|
||||
<< " echo_append [string]... - displays arguments as text but no new "
|
||||
"line\n"
|
||||
<< " environment - display the current environment\n"
|
||||
<< " make_directory dir - create a directory\n"
|
||||
<< " md5sum file1 [...] - compute md5sum of files\n"
|
||||
<< " remove_directory dir - remove a directory and its contents\n"
|
||||
<< " remove [-f] file1 file2 ... - remove the file(s), use -f to force "
|
||||
"it\n"
|
||||
<< " remove_directory dir - remove a directory and its contents\n"
|
||||
<< " rename oldname newname - rename a file or directory "
|
||||
"(on one volume)\n"
|
||||
<< " tar [cxt][vfz][cvfj] file.tar "
|
||||
"file/dir1 file/dir2 ... - create a tar "
|
||||
"archive\n"
|
||||
<< " time command [args] ... - run command and return elapsed time\n"
|
||||
<< " touch file - touch a file.\n"
|
||||
<< " touch_nocreate file - touch a file but do not create it.\n"
|
||||
<< " build build_dir - build the project in build_dir.\n"
|
||||
#if defined(_WIN32) && !defined(__CYGWIN__)
|
||||
<< " write_regv key value - write registry value\n"
|
||||
<< " delete_regv key - delete registry value\n"
|
||||
<< "Available on Windows only:\n"
|
||||
<< " comspec - on windows 9x use this for RunCommand\n"
|
||||
<< " delete_regv key - delete registry value\n"
|
||||
<< " write_regv key value - write registry value\n"
|
||||
#else
|
||||
<< "Available on UNIX only:\n"
|
||||
<< " create_symlink old new - create a symbolic link new -> old\n"
|
||||
#endif
|
||||
;
|
||||
|
|
|
@ -71,13 +71,13 @@ static const char * cmDocumentationOptions[][3] =
|
|||
{"-E", "CMake command mode.",
|
||||
"For true platform independence, CMake provides a list of commands "
|
||||
"that can be used on all systems. Run with -E help for the usage "
|
||||
"information. Commands available are: chdir, copy, copy_if_different "
|
||||
"copy_directory, compare_files, echo, echo_append, environment, "
|
||||
"make_directory, md5sum, remove_directory, remove, tar, time, "
|
||||
"information. Commands available are: build, chdir, compare_files, copy, "
|
||||
"copy_directory, copy_if_different, echo, echo_append, environment, "
|
||||
"make_directory, md5sum, remove, remove_directory, rename, tar, time, "
|
||||
"touch, touch_nocreate. In addition, some platform specific commands "
|
||||
"are available. "
|
||||
"Windows: comspec, delete_regv, write_regv. "
|
||||
"UNIX: create_symlink."},
|
||||
"On Windows: comspec, delete_regv, write_regv. "
|
||||
"On UNIX: create_symlink."},
|
||||
{"-i", "Run in wizard mode.",
|
||||
"Wizard mode runs cmake interactively without a GUI. The user is "
|
||||
"prompted to answer questions about the project configuration. "
|
||||
|
|
Loading…
Reference in New Issue