summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpancake <pancake@dazo>2007-04-26 00:30:46 +0200
committerpancake <pancake@dazo>2007-04-26 00:30:46 +0200
commit5e3de1ba068f9f83265458e326e46177737d6abe (patch)
treeb942d1f7265b93e3ef240434c1ee073ca2f61fdd
parent5b5425e0d06ac2a320ee182f2de9e805489e7e66 (diff)
download0xFFFF-5e3de1ba068f9f83265458e326e46177737d6abe.tar.bz2
* Argument 'help' for the -f flag provides information about the rd flags
-rw-r--r--src/main.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 6218597..55e24d9 100644
--- a/src/main.c
+++ b/src/main.c
@@ -200,6 +200,15 @@ int main(int argc, char **argv)
reverseto = optarg;
break;
case 'f':
+ if (!strcmp(optarg,"help")) {
+ printf("* Flags are composed of:\n");
+ printf(" 0x02 - disable OMAP watchdog (possibly)\n");
+ printf(" 0x04 - disable RETU watchdog (possibly)\n");
+ printf(" 0x08 - disable lifeguard reset\n");
+ printf(" 0x10 - enable serial console\n");
+ printf(" 0x20 - disable USB timeout\n");
+ exit(1);
+ }
rd_flags = (unsigned short) strtoul(optarg, NULL, 16);
case 'U':
usb_mode = atoi(optarg);