google / google/python-fire

How to display class functions in help?

オープン
#381 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Python
スター
28.2k
フォーク
1.5k
PR マージ指標
30日以内にマージされた PR はありません

説明

Hey,
I am using a class like:
```
class Foo:
def __init__(self, name):
self.name=name

@property
def info(self):
return self.name

def do_somthing(self, arg1):
return do_it(arg1)

if __name__ == '__main__':
fire.Fire(Foo)
```
I like to be able to see in the help the functions/properties in Foo class not only the args in the constructor.
Does it possible?

Thanks

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。