Преглед изворни кода

Help: Short options first, then long, then Windows style

Alex Turbov пре 3 година
родитељ
комит
28ecfd1690
5 измењених фајлова са 7 додато и 7 уклоњено
  1. 2 2
      Help/manual/OPTIONS_HELP.txt
  2. 1 1
      Help/manual/cmake.1.rst
  3. 1 1
      Help/manual/cpack.1.rst
  4. 1 1
      Source/CPack/cpack.cxx
  5. 2 2
      Source/cmakemain.cxx

+ 2 - 2
Help/manual/OPTIONS_HELP.txt

@@ -1,12 +1,12 @@
 .. |file| replace:: The help is printed to a named ``<file>`` if given.
 .. |file| replace:: The help is printed to a named ``<file>`` if given.
 
 
-.. option:: --help, -help, -usage, -h, -H, /?
+.. option:: -h, -H, --help, -help, -usage, /?
 
 
  Print usage information and exit.
  Print usage information and exit.
 
 
  Usage describes the basic command line interface and its options.
  Usage describes the basic command line interface and its options.
 
 
-.. option:: --version, -version, /V [<file>]
+.. option:: -version [<file>], --version [<file>], /V [<file>]
 
 
  Show program name/version banner and exit.
  Show program name/version banner and exit.
 
 

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

@@ -545,7 +545,7 @@ following options:
   Some native build tools always build in parallel.  The use of ``<jobs>``
   Some native build tools always build in parallel.  The use of ``<jobs>``
   value of ``1`` can be used to limit to a single job.
   value of ``1`` can be used to limit to a single job.
 
 
-.. option:: --target <tgt>..., -t <tgt>...
+.. option:: -t <tgt>..., --target <tgt>...
 
 
   Build ``<tgt>`` instead of the default target.  Multiple targets may be
   Build ``<tgt>`` instead of the default target.  Multiple targets may be
   given, separated by spaces.
   given, separated by spaces.

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

@@ -73,7 +73,7 @@ Options
   details.  By default, ``CPackConfig.cmake`` in the current directory will
   details.  By default, ``CPackConfig.cmake`` in the current directory will
   be used.
   be used.
 
 
-.. option:: --verbose, -V
+.. option:: -V, --verbose
 
 
   Run ``cpack`` with verbose output.  This can be used to show more details
   Run ``cpack`` with verbose output.  This can be used to show more details
   from the package generation tools and is suitable for project developers.
   from the package generation tools and is suitable for project developers.

+ 1 - 1
Source/CPack/cpack.cxx

@@ -50,7 +50,7 @@ const char* cmDocumentationOptions[][2] = {
   { "-C <Configuration>", "Specify the project configuration" },
   { "-C <Configuration>", "Specify the project configuration" },
   { "-D <var>=<value>", "Set a CPack variable." },
   { "-D <var>=<value>", "Set a CPack variable." },
   { "--config <configFile>", "Specify the config file." },
   { "--config <configFile>", "Specify the config file." },
-  { "--verbose,-V", "Enable verbose output" },
+  { "-V,--verbose", "Enable verbose output" },
   { "--trace", "Put underlying cmake scripts in trace mode." },
   { "--trace", "Put underlying cmake scripts in trace mode." },
   { "--trace-expand", "Put underlying cmake scripts in expanded trace mode." },
   { "--trace-expand", "Put underlying cmake scripts in expanded trace mode." },
   { "--debug", "Enable debug output (for CPack developers)" },
   { "--debug", "Enable debug output (for CPack developers)" },

+ 2 - 2
Source/cmakemain.cxx

@@ -627,14 +627,14 @@ int do_build(int ac, char const* const* av)
       "                   specifies a default parallel level when this "
       "                   specifies a default parallel level when this "
       "option\n"
       "option\n"
       "                   is not given.\n"
       "                   is not given.\n"
-      "  --target <tgt>..., -t <tgt>... \n"
+      "  -t <tgt>..., --target <tgt>...\n"
       "                 = Build <tgt> instead of default targets.\n"
       "                 = Build <tgt> instead of default targets.\n"
       "  --config <cfg> = For multi-configuration tools, choose <cfg>.\n"
       "  --config <cfg> = For multi-configuration tools, choose <cfg>.\n"
       "  --clean-first  = Build target 'clean' first, then build.\n"
       "  --clean-first  = Build target 'clean' first, then build.\n"
       "                   (To clean only, use --target 'clean'.)\n"
       "                   (To clean only, use --target 'clean'.)\n"
       "  --resolve-package-references={on|only|off}\n"
       "  --resolve-package-references={on|only|off}\n"
       "                 = Restore/resolve package references during build.\n"
       "                 = Restore/resolve package references during build.\n"
-      "  --verbose, -v  = Enable verbose output - if supported - including\n"
+      "  -v, --verbose  = Enable verbose output - if supported - including\n"
       "                   the build commands to be executed. \n"
       "                   the build commands to be executed. \n"
       "  --             = Pass remaining options to the native tool.\n"
       "  --             = Pass remaining options to the native tool.\n"
       ;
       ;