summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTroy A. Griffitts <scribe@crosswire.org>2022-02-17 18:24:29 +0000
committerTroy A. Griffitts <scribe@crosswire.org>2022-02-17 18:24:29 +0000
commit19c2ef35f2cbdff85a34440694cddfed1a761727 (patch)
tree5bf770b51ba99829e7dff8492185f2aebaa69500
parentbaa326c09201d76f02c28168ab4eaad427596b48 (diff)
downloadsword-tools-19c2ef35f2cbdff85a34440694cddfed1a761727.tar.gz
Cleaned up help text a bit
git-svn-id: https://www.crosswire.org/svn/sword-tools/trunk@541 07627401-56e2-0310-80f4-f8cd0041bdcd
-rw-r--r--migratetags/migratetags.cpp15
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;