google / google/python-fire

help page shows unwanted information about groups

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

説明

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!

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

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

評価

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

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

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