Hi,
trivial patch:
Index: config.c
===================================================================
RCS file: /cvsroot/suspend/suspend/config.c,v
retrieving revision 1.7
diff -u -p -r1.7 config.c
--- config.c 10 Nov 2006 00:08:33 -0000 1.7
+++ config.c 29 Mar 2007 08:24:27 -0000
@@ -111,9 +111,9 @@ void usage(char *my_name, struct option
printf("Usage: %s ", my_name);
for (opt = options; opt->name; opt++)
if (opt->has_arg)
- printf("[-%c <%s>]", opt->val, opt->name);
+ printf("[-%c|--%s <%s>]", opt->val, opt->name,
opt->name);
else
- printf("[-%c]", opt->val);
+ printf("[-%c|--%s]", opt->val, opt->name);
printf(" [<resume_device>]\n");
}
Result:
./s2disk -h
Usage: suspend [-h|--help][-f|--config <config>][-s|--image_size
<image_size>][-o|--resume_offset <resume_offset>] [<resume_device>]
This is ugly and long, but shows the long options (we could leave out
the short options, or go for something like:
Usage: suspend [-h|--help]
[-f|--config <config>]
[-s|--image_size <image_size>]
[-o|--resume_offset <resume_offset>]
[<resume_device>]
Opinions?
--
Stefan Seyfried
"Any ideas, John?"
"Well, surrounding them's out."
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Suspend-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/suspend-devel