python-fire
python-fire copied to clipboard
help page shows unwanted information about groups
I have a file called neptune
that just has some standalone functions, no classes or groups.
I create my cli by doing
if __name__ == '__main__':
fire.Fire()
When I do neptune --help
, I see
I don't understand why it says
f - "Character and line based layer over a BufferedIOBase object, buffer"
I don't want to see that information about the f
group when I do neptune --help
A workaround I came up with was to do this instead
if __name__ == '__main__':
fire.Fire({
'cmd1': cmd1,
'cmd2': cmd2,
...
})
This doesn't seem intuitive.
I'd be happy to help fix this if someone wants to point me in the right direction!
I have the same problem.
Yes - confirmed I have the same issue. Documented also in #220
Same problem here. Any update on this issue?
This is what my class looks like
class Pipeline:
"""
Basic pipeline
Args:
val (str): Test value
Attributes:
val (str): Test value
logger (logging.Logger): Logger object
"""
def __init__(self, val):
self.val = val
self.logger = init_logger("pipe")
This is what I get when I run help command.
Any update on this issue?