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:
@@ -34,6 +34,15 @@ main(int argc, char **argv)
|
|||||||
int seed;
|
int seed;
|
||||||
char *disk_name = "big_file";
|
char *disk_name = "big_file";
|
||||||
myfs_info *myfs;
|
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]))
|
if (argv[1] != NULL && !isdigit(argv[1][0]))
|
||||||
disk_name = argv[1];
|
disk_name = argv[1];
|
||||||
|
|||||||
Reference in New Issue
Block a user