Skip to content

Commit 51c03f2

Browse files
committed
Fix bug in CLI argument handling
Handling an argument means removing it from the list.
1 parent ba2a666 commit 51c03f2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/org/scijava/desktop/links/console/LinkArgument.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public class LinkArgument extends AbstractConsoleArgument {
5757
public void handle(final LinkedList<String> args) {
5858
if (linkService == null) return; // no service to handle links
5959
if (args.isEmpty()) return; // no argument to check
60-
final URI uri = link(args.getFirst());
60+
final URI uri = link(args.removeFirst());
6161
if (uri == null) return; // not a URI
6262
linkService.handle(uri);
6363
}

0 commit comments

Comments
 (0)