google / google/python-fire

How to display class functions in help?

Đang mở
#381 2 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Python
Star
28.2k
Fork
1.5k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.