Skip to content

Commit

Permalink
Append alias arguments from jbang-catalog.json to the end of the comm…
Browse files Browse the repository at this point in the history
…and (#1910)
  • Loading branch information
bartoszpop committed Jan 23, 2025
1 parent f80695f commit 2fcb454
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/dev/jbang/source/CmdGeneratorBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,9 @@ private void updateFromAlias(Alias alias) {
if (arguments.isEmpty()) {
setArguments(handleRemoteFiles(alias.arguments));
} else if (alias.arguments != null && !alias.arguments.isEmpty()) {
List<String> args = new ArrayList<>(handleRemoteFiles(alias.arguments));
List<String> args = new ArrayList<>();
args.addAll(arguments);
args.addAll(handleRemoteFiles(alias.arguments));
setArguments(args);
}
if (runtimeOptions.isEmpty()) {
Expand Down

0 comments on commit 2fcb454

Please sign in to comment.