- if(argc < (optcnt + 2)) {
- printf("usage: %s -e <mtdname> <image name>\n", argv[0]);
+ if(showHelp || argc < (optcnt + 2)) {
+ printf("usage: %s [-e] <mtdname> [image name]\n", argv[0]);
+ printf(" -e Use mtd ecc. Default: do not use mtd ecc\n");
+ printf(" mtdname Name of mtd device\n");
+ printf(" image name Name of optional image file\n\n");
+ printf("Function: Formats a NAND mtd device for YAFFS. If the optional\n"
+ "image file is specified, then the file system is loaded with\n"
+ "this image.\n\n");