Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] ActionBehavior #40

Closed
RF-Tar-Railt opened this issue May 3, 2022 · 1 comment
Closed

[Feature] ActionBehavior #40

RF-Tar-Railt opened this issue May 3, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@RF-Tar-Railt
Copy link
Member

自0.9.0开始,因为默认引入缓存机制,参数动作(ArgAction)会因为原先的解析时运行只会在某个命令首次解析时执行。

因此,考虑将Action的执行行为全权交给一个内置的Behavior

该Behavior的实现需要满足如下要求:

  1. Arpamar 可以访问原 Alconna
  2. Alconna 会在解析器内被生成一个action映射表,表示该Alconna内所有含Action的组件
  3. Arpamar 能够更便捷的访问选项与选项参数

注:特殊的两个选项helpshortcut不受此影响

@RF-Tar-Railt RF-Tar-Railt added the enhancement New feature or request label May 3, 2022
@RF-Tar-Railt
Copy link
Member Author

0.9.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant