diff options
author | Chris Dyer <cdyer@cs.cmu.edu> | 2011-02-13 22:41:46 -0500 |
---|---|---|
committer | Chris Dyer <cdyer@cs.cmu.edu> | 2011-02-13 22:41:46 -0500 |
commit | a6ce17719ccd39d2537dc6155adaab7184a313a4 (patch) | |
tree | 28962ccb51f1985b7cd726f6d126c4e9f0d071f0 /decoder/decoder.cc | |
parent | d69cee7a46d63b585e319d93429df27717e5043c (diff) |
phrasinator v1
Diffstat (limited to 'decoder/decoder.cc')
-rw-r--r-- | decoder/decoder.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/decoder/decoder.cc b/decoder/decoder.cc index 478a1cf3..3d818429 100644 --- a/decoder/decoder.cc +++ b/decoder/decoder.cc @@ -453,7 +453,9 @@ DecoderImpl::DecoderImpl(po::variables_map& conf, int argc, char** argv, istream cout << endl; exit(0); } - ShowBanner(); + if (conf.count("quiet")) + SetSilent(true); + if (!SILENT) ShowBanner(); } if (conf.count("show_config")) // special handling needed because we only want to notify() once. show_config=true; @@ -467,6 +469,8 @@ DecoderImpl::DecoderImpl(po::variables_map& conf, int argc, char** argv, istream po::store(po::parse_config_file(*conff, dconfig_options), conf); } } + if (conf.count("quiet")) + SetSilent(true); if (cfg) po::store(po::parse_config_file(*cfg, dconfig_options), conf); po::notify(conf); if (show_config && !cfg_files.empty()) { @@ -482,8 +486,6 @@ DecoderImpl::DecoderImpl(po::variables_map& conf, int argc, char** argv, istream cerr<<" "<<argv[i]; cerr << "\n\n"; } - if (conf.count("quiet")) - SetSilent(true); if (conf.count("list_feature_functions")) { cerr << "Available feature functions (specify with -F; describe with -u FeatureName):\n"; |