From 3994765bf9850f6806a07b5ecf36db38315393f3 Mon Sep 17 00:00:00 2001 From: Stefan Seyfried Date: Sun, 3 Jan 2010 15:15:38 +0000 Subject: [PATCH] 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: https://github.com/neutrino-images/ni-neutrino/commit/0bd8d5fa4c63fab096588a2197a0f7d20171754a Author: Stefan Seyfried Date: 2010-01-03 (Sun, 03 Jan 2010) ------------------ This commit was generated by Migit --- src/neutrino.cpp | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/neutrino.cpp b/src/neutrino.cpp index cb0b94e45..3362e5b3f 100644 --- a/src/neutrino.cpp +++ b/src/neutrino.cpp @@ -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); } }