【发布时间】:2021-10-21 09:02:04
【问题描述】:
基本上foo(**bar) 在 python 中的作用,这里我想要类似的东西
foo **bar.yaml
那会变成
foo --bar1=1 --bar2=2
bar.yaml 在哪里
bar1: 1
bar2: 2
【问题讨论】:
-
最大的区别在于 Python 知道自己的
dict格式和关键字参数传递。bash不知道 YAML 或foo接受的选项。
标签: bash command-line-interface zsh