google / google/python-fire

support for - as parameter

未关闭
#15 3 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
enhancement
主要语言
Python
星标
28.2k
派生
1.5k
PR 合并指标
30 天内没有已合并 PR

描述

as stated here https://docs.python.org/3/library/fileinput.html sometimes
```
echo 'one line' | python3 test.py -
Fire trace:
1. Initial component
2. ('The function received no value for the required argument:', 'file_name')

```
should use std in instead file for input or output

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

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