neutrino: fix parameter parsing, rename -blink to --noblink for consistency

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@141 e54a6e83-5905-42d5-8d5c-058d10e6a962


Origin commit data
------------------
Branch: ni/coolstream
Commit: 0bd8d5fa4c
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2010-01-03 (Sun, 03 Jan 2010)



------------------
This commit was generated by Migit
This commit is contained in:
Stefan Seyfried
2010-01-03 15:15:38 +00:00
parent 3e183662cd
commit 3994765bf9

View File

@@ -1893,28 +1893,24 @@ void CNeutrinoApp::CmdParser(int argc, char **argv)
} }
else if ((!strcmp(argv[x], "-xd"))) { else if ((!strcmp(argv[x], "-xd"))) {
cnxt_debug = 1; cnxt_debug = 1;
x++;
} }
else if ((!strcmp(argv[x], "-sd"))) { else if ((!strcmp(argv[x], "-sd"))) {
sections_debug = 1; sections_debug = 1;
x++;
} }
else if ((!strcmp(argv[x], "-zd"))) { else if ((!strcmp(argv[x], "-zd"))) {
zapit_debug = 1; zapit_debug = 1;
x++;
} }
else if (!strcmp(argv[x], "-r")) { else if (!strcmp(argv[x], "-r")) {
if (x < argc) if (x < argc)
xres = atoi(argv[x++]); xres = atoi(argv[++x]);
if (x < argc) if (x < argc)
yres = atoi(argv[x++]); yres = atoi(argv[++x]);
} }
else if (!strcmp(argv[x], "-noblink")) { else if (!strcmp(argv[x], "--noblink")) {
pb_blink = false; pb_blink = false;
x++;
} else { } else {
dprintf(DEBUG_NORMAL, "Usage: neutrino [-u | --enable-update] [-f | --enable-flash] " dprintf(DEBUG_NORMAL, "Usage: neutrino [-u | --enable-update] [-f | --enable-flash] "
"[-v | --verbose 0..3] [-noblink]\n"); "[-v | --verbose 0..3] [--noblink]\n");
exit(1); exit(1);
} }
} }