google / google/python-fire

help page shows unwanted information about groups

Aperta
#204 4 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Python
Stelle
28.2k
Fork
1.5k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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!

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.