diff options
author | Kenneth Heafield <github@kheafield.com> | 2012-10-17 17:45:58 +0400 |
---|---|---|
committer | Kenneth Heafield <github@kheafield.com> | 2012-10-17 17:45:58 +0400 |
commit | f4116ec6f5bc2740350ed627a5cbfc99a8c2df16 (patch) | |
tree | 6f1269472bbe7133528b6515c45d38624b4c0881 /OnDiskPt | |
parent | 03f602e4d495461ce481f386ae57910e1e594b9b (diff) |
Add usage message for OnDiskPt
Diffstat (limited to 'OnDiskPt')
-rw-r--r-- | OnDiskPt/Main.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/OnDiskPt/Main.cpp b/OnDiskPt/Main.cpp index acff2d405..f43ba9973 100644 --- a/OnDiskPt/Main.cpp +++ b/OnDiskPt/Main.cpp @@ -44,7 +44,10 @@ int main (int argc, char * const argv[]) Moses::ResetUserTime(); Moses::PrintUserTime("Starting"); - assert(argc == 8); + if (argc != 8) { + std::cerr << "Usage: " << argv[0] << " numSourceFactors numTargetFactors numScores tableLimit inputPath outputPath" << std::endl; + return 1; + } int numSourceFactors = Moses::Scan<int>(argv[1]) , numTargetFactors = Moses::Scan<int>(argv[2]) |