You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+6-1Lines changed: 6 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -8,9 +8,10 @@
8
8
- Added ability to use unicode NEL character (`\u0085`) to manually break lines in help output ([#214](https://github.com/ajalt/clikt/issues/214))
9
9
- Added `help("")` extension to options and arguments as an alternative to passing the help as an argument ([#207](https://github.com/ajalt/clikt/issues/207))
10
10
- Added `valueSourceKey` parameter to `option`
11
-
- Added `check{}` extensions to options and arguments as an alternative to `validate`
11
+
- Added `check()` extensions to options and arguments as an alternative to `validate()`
12
12
- Added `prompt` and `confirm` functions to `CliktCommand` that call the `TermUi` equivalents with the current console.
13
13
- Added `echo()` overload with no parameters to CliktCommand that prints a newline by itself.
14
+
- Added localization support. You can set an implementation of the `Localization` interface on your context with your translations. ([#227](https://github.com/ajalt/clikt/issues/227))
14
15
15
16
### Fixed
16
17
- Hidden options will no longer be suggested as possible typo corrections. ([#202](https://github.com/ajalt/clikt/issues/202))
@@ -22,10 +23,14 @@
22
23
-`Argument.help` and `Option.help` properties have been renamed to `argumentHelp` and `optionHelp`, respectively. The `help` parameter names to `option()` and `argument()` are unchanged.
23
24
-`commandHelp` and `commandHelpEpilog` properties on `CliktCommand` are now `open`, so you can choose to override them instead of passing `help` and `epilog` to the constructor.
24
25
- Replaced `MapValueSource.defaultKey` with `ValueSource.getKey()`, which is more customizable.
26
+
-`Option.metavar`, `Option.parameterHelp`, `OptionGroup.parameterHelp` and `Argument.parameterHelp` properties are now functions.
27
+
- Changed constructor parameters of `CliktHelpFormatter`. Added `localization` and removed `usageTitle`, `optionsTitle`, `argumentsTitle`, `commandsTitle`, `optionsMetavar`, and `commandMetavar`. Those strings are now defined on equivalently named functions on `Localization`.
25
28
26
29
### Removed
27
30
- Removed `envvarSplit` parameter from `option()` and `convert()`. Option values from environment variables are no longer split automatically. ([#177](https://github.com/ajalt/clikt/issues/177))
28
31
- Removed public constructors from the following classes: `ProcessedArgument`, `OptionWithValues`, `FlagOption`, `CoOccurringOptionGroup`, `ChoiceGroup`, `MutuallyExclusiveOptions`.
32
+
-`MissingParameter` exception replaced with `MissingOption` and `MissingArgument`
33
+
- Removed `Context.helpOptionMessage`. Override `Localization.helpOptionMessage` and set it on your context instead.
29
34
30
35
### Deprecated
31
36
-`@ExperimentalCompletionCandidates` and `@ExperimentalValueSourceApi` annotations. These APIs no longer require an opt-in.
0 commit comments