diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2015-05-15 20:09:38 +0300 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2015-05-15 20:09:38 +0300 |
commit | 39139e7a64fb90c9732dfba2b949808759d214d5 (patch) | |
tree | 7b59136c0b35df7295cb9892318f75a41ca766d6 /phrase-extract/pcfg-extract/pcfg_extract.cc | |
parent | 8afaf7fb2f19748403d89acf1cda41fbe96a7c9e (diff) |
beautify.
Diffstat (limited to 'phrase-extract/pcfg-extract/pcfg_extract.cc')
-rw-r--r-- | phrase-extract/pcfg-extract/pcfg_extract.cc | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/phrase-extract/pcfg-extract/pcfg_extract.cc b/phrase-extract/pcfg-extract/pcfg_extract.cc index becb8edee..29d63b994 100644 --- a/phrase-extract/pcfg-extract/pcfg_extract.cc +++ b/phrase-extract/pcfg-extract/pcfg_extract.cc @@ -43,11 +43,15 @@ #include <string> #include <vector> -namespace MosesTraining { -namespace Syntax { -namespace PCFG { - -int PcfgExtract::Main(int argc, char *argv[]) { +namespace MosesTraining +{ +namespace Syntax +{ +namespace PCFG +{ + +int PcfgExtract::Main(int argc, char *argv[]) +{ // Process command-line options. Options options; ProcessOptions(argc, argv, options); @@ -87,7 +91,8 @@ int PcfgExtract::Main(int argc, char *argv[]) { } void PcfgExtract::ProcessOptions(int argc, char *argv[], - Options &options) const { + Options &options) const +{ namespace po = boost::program_options; std::ostringstream usage_top; @@ -96,7 +101,7 @@ void PcfgExtract::ProcessOptions(int argc, char *argv[], // Declare the command line options that are visible to the user. po::options_description visible(usage_top.str()); visible.add_options() - ("help", "print help message and exit") + ("help", "print help message and exit") ; // Declare the command line options that are hidden from the user |