support for - as parameter
未關閉
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
貢獻指南
研究方向
使用 `echo 'one line' | python3 test.py -` 重現文件中的命令,並追蹤 CLI 如何處理引數 `-`。完成的標準是:`-` 使用標準輸入,而不是產生缺少 `file_name` 的錯誤,同時一般檔案的輸入與輸出行為保持不變。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- python
- 領域
- cli
- Issue 類型
- 缺陷
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100