google / google/python-fire

help page shows unwanted information about groups

Open
#204 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
28.2k
Forks
1.5k
PR merge metrics
No merged PRs in 30d

Description

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

![Screen Shot 2019-10-11 at 1 32 24 PM](https://user-images.githubusercontent.com/26889933/66683139-95a6db80-ec2b-11e9-8a30-d928b3352538.png)

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!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.