summaryrefslogtreecommitdiffstats
path: root/src/DabMux.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/DabMux.cpp')
-rw-r--r--src/DabMux.cpp15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/DabMux.cpp b/src/DabMux.cpp
index 08a3c15..47e92c6 100644
--- a/src/DabMux.cpp
+++ b/src/DabMux.cpp
@@ -351,7 +351,20 @@ int main(int argc, char *argv[])
bool MNSC_increment_time = false;
try {
- if (argc > 1 && strncmp(argv[1], "-e", 2) == 0) { // use external config file
+ if (argc == 1) { // Assume the only argument is a config file
+ string conf_file = argv[1];
+
+ try {
+ parse_configfile(conf_file, outputs, ensemble, &enableTist, &FICL,
+ &factumAnalyzer, &limit, &rc, &statsserverport, &edi_conf);
+ }
+ catch (runtime_error &e) {
+ etiLog.log(error, "Configuration file parsing error: %s\n",
+ e.what());
+ throw MuxInitException();
+ }
+ }
+ else if (argc > 1 && strncmp(argv[1], "-e", 2) == 0) { // use external config file
try {
if (argc != 3) {