@@ -44,6 +44,7 @@ static void print_help() {
44
44
<< " -b, --bbox-overlap=OVERLAP - Set overlap when splitting polygons\n "
45
45
<< " -i, --no-index - Do not create spatial indexes in output db\n "
46
46
<< " -d, --debug - Enable debugging output\n "
47
+ << " -e, --exit-ignore-warnings - Exit with code 0 even if there are warnings\n "
47
48
<< " -f, --overwrite - Overwrite output file if it already exists\n "
48
49
<< " -g, --gdal-driver=DRIVER - GDAL driver (SQLite or ESRI Shapefile)\n "
49
50
<< " -l, --output-lines - Output coastlines as lines to database file\n "
@@ -99,6 +100,7 @@ int Options::parse(int argc, char* argv[]) {
99
100
{" close-distance" , required_argument, nullptr , ' c' },
100
101
{" no-index" , no_argument, nullptr , ' i' },
101
102
{" debug" , no_argument, nullptr , ' d' },
103
+ {" exit-ignore-warnings" , no_argument, nullptr , ' e' },
102
104
{" gdal-driver" , required_argument, nullptr , ' g' },
103
105
{" help" , no_argument, nullptr , ' h' },
104
106
{" output-lines" , no_argument, nullptr , ' l' },
@@ -115,7 +117,7 @@ int Options::parse(int argc, char* argv[]) {
115
117
};
116
118
117
119
while (true ) {
118
- const int c = getopt_long (argc, argv, " b:c:idg :hlm:o:p:rfs:S:vV" , long_options, nullptr );
120
+ const int c = getopt_long (argc, argv, " b:c:ideg :hlm:o:p:rfs:S:vV" , long_options, nullptr );
119
121
if (c == -1 ) {
120
122
break ;
121
123
}
@@ -134,6 +136,9 @@ int Options::parse(int argc, char* argv[]) {
134
136
debug = true ;
135
137
std::cerr << " Enabled debug option\n " ;
136
138
break ;
139
+ case ' e' :
140
+ exit_ignore_warnings = true ;
141
+ break ;
137
142
case ' h' :
138
143
print_help ();
139
144
return return_code_ok;
0 commit comments