From a371dac335ac4b312c0a395ded38b1b27578a360 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Fri, 3 Jan 2014 15:26:48 +0100 Subject: replace CRC-DabMux-cfg by -e configuration option --- src/DabMux.cpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'src/DabMux.cpp') diff --git a/src/DabMux.cpp b/src/DabMux.cpp index 89bb38b..cf1f70c 100644 --- a/src/DabMux.cpp +++ b/src/DabMux.cpp @@ -321,18 +321,15 @@ int main(int argc, char *argv[]) bool MNSC_increment_time = false; - /* TODO Okay, this is clearly not the nicest way to handle the two - * ways of defining the ensemble, but it works. - */ - if (strncmp(basename(argv[0]), "CRC-DabMux-cfg", 16) == 0) { + if (strncmp(argv[1], "-e", 2) == 0) { // use external config file try { - if (argc != 2) { - printUsageConfigfile(argv[0]); + if (argc != 3) { + printUsage(argv[0], stderr); goto EXIT; } - string conf_file = argv[1]; + string conf_file = argv[2]; parse_configfile(conf_file, outputs, ensemble, &enableTist, &FICL, &factumAnalyzer, &limit); -- cgit v1.2.3