google / google/python-fire

[help] Display custom docstring from functions

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

描述

Hi. There's a way to use my doc string when running from command line?
This is the default behavior:
```
ERROR: The function received no value for the required argument: uuid
Usage: hc-fail UUID
optional flags: --log | --wait

For detailed information on this command, run:
hc-fail --help
```
I wanna see my doc string help, not the Fire one. This is possible?
i.e.
```
Make a health check fail right away
Parameters
----------
uuid :
uuid from the health check task.
log :
Create a custom log message.
```

貢獻指南

開啟貢獻指南

研究方向

首先閱讀 Python Fire 對命令列說明和 docstring 的處理,然後使用包含範例 docstring 的函式重現所示的 hc-fail 輸出。確認是否可以在不變更現有錯誤和使用行為的情況下提供所要求的自訂說明;當函式文件依要求顯示並由測試涵蓋時,即視為完成。

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

評估

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

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

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