google / google/python-fire

Help Request - Disable NAME and SYNOPSIS Output

未關閉
#277 2 則留言 2 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Python
星號
28.2k
分支
1.5k
PR 合併指標
30 天內沒有已合併 PR

描述

I'm trying to find a way to disable the additional output that the fire library creates that comes after the process completes. It begins with NAME and includes SYNOPSIS. I have no need for this additional output in my scenario as it could potentially cause trouble for another external process that calls this and is examining the stdout for its own processing.

Here's an example of what I'm describing:
```
M:\Python\Workbench>FireHelpDocumentationExample.py --HowMuchPizza=1
()
NAME
FireHelpDocumentationExample.py --HowMuchPizza=1

SYNOPSIS
FireHelpDocumentationExample.py --HowMuchPizza=1 -
```

I would expect just:
`()`

An example of code I put together that was used to create this example [is here](https://gist.github.com/Sn3akyP3t3/f571c4baf272db191ed59f03359795c0).

貢獻指南

開啟貢獻指南

研究方向

重現 issue 中顯示的命令,並檢查 Python Fire 的說明輸出路徑,找出 NAME 和 SYNOPSIS 在哪裡輸出。確定應如何提供停用該輸出的方式,然後新增覆蓋,證明使用該選項時範例只會產生 `()`。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
python
領域
cli
Issue 類型
功能
難度
3/5
預估耗時
1-2 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
38/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。