From 67d102db0bf86b15ba78bbbfa7fd4b7c058bd6ba Mon Sep 17 00:00:00 2001 From: Tyler Dauwalder Date: Mon, 21 Apr 2003 07:56:17 +0000 Subject: [PATCH] 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 --- src/tests/add-ons/kernel/file_systems/fs_shell/fsh.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/tests/add-ons/kernel/file_systems/fs_shell/fsh.c b/src/tests/add-ons/kernel/file_systems/fs_shell/fsh.c index 7423d90b18..fedf1b0a0c 100644 --- a/src/tests/add-ons/kernel/file_systems/fs_shell/fsh.c +++ b/src/tests/add-ons/kernel/file_systems/fs_shell/fsh.c @@ -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];