summary refs log tree commit diff stats
path: root/generator/main.cpp
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2023-12-02 17:10:48 -0500
committerStar Rauchenberger <fefferburbia@gmail.com>2023-12-02 17:10:48 -0500
commit17778ac3ab8598eb3d43f562a092b9aa7c0a1a42 (patch)
tree64604b3f8ef46e3f439229c80837e60768933c06 /generator/main.cpp
parent90fbd47ca02f1a723134302ca978a7f9ef0eac04 (diff)
downloadlingo-randomizer-17778ac3ab8598eb3d43f562a092b9aa7c0a1a42.tar.gz
lingo-randomizer-17778ac3ab8598eb3d43f562a092b9aa7c0a1a42.tar.bz2
lingo-randomizer-17778ac3ab8598eb3d43f562a092b9aa7c0a1a42.zip
Filter out profane words
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();