Jelajahi Sumber

Help: Reword misleading docs for cmake -E time

Taylor Braun-Jones 8 tahun lalu
induk
melakukan
73bb781df0
2 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 1 1
      Help/manual/cmake.1.rst
  2. 1 1
      Source/cmcmd.cxx

+ 1 - 1
Help/manual/cmake.1.rst

@@ -337,7 +337,7 @@ Available commands are:
     ``paxr`` (restricted pax, default), and ``zip``.
 
 ``time <command> [<args>...]``
-  Run command and return elapsed time.
+  Run command and display elapsed time.
 
 ``touch <file>``
   Touch a file.

+ 1 - 1
Source/cmcmd.cxx

@@ -103,7 +103,7 @@ void CMakeCommandUsage(const char* program)
     << "  sleep <number>...         - sleep for given number of seconds\n"
     << "  tar [cxt][vf][zjJ] file.tar [file/dir1 file/dir2 ...]\n"
     << "                            - create or extract a tar or zip archive\n"
-    << "  time command [args...]    - run command and return elapsed time\n"
+    << "  time command [args...]    - run command and display elapsed time\n"
     << "  touch file                - touch a file.\n"
     << "  touch_nocreate file       - touch a file but do not create it.\n"
 #if defined(_WIN32) && !defined(__CYGWIN__)