mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
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
This commit is contained in:
@@ -1893,28 +1893,24 @@ void CNeutrinoApp::CmdParser(int argc, char **argv)
|
||||
}
|
||||
else if ((!strcmp(argv[x], "-xd"))) {
|
||||
cnxt_debug = 1;
|
||||
x++;
|
||||
}
|
||||
else if ((!strcmp(argv[x], "-sd"))) {
|
||||
sections_debug = 1;
|
||||
x++;
|
||||
}
|
||||
else if ((!strcmp(argv[x], "-zd"))) {
|
||||
zapit_debug = 1;
|
||||
x++;
|
||||
}
|
||||
else if (!strcmp(argv[x], "-r")) {
|
||||
if (x < argc)
|
||||
xres = atoi(argv[x++]);
|
||||
xres = atoi(argv[++x]);
|
||||
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;
|
||||
x++;
|
||||
} else {
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user