{"input-format", 'I', "format", 0, "Input format: ZAP, CHANNEL, DVBV5 (default: DVBV5)", 0},
{"lna", 'w', "LNA (0, 1, -1)", 0, "enable/disable/auto LNA power", 0},
{"lnbf", 'l', "LNBf_type", 0, "type of LNBf to use. 'help' lists the available ones", 0},
- {"search", 'L', NULL, 0, "search/look for a string inside the traffic", 0},
+ {"search", 'L', "string", 0, "search/look for a string inside the traffic", 0},
{"monitor", 'm', NULL, 0, "monitors de DVB traffic", 0},
{"output", 'o', "file", 0, "output filename (use -o - for stdout)", 0},
{"pat", 'p', NULL, 0, "add pat and pmt to TS recording (implies -r)", 0},
return -1;
}
+ if (!args.traffic_monitor && args.search) {
+ fprintf(stderr, "ERROR: search string can be used only on monitor mode\n");
+ argp_help(&argp, stderr, ARGP_HELP_STD_HELP, PROGRAM_NAME);
+ return -1;
+ }
+
if (args.lnb_name) {
lnb = dvb_sat_search_lnb(args.lnb_name);
if (lnb < 0) {