Added a (somewhat cryptic) usage note when run with '--help' argument

for slow learners like me.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3090 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Tyler Dauwalder 2003-04-21 07:56:17 +00:00
parent 91ae8a2423
commit 67d102db0b

View File

@ -34,6 +34,15 @@ main(int argc, char **argv)
int seed;
char *disk_name = "big_file";
myfs_info *myfs;
if (argv[1] && strcmp(argv[1], "--help") == 0) {
printf("----------------------------------------------------------------------\n");
printf("Ultra neat-o userland filesystem testing shell thingy\n");
printf("----------------------------------------------------------------------\n");
printf("usage: %s [%%s:DISK_IMAGE=big_file|%%d:RANDOM_SEED]\n", argv[0]);
printf("\n");
exit(0);
}
if (argv[1] != NULL && !isdigit(argv[1][0]))
disk_name = argv[1];