diff options
-rw-r--r-- | migratetags/migratetags.cpp | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/migratetags/migratetags.cpp b/migratetags/migratetags.cpp index ecb1ed0..e7d6741 100644 --- a/migratetags/migratetags.cpp +++ b/migratetags/migratetags.cpp @@ -46,12 +46,13 @@ void usage(const char *progName, const char *error = 0) { if (error) fprintf(stderr, "\n%s: %s\n", progName, error); fprintf(stderr, "\n=== migratetags (Revision $Rev$) Migrate word morphology from one module to another.\n"); fprintf(stderr, "\nusage: %s [options]\n", progName); - fprintf(stderr, " -v\t\t\t verbose: print lots of information while processing\n"); + fprintf(stderr, " -ss <moduleName>\t provide the Strong's source module name\n"); + fprintf(stderr, " -t <moduleName>\t provide the target module name\n"); + fprintf(stderr, " -e <exception file>\t provide an ini-style .conf file with overriding tag exceptions.\n"); fprintf(stderr, " -fa\t\t\t filter accents: remove Greek accents from final text\n"); fprintf(stderr, " -fc\t\t\t filter critical apparatus markers from final text\n"); - fprintf(stderr, " -ss <moduleName>\t provide the Strong's source module name\n"); - fprintf(stderr, " -t <moduleName>\t provide the target module name\n"); - fprintf(stderr, " -e <exception file>\t provide an ini-style .conf file with overriding tag exceptions.\n"); + fprintf(stderr, " -v\t\t\t verbose: print lots of information while processing\n"); + fprintf(stderr, " --help\t\t\t this usage message\n"); fprintf(stderr, "\n\n"); exit(-1); } @@ -95,13 +96,15 @@ int main(int argc, char **argv) { lib.setGlobalOption("Textual Variants", "Secondary Reading"); SWModule *m = lib.getModule(targetModuleName); if (!m) { - cerr << "couldn't find target module: " << targetModuleName << ".\n"; + cerr << "\nERROR: couldn't find target module: " << targetModuleName << ".\n"; + if (argc < 2) usage(progName, "Use -t to supply target module name"); exit(1); } SWModule &targetMod = *m; m = lib.getModule(strongsSourceModuleName.c_str()); if (!m) { - cerr << "couldn't find source module: " << strongsSourceModuleName.c_str() << ".\n"; + cerr << "\nERROR: couldn't find Strong's source module: " << strongsSourceModuleName.c_str() << ".\n"; + if (argc < 2) usage(progName, "Use -ss to supply Strong's source module name"); exit(1); } SWModule &fromMod = *m; |