diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2014-01-03 15:26:48 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2014-01-03 15:26:48 +0100 |
commit | a371dac335ac4b312c0a395ded38b1b27578a360 (patch) | |
tree | b8670d12935cfa32de41fced345d14bfa4079842 /src/DabMux.cpp | |
parent | 05454bf22cf3e26ad4b12638dfed00e0a9377acc (diff) | |
download | dabmux-a371dac335ac4b312c0a395ded38b1b27578a360.tar.gz dabmux-a371dac335ac4b312c0a395ded38b1b27578a360.tar.bz2 dabmux-a371dac335ac4b312c0a395ded38b1b27578a360.zip |
replace CRC-DabMux-cfg by -e configuration option
Diffstat (limited to 'src/DabMux.cpp')
-rw-r--r-- | src/DabMux.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
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); |