alecthomas / alecthomas/kingpin

Is it possible to set a StringMap() from environment?

未关闭
#257 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Go
星标
3.6k
派生
279
PR 合并指标
30 天内没有已合并 PR

描述

If I define a StringMap() I can set multiple key/value pairs by repeating the flag:

```
--flag foo=bar --flag baz=bar
```

But this can not work with environment variables because you can only have one variable of the same name:

```
APP_FLAG=foo=bar
```

I could not find a way to set the second parameter with the env var - is this supported? I tried to add a \n to it but it didnt work.

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。