Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
h908714124 authored Sep 5, 2024
1 parent 614349d commit 5b49611
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jbock is a command line parser, which uses the same well-known annotation names
and [picocli](https://github.com/remkop/picocli).
It is an
[annotation processor](https://openjdk.java.net/groups/compiler/processing-code.html)
so it doesn't use runtime reflection, but generates a custom parser at compile time instead.
which does not use runtime reflection, but generates a custom parser at compile time instead.

### Quick rundown

Expand Down Expand Up @@ -70,7 +70,8 @@ The generated class is called `*Parser`.
````java
public static void main(String[] args) {
DeleteCommand command = DeleteCommandParser.parseOrExit(args);
// or: Either<ParsingFailed, DeleteCommand> either = DeleteCommandParser.parse(List.of(args));
// alternatively:
// Either<ParsingFailed, DeleteCommand> either = DeleteCommandParser.parse(List.of(args));
}

````
Expand Down

0 comments on commit 5b49611

Please sign in to comment.