[sword-svn] r541 - trunk/migratetags

scribe at crosswire.org scribe at crosswire.org
Thu Feb 17 13:24:29 EST 2022


Author: scribe
Date: 2022-02-17 13:24:29 -0500 (Thu, 17 Feb 2022)
New Revision: 541

Modified:
   trunk/migratetags/migratetags.cpp
Log:
Cleaned up help text a bit


Modified: trunk/migratetags/migratetags.cpp
===================================================================
--- trunk/migratetags/migratetags.cpp	2022-02-17 17:42:32 UTC (rev 540)
+++ trunk/migratetags/migratetags.cpp	2022-02-17 18:24:29 UTC (rev 541)
@@ -46,12 +46,13 @@
 	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 @@
 	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;


Property changes on: trunk/migratetags/migratetags.cpp
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Revision
\ No newline at end of property


More information about the sword-cvs mailing list