Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
h908714124 authored Mar 6, 2024
1 parent 1d7f869 commit 81a9dfb
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,11 @@ 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));
}

````

In addition to `parseOrExit`, the generated parser has a basic and side-effect free `parse` method.
This can be used to fine-tune the help and error messages for your users.

### Standard types

Some types don't need a custom converter. See [StandardConverters.java](https://github.com/jbock-java/jbock/blob/master/jbock/src/main/java/net/jbock/contrib/StandardConverters.java).
Expand Down

0 comments on commit 81a9dfb

Please sign in to comment.