winedump usage tweaks
Francois Gouget
fgouget at codeweavers.com
Fri Apr 15 05:32:04 CDT 2005
Changelog:
* tools/winedump/main.c
Francois Gouget <fgouget at codeweavers.com>
Mention the 'emf' and 'lnk' modes in the usage summary.
Add -? and --help synonyms for -h as is customary.
puts("") already prints a '\n' so we don't need a second one.
--
Francois Gouget
fgouget at codeweavers.com
-------------- next part --------------
Index: tools/winedump/main.c
===================================================================
RCS file: /var/cvs/wine/tools/winedump/main.c,v
retrieving revision 1.18
diff -u -p -r1.18 main.c
--- tools/winedump/main.c 17 Feb 2005 11:51:23 -0000 1.18
+++ tools/winedump/main.c 15 Apr 2005 10:27:46 -0000
@@ -207,7 +207,9 @@ struct option
};
static const struct option option_table[] = {
- {"-h", NONE, 0, do_usage, "-h Display this help message"},
+ {"--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)"},
@@ -235,9 +237,9 @@ static const struct option option_table[
void do_usage (void)
{
const struct option *opt;
- printf ("Usage: winedump [-h | sym <sym> | spec <dll> | dump <dll>]\n");
+ printf ("Usage: winedump [-h | sym <sym> | spec <dll> | dump <dll> | emf <emf> | lnk <lnk>]\n");
printf ("Mode options (can be put as the mode (sym/spec/dump...) is declared):\n");
- printf ("\tWhen used in -h mode\n");
+ printf ("\tWhen used in --help mode\n");
for (opt = option_table; opt->name; opt++)
if (opt->mode == NONE)
printf ("\t %s\n", opt->usage);
@@ -262,7 +264,7 @@ void do_usage (void)
if (opt->mode == LNK)
printf ("\t %s\n", opt->usage);
- puts ("\n");
+ puts ("");
exit (1);
}
More information about the wine-patches
mailing list