Skip to content

Commit

Permalink
fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
jcarranzan committed Sep 20, 2024
1 parent 8496e03 commit 269c991
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,8 @@
@CommandLine.Command(name = "age", mixinStandardHelpOptions = true)
@ApplicationScoped
public class AgeCommand implements Runnable {

private int age;

@CommandLine.Option(names = { "-a", "--age" }, description = "your age", defaultValue = "0")
public void setAge(int age) {
this.age = age;
}
private int age;

@Override
public void run() {
Expand Down
2 changes: 1 addition & 1 deletion quarkus-picocli/src/test/java/PicocliDevIT.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public class PicocliDevIT {
public void verifyErrorForApplicationScopedBeanInPicocliCommand() {
try {
runAsync(ageApp::start);
ageApp.logs().assertContains("Your age is: 30");
ageApp.logs().assertContains("CDI: programmatic lookup problem detected");
} finally {
ageApp.stop();
}
Expand Down

0 comments on commit 269c991

Please sign in to comment.