Skip to content

Commit

Permalink
motis config: fix crash with no parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
felixguendling committed Jan 7, 2025
1 parent c886f9b commit 8615be0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exe/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ int main(int ac, char** av) {
"\n\n"
"Example: motis config germany-latest.osm.pbf "
"germany.gtfs.zip\n");
return paths.front() == "--help" ? 0 : 1;
return paths.empty() ? 1 : 0;
}
std::ofstream{"config.yml"} << config::read_simple(paths) << "\n";
return 0;
Expand Down

0 comments on commit 8615be0

Please sign in to comment.