Skip to content

Commit

Permalink
Fix conversion of array
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardehrenfried committed Sep 24, 2024
1 parent 4ecc5f1 commit 5ad9cc3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cli-tests/cli-tests.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash +x

mvn clean package --no-transfer-progress -DskipTests -Dmaven.source.skip=true -Dmaven.javadoc.skip=true

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;

Expand Down Expand Up @@ -188,15 +189,14 @@ private void printHelp() throws IOException {
protected void runApplication(CommandLine cli, String[] originalArgs)
throws Exception {

var args = cli.getArgList();
var args = Arrays.stream(cli.getArgs()).toList();

if (args.size() < 2) {
printHelp();
System.exit(-1);
}

List<File> inputPaths = args.stream().limit(args.size() - 1).map(File::new
).toList();
List<File> inputPaths = args.stream().limit(args.size() - 1).map(File::new).toList();
LOG.info("input paths: {}", inputPaths);

GtfsTransformer transformer = new GtfsTransformer();
Expand Down

0 comments on commit 5ad9cc3

Please sign in to comment.