=?UTF-8?Q?Fr=C3=A9d=C3=A9ric=20Delanoy=20?=: winedump: Make usage message more consistent.

Alexandre Julliard julliard at winehq.org
Wed Dec 4 14:43:34 CST 2013


Module: wine
Branch: master
Commit: ee681d5a48603b74ec2870a72326dc8f013b603d
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=ee681d5a48603b74ec2870a72326dc8f013b603d

Author: Frédéric Delanoy <frederic.delanoy at gmail.com>
Date:   Tue Dec  3 23:36:08 2013 +0100

winedump: Make usage message more consistent.

Using infinitives, <arg> for option arguments.

---

 tools/winedump/main.c |   48 ++++++++++++++++++++++++------------------------
 1 files changed, 24 insertions(+), 24 deletions(-)

diff --git a/tools/winedump/main.c b/tools/winedump/main.c
index dbc2d67..37e8ebe 100644
--- a/tools/winedump/main.c
+++ b/tools/winedump/main.c
@@ -207,30 +207,30 @@ struct my_option
 };
 
 static const struct my_option option_table[] = {
-  {"--help",NONE, 0, do_usage,    "--help       Display this help message"},
-  {"-h",    NONE, 0, do_usage,    "-h           Synonym for --help"},
-  {"-?",    NONE, 0, do_usage,    "-?           Synonym for --help"},
-  {"sym",   DMGL, 0, do_demangle, "sym <sym>    Demangle C++ symbol <sym> and exit"},
-  {"spec",  SPEC, 0, do_spec,     "spec <dll>   Use dll for input file and generate implementation code"},
-  {"-I",    SPEC, 1, do_include,  "-I dir       Look for prototypes in 'dir' (implies -c)"},
-  {"-c",    SPEC, 0, do_code,     "-c           Generate skeleton code (requires -I)"},
-  {"-t",    SPEC, 0, do_trace,    "-t           TRACE arguments (implies -c)"},
-  {"-f",    SPEC, 1, do_forward,  "-f dll       Forward calls to 'dll' (implies -t)"},
-  {"-D",    SPEC, 0, do_document, "-D           Generate documentation"},
-  {"-o",    SPEC, 1, do_name,     "-o name      Set the output dll name (default: dll). note: strips .dll extensions"},
-  {"-C",    SPEC, 0, do_cdecl,    "-C           Assume __cdecl calls (default: __stdcall)"},
-  {"-s",    SPEC, 1, do_start,    "-s num       Start prototype search after symbol 'num'"},
-  {"-e",    SPEC, 1, do_end,      "-e num       End prototype search after symbol 'num'"},
-  {"-S",    SPEC, 1, do_symfile,  "-S symfile   Search only prototype names found in 'symfile'"},
-  {"-q",    SPEC, 0, do_quiet,    "-q           Don't show progress (quiet)."},
-  {"-v",    SPEC, 0, do_verbose,  "-v           Show lots of detail while working (verbose)."},
-  {"dump",  DUMP, 0, do_dump,     "dump <file>  Dumps the contents of a file (dll, exe, lib...)"},
-  {"-C",    DUMP, 0, do_symdmngl, "-C           Turns on symbol demangling"},
-  {"-f",    DUMP, 0, do_dumphead, "-f           Dumps file header information"},
-  {"-G",    DUMP, 0, do_rawdebug, "-G           Dumps raw debug information"},
-  {"-j",    DUMP, 1, do_dumpsect, "-j sect_name Dumps only the content of section sect_name (import, export, debug, resource, tls, clr, reloc, except)"},
-  {"-t",    DUMP, 0, do_symtable, "-t           Dumps symbol table"},
-  {"-x",    DUMP, 0, do_dumpall,  "-x           Dumps everything"},
+  {"--help",NONE, 0, do_usage,    "--help          Display this help message"},
+  {"-h",    NONE, 0, do_usage,    "-h              Synonym for --help"},
+  {"-?",    NONE, 0, do_usage,    "-?              Synonym for --help"},
+  {"sym",   DMGL, 0, do_demangle, "sym <sym>       Demangle C++ symbol <sym> and exit"},
+  {"spec",  SPEC, 0, do_spec,     "spec <dll>      Use 'dll' for input file and generate implementation code"},
+  {"-I",    SPEC, 1, do_include,  "-I <dir>        Look for prototypes in 'dir' (implies -c)"},
+  {"-c",    SPEC, 0, do_code,     "-c              Generate skeleton code (requires -I)"},
+  {"-t",    SPEC, 0, do_trace,    "-t              TRACE arguments (implies -c)"},
+  {"-f",    SPEC, 1, do_forward,  "-f <dll>        Forward calls to 'dll' (implies -t)"},
+  {"-D",    SPEC, 0, do_document, "-D              Generate documentation"},
+  {"-o",    SPEC, 1, do_name,     "-o <name>       Set the output dll name (default: dll). Note: strips .dll extensions"},
+  {"-C",    SPEC, 0, do_cdecl,    "-C              Assume __cdecl calls (default: __stdcall)"},
+  {"-s",    SPEC, 1, do_start,    "-s <num>        Start prototype search after symbol 'num'"},
+  {"-e",    SPEC, 1, do_end,      "-e <num>        End prototype search after symbol 'num'"},
+  {"-S",    SPEC, 1, do_symfile,  "-S <symfile>    Search only prototype names found in 'symfile'"},
+  {"-q",    SPEC, 0, do_quiet,    "-q              Don't show progress (quiet)."},
+  {"-v",    SPEC, 0, do_verbose,  "-v              Show lots of detail while working (verbose)."},
+  {"dump",  DUMP, 0, do_dump,     "dump <file>     Dump the contents of 'file' (dll, exe, lib...)"},
+  {"-C",    DUMP, 0, do_symdmngl, "-C              Turn on symbol demangling"},
+  {"-f",    DUMP, 0, do_dumphead, "-f              Dump file header information"},
+  {"-G",    DUMP, 0, do_rawdebug, "-G              Dump raw debug information"},
+  {"-j",    DUMP, 1, do_dumpsect, "-j <sect_name>  Dump only the content of section 'sect_name' (import, export, debug, resource, tls, clr, reloc, except)"},
+  {"-t",    DUMP, 0, do_symtable, "-t              Dump symbol table"},
+  {"-x",    DUMP, 0, do_dumpall,  "-x              Dump everything"},
   {NULL,    NONE, 0, NULL,        NULL}
 };
 




More information about the wine-cvs mailing list