diff options
author | Tetsuo Kiso <tetsuo-s@is.naist.jp> | 2012-02-01 07:23:15 +0400 |
---|---|---|
committer | Tetsuo Kiso <tetsuo-s@is.naist.jp> | 2012-02-01 07:23:15 +0400 |
commit | cad03f7a0382c339ca3defcf191d6dd861df8b22 (patch) | |
tree | 8edb169e160a2399ded13b4705fbf5b5905fae24 /mert/evaluator.cpp | |
parent | 4d3fd9fd4b8fd84d1c39c9bcf1a055f7947a3fd8 (diff) |
Create a struct for command line options in extractor.
Diffstat (limited to 'mert/evaluator.cpp')
-rw-r--r-- | mert/evaluator.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/mert/evaluator.cpp b/mert/evaluator.cpp index a09c24c85..2fcda0140 100644 --- a/mert/evaluator.cpp +++ b/mert/evaluator.cpp @@ -158,7 +158,6 @@ static struct option long_options[] = { {"help", no_argument, 0, 'h'}, {0, 0, 0, 0} }; -// int option_index; // Options used in evaluator. struct ProgramOption { @@ -180,7 +179,7 @@ struct ProgramOption { has_seed(false) { } }; -void ParseOptions(int argc, char** argv, ProgramOption* opt) { +void ParseCommandOptions(int argc, char** argv, ProgramOption* opt) { int c; int option_index; while ((c = getopt_long(argc, argv, "s:c:R:C:b:r:h", long_options, &option_index)) != -1) { @@ -227,7 +226,7 @@ int main(int argc, char** argv) ResetUserTime(); ProgramOption option; - ParseOptions(argc, argv, &option); + ParseCommandOptions(argc, argv, &option); if (option.bootstrap) { |