Skip to content

Commit

Permalink
release v0.4.0
Browse files Browse the repository at this point in the history
Change-Id: I8e27ba542be3de81d6a444e405c4bc3d88599046
  • Loading branch information
jxskiss committed Jun 18, 2022
1 parent c519f55 commit 5b254ad
Showing 1 changed file with 8 additions and 20 deletions.
28 changes: 8 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ Also, there are some sophisticated examples:
- `SetOptions` sets optional options for App.
- `SetGlobalFlags` sets global flags, global flags are available to all commands.
- `Add` adds a command.
- `AddAlias` adds an alias name for a command.
- `AddHidden` adds a hidden command.
- `AddGroup` adds a group explicitly. A group is a common prefix for some commands.
It's not required to add group before adding sub commands, but user can use this function
Expand Down Expand Up @@ -255,36 +256,23 @@ If there is slice or map arguments, it will match all following arguments.

## Changelog

### v0.4.0 (upcoming)
### v0.4.0 @ 2022-06-18

- New: new option to allow parsing posix-style single token multiple options.
- New: support alias commands.
- Change: optimize help padding.
- Change: remove api `KeepCommandOrder`, replaced by `SetOptions`.

### v0.3.1 @ 2022-06-17

- Fix parsing flag `--mcli-show-hidden`
- Change: tidy code for better maintainability

### v0.3.0 @ 2022-06-16

- Fix: reflect.Pointer when using with Go below 1.18.
- Fix: reflect.Pointer not exists when using with Go below 1.18.
- Fix: error handling for invalid command.
- New: add options `ReplaceUsage` and `WithFooter` to customize usage help.
- New: add option to allow parsing posix-style single token multiple options.
- New: support alias commands.
- Change: remove api `KeepCommandOrder`, replaced by `SetOptions`.
- Change: optimize help padding.
- Change: refactor code for better maintainability.

### v0.2.1 @ 2022-06-11

- Improve compatibility with flag.FlagSet.

### v0.2.0 @ 2022-06-11

New features:

- Support alternative 'mcli' tag.
- Support global flags.
- Support keep command order in help.
- Improve compatibility with flag.FlagSet.
- Improve examples and docs.

### v0.1.1 @ 2022-03-17
Expand Down

0 comments on commit 5b254ad

Please sign in to comment.