Changes by: flatcap
Update of /cvsroot/linux-ntfs/dynamic-disk/test
In directory usw-pr-cvs1:/tmp/cvs-serv9020/test
Modified Files:
ldminfo.c
Log Message:
reinstate Jakob's parse guid, because I wasn't listening
more renames
Index: ldminfo.c
===================================================================
RCS file: /cvsroot/linux-ntfs/dynamic-disk/test/ldminfo.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -U2 -r1.24 -r1.25
--- ldminfo.c 10 Apr 2002 15:42:01 -0000 1.24
+++ ldminfo.c 11 Apr 2002 14:27:39 -0000 1.25
@@ -139,24 +139,39 @@
int copy = 0;
int help = 0;
+ int ver = 0;
struct block_device bdev;
for (a = 1; a < argc; a++) {
- if (strcmp (argv[a], "--info") == 0) info++;
- else if (strcmp (argv[a], "--dump") == 0) dump++;
- else if (strcmp (argv[a], "--copy") == 0) copy++;
- else if (strcmp (argv[a], "--debug") == 0) debug++;
- else if (strcmp (argv[a], "--help") == 0) help++;
+ if (strcmp (argv[a], "--info") == 0) info++;
+ else if (strcmp (argv[a], "--dump") == 0) dump++;
+ else if (strcmp (argv[a], "--copy") == 0) copy++;
+ else if (strcmp (argv[a], "--debug") == 0) debug++;
+ else if (strcmp (argv[a], "--help") == 0) help++;
+ else if (strcmp (argv[a], "--version") == 0) ver++;
else continue;
argv[a][0] = 0;
}
+ /*
+ if (help || ver) {
+ printf ("\nGDB is free software, covered by the GNU General Public License, and you are\n");
+ printf ("welcome to change it and/or distribute copies of it under certain conditions.\n");
+ }
+ */
+
if (help || (argc - info - dump - copy - debug) < 2) {
- printf ("\nUsage:\n %s [options] device ...\n", argv[0]);
+ printf ("\nUsage:\n %s [options] device ...\n", basename (argv[0]));
printf ("\nOptions:\n"
- " --info A concise list of partitions (default)\n"
- " --dump The contents of the database in detail\n"
- " --copy Write the database to a file\n"
- " --debug Display lots of debugging information\n"
- " --help Show this short help\n\n");
+ " --info A concise list of partitions (default)\n"
+ " --dump The contents of the database in detail\n"
+ " --copy Write the database to a file\n"
+ " --debug Display lots of debugging information\n"
+ " --version display the version number\n"
+ " --help Show this short help\n\n");
+ return 1;
+ }
+
+ if (ver) {
+ printf ("\nldminfo v0.0.6-pre\n\n");
return 1;
}
|