summary refs log tree commit diff stats
path: root/generator/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'generator/main.cpp')
-rw-r--r--generator/main.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/generator/main.cpp b/generator/main.cpp index c958421..94bf0a1 100644 --- a/generator/main.cpp +++ b/generator/main.cpp
@@ -4,20 +4,21 @@
4#include "generator.h" 4#include "generator.h"
5 5
6void printUsage() { 6void printUsage() {
7 std::cout << "usage: generator agid wordnet cmudict wordfreq output" 7 std::cout << "usage: generator agid wordnet cmudict wordfreq datadir output"
8 << std::endl; 8 << std::endl;
9 std::cout << "agid :: path to an AGID infl.txt file" << std::endl; 9 std::cout << "agid :: path to an AGID infl.txt file" << std::endl;
10 std::cout << "wordnet :: path to a WordNet prolog data directory" 10 std::cout << "wordnet :: path to a WordNet prolog data directory"
11 << std::endl; 11 << std::endl;
12 std::cout << "cmudict :: path to a CMUDICT pronunciation file" << std::endl; 12 std::cout << "cmudict :: path to a CMUDICT pronunciation file" << std::endl;
13 std::cout << "wordfreq :: path to a word frequency CSV file" << std::endl; 13 std::cout << "wordfreq :: path to a word frequency CSV file" << std::endl;
14 std::cout << "datadir :: path to the Lingo Randomizer datadir" << std::endl;
14 std::cout << "output :: datafile output path" << std::endl; 15 std::cout << "output :: datafile output path" << std::endl;
15} 16}
16 17
17int main(int argc, char** argv) { 18int main(int argc, char** argv) {
18 if (argc == 6) { 19 if (argc == 7) {
19 try { 20 try {
20 generator app(argv[1], argv[2], argv[3], argv[4], argv[5]); 21 generator app(argv[1], argv[2], argv[3], argv[4], argv[5], argv[6]);
21 22
22 try { 23 try {
23 app.run(); 24 app.run();