File tree Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,21 @@ void realMain(LambdaIndexerOptions const & options);
68
68
int mkindexMain (int const argc, char const ** argv)
69
69
{
70
70
LambdaIndexerOptions options;
71
+
72
+ #ifdef NDEBUG
73
+ try
74
+ {
75
+ parseCommandLine (options, argc, argv);
76
+ }
77
+ catch (sharg::parser_error const & ext) // catch user errors
78
+ {
79
+ std::cerr << " \n\n ERROR: during command line parsing\n "
80
+ << " \" " << ext.what () << " \"\n " ;
81
+ return -1 ;
82
+ }
83
+ #else
71
84
parseCommandLine (options, argc, argv);
85
+ #endif
72
86
73
87
#ifdef NDEBUG
74
88
try
Original file line number Diff line number Diff line change @@ -73,7 +73,21 @@ void realMain(LambdaOptions const & options);
73
73
int searchMain (int const argc, char const ** argv)
74
74
{
75
75
LambdaOptions options;
76
+
77
+ #ifdef NDEBUG
78
+ try
79
+ {
80
+ parseCommandLine (options, argc, argv);
81
+ }
82
+ catch (sharg::parser_error const & ext) // catch user errors
83
+ {
84
+ std::cerr << " \n\n ERROR: during command line parsing\n "
85
+ << " \" " << ext.what () << " \"\n " ;
86
+ return -1 ;
87
+ }
88
+ #else
76
89
parseCommandLine (options, argc, argv);
90
+ #endif
77
91
78
92
#ifdef _OPENMP
79
93
omp_set_num_threads (options.threads - options.lazyQryFile ); // reserve one thread for I/O when lazy-loading
You can’t perform that action at this time.
0 commit comments