Skip to content

Commit

Permalink
🔖 version 1.8.29
Browse files Browse the repository at this point in the history
  • Loading branch information
RF-Tar-Railt committed Aug 31, 2024
1 parent ff86de0 commit 46aed81
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 2 deletions.
28 changes: 28 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,33 @@
# 更新日志

## 1.8.29

## 新增

- 内置行为器 `conflict`, 可以用来规定冲突选项/子命令/参数:

```python
from arclet.alconna import Alconna, Option, conflict

alc = Alconna("cmd", Option("--foo"), Option("--bar"), conflict("foo", "bar"))

alc()
```

```shell
$ python conflict.py cmd --foo --bar
选项 foo 与 选项 bar 冲突
```

## 改进

- 子节点的帮助现在会把前面的文本部分加上
- 传入 `CommandMeta`, `behavior` 时现在不需要关键字

## 修复

- 升级 `Tarina` 依赖版本以避免特定python版本下特定字符串导致的 segfault 问题

## 1.8.28

### 修复
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ authors = [
dependencies = [
"typing-extensions>=4.5.0",
"nepattern<1.0.0,>=0.7.6",
"tarina>=0.5.5",
"tarina>=0.5.8",
]
dynamic = ["version"]
requires-python = ">=3.8"
Expand Down
2 changes: 1 addition & 1 deletion src/arclet/alconna/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
from .typing import Up as Up
from .typing import StrMulti as StrMulti

__version__ = "1.8.28"
__version__ = "1.8.29"

# backward compatibility
AnyOne = ANY

0 comments on commit 46aed81

Please sign in to comment.