diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2014-11-23 19:59:46 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2014-11-23 19:59:46 +0100 |
commit | af4adfd71df23240b03afc21811291246d97ef70 (patch) | |
tree | 52803fb540d16604be84b6b42758ee6aaaac36c6 /src/DabMux.cpp | |
parent | 692f665bcdf48eb76d479a1a92192027c94b7dfa (diff) | |
download | dabmux-af4adfd71df23240b03afc21811291246d97ef70.tar.gz dabmux-af4adfd71df23240b03afc21811291246d97ef70.tar.bz2 dabmux-af4adfd71df23240b03afc21811291246d97ef70.zip |
Fix -h flag
Diffstat (limited to 'src/DabMux.cpp')
-rw-r--r-- | src/DabMux.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
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); |