[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 5de4ac2 6/7: Add an inchoate '--test_db' opti
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 5de4ac2 6/7: Add an inchoate '--test_db' option |
Date: |
Mon, 4 Mar 2019 12:06:41 -0500 (EST) |
branch: master
commit 5de4ac2b570e82e08be5db302b3b0668369c9b79
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Add an inchoate '--test_db' option
For the nonce, this does the same thing '--print_db' does. Soon it will
have its own implementation that will test each product database for
internal consistency, beginning with its 7702 and 7702A tables.
---
main_cli.cpp | 7 +++++++
skeleton.cpp | 7 +++++++
2 files changed, 14 insertions(+)
diff --git a/main_cli.cpp b/main_cli.cpp
index 6575b0d..e495448 100644
--- a/main_cli.cpp
+++ b/main_cli.cpp
@@ -175,6 +175,7 @@ void process_command_line(int argc, char* argv[])
{"profile" ,NO_ARG ,0 ,'o' ,0 ,"set up for profiling and exit"},
{"print_db" ,NO_ARG ,0 ,'p' ,0 ,"print products and exit"},
{"selftest" ,NO_ARG ,0 ,'s' ,0 ,"perform self test and exit"},
+ {"test_db" ,NO_ARG ,0 ,'t' ,0 ,"test products and exit"},
{"pyx" ,REQD_ARG ,0 ,'x' ,0 ,"for docimasy"},
{0 ,NO_ARG ,0 ,0 ,0 ,""}
};
@@ -386,6 +387,12 @@ void process_command_line(int argc, char* argv[])
}
break;
+ case 't':
+ {
+ print_all_databases = true;
+ }
+ break;
+
case 'x':
{
global_settings::instance().set_pyx(getopt_long.optarg);
diff --git a/skeleton.cpp b/skeleton.cpp
index 2bac0bf..f1e7c26 100644
--- a/skeleton.cpp
+++ b/skeleton.cpp
@@ -1202,6 +1202,7 @@ bool Skeleton::ProcessCommandLine()
{"file" ,REQD_ARG ,0 ,'f' ,0 ,"input file to run"},
{"help" ,NO_ARG ,0 ,'h' ,0 ,"display this help and exit"},
{"print_db" ,NO_ARG ,0 ,'p' ,0 ,"print products and exit"},
+ {"test_db" ,NO_ARG ,0 ,'t' ,0 ,"test products and exit"},
{"pyx" ,REQD_ARG ,0 ,'x' ,0 ,"for docimasy"},
{0 ,NO_ARG ,0 ,0 ,0 ,""}
};
@@ -1286,6 +1287,12 @@ bool Skeleton::ProcessCommandLine()
}
break;
+ case 't':
+ {
+ print_databases();
+ }
+ break;
+
case 'x':
{
global_settings::instance().set_pyx(getopt_long.optarg);
- [lmi-commits] [lmi] master updated (c79894b -> f241d25), Greg Chicares, 2019/03/04
- [lmi-commits] [lmi] master 9b2b7b4 2/7: Withdraw an unnecessary friendship, Greg Chicares, 2019/03/04
- [lmi-commits] [lmi] master 9b0f657 1/7: Improve documentation, Greg Chicares, 2019/03/04
- [lmi-commits] [lmi] master ab481ed 4/7: Consolidate and renumber octal options, Greg Chicares, 2019/03/04
- [lmi-commits] [lmi] master 6ab9a90 5/7: Sort short options alphabetically, Greg Chicares, 2019/03/04
- [lmi-commits] [lmi] master 5477797 3/7: Add '--prospicience' command-line argument for CLI binary, Greg Chicares, 2019/03/04
- [lmi-commits] [lmi] master 5de4ac2 6/7: Add an inchoate '--test_db' option,
Greg Chicares <=
- [lmi-commits] [lmi] master f241d25 7/7: Make CLI and GUI getopt code more similar, Greg Chicares, 2019/03/04