Skip to content

Commit

Permalink
fix options
Browse files Browse the repository at this point in the history
  • Loading branch information
maxandersen authored and quintesse committed Jun 9, 2022
1 parent 9dc4741 commit fd9ff74
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/main/java/dev/jbang/cli/Alias.java
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ class AliasAdd extends BaseAliasCommand {
"--sources" }, converter = CommaSeparatedConverter.class, description = "Add additional sources.")
List<String> sources;

@CommandLine.Option(names = { "-r", "--resources" }, description = "Add additional resources.")
@CommandLine.Option(names = {
"--files" }, converter = CommaSeparatedConverter.class, description = "Add additional files.")
List<String> resources;

@CommandLine.Option(names = { "--description",
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/dev/jbang/cli/BaseBuildCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ public abstract class BaseBuildCommand extends BaseScriptCommand {
"--sources" }, converter = CommaSeparatedConverter.class, description = "Add additional sources.")
List<String> sources;

@CommandLine.Option(names = { "-f", "--files" }, description = "Add additional files.")
@CommandLine.Option(names = {
"--files" }, converter = CommaSeparatedConverter.class, description = "Add additional files.")
List<String> resources;

@CommandLine.Option(names = { "-m",
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/dev/jbang/cli/Edit.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ public class Edit extends BaseScriptCommand {
"--sources" }, converter = CommaSeparatedConverter.class, description = "Add additional sources.")
List<String> sources;

@CommandLine.Option(names = { "-r", "--resources" }, description = "Add additional resources.")
@CommandLine.Option(names = {
"--files" }, converter = CommaSeparatedConverter.class, description = "Add additional files.")
List<String> resources;

@CommandLine.Option(names = {
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/dev/jbang/cli/ExportMixin.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ public class ExportMixin {
"--sources" }, converter = CommaSeparatedConverter.class, description = "Add additional sources.")
List<String> sources;

@CommandLine.Option(names = { "-r", "--resources" }, description = "Add additional resources.")
@CommandLine.Option(names = {
"--files" }, converter = CommaSeparatedConverter.class, description = "Add additional files.")
List<String> resources;

@CommandLine.Parameters(paramLabel = "scriptOrFile", index = "0", description = "A file or URL to a Java code file", arity = "1")
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/dev/jbang/cli/Info.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ abstract class BaseInfoCommand extends BaseScriptCommand {
"--sources" }, converter = CommaSeparatedConverter.class, description = "Add additional sources.")
List<String> sources;

@CommandLine.Option(names = { "-r", "--resources" }, description = "Add additional resources.")
@CommandLine.Option(names = {
"--files" }, converter = CommaSeparatedConverter.class, description = "Add additional files.")
List<String> resources;

static class ResourceFile {
Expand Down

0 comments on commit fd9ff74

Please sign in to comment.