From 19c2ef35f2cbdff85a34440694cddfed1a761727 Mon Sep 17 00:00:00 2001 From: "Troy A. Griffitts" Date: Thu, 17 Feb 2022 18:24:29 +0000 Subject: Cleaned up help text a bit git-svn-id: https://www.crosswire.org/svn/sword-tools/trunk@541 07627401-56e2-0310-80f4-f8cd0041bdcd --- migratetags/migratetags.cpp | 15 +++++++++------ 1 file 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 \t provide the Strong's source module name\n"); + fprintf(stderr, " -t \t provide the target module name\n"); + fprintf(stderr, " -e \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 \t provide the Strong's source module name\n"); - fprintf(stderr, " -t \t provide the target module name\n"); - fprintf(stderr, " -e \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; -- cgit