From af4adfd71df23240b03afc21811291246d97ef70 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Sun, 23 Nov 2014 19:59:46 +0100 Subject: Fix -h flag --- src/DabMux.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/DabMux.cpp b/src/DabMux.cpp index dc9b22a..4d3af58 100644 --- a/src/DabMux.cpp +++ b/src/DabMux.cpp @@ -340,7 +340,7 @@ int main(int argc, char *argv[]) struct timeval mnsc_time; - /* TODO: + /* TODO: * In a SFN, when reconfiguring the ensemble, the multiplexer * has to be restarted (odr-dabmux doesn't support reconfiguration). * Ideally, we must be able to restart transmission s.t. the receiver @@ -354,6 +354,11 @@ int main(int argc, char *argv[]) if (argc == 2) { // Assume the only argument is a config file string conf_file = argv[1]; + if (conf_file == "-h") { + printUsage(argv[0], stdout); + throw MuxInitException(); + } + try { parse_configfile(conf_file, outputs, ensemble, &enableTist, &FICL, &factumAnalyzer, &limit, &rc, &statsserverport, &edi_conf); -- cgit v1.2.3