google / google/python-fire

Man help page shows up for objects even if `-- --help` isn't passed

未关闭
#213 2 条评论 2 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Python
星标
28.2k
派生
1.5k
PR 合并指标
30 天内没有已合并 PR

描述

Based on my understanding of the [`_PrintResult`](https://github.com/google/python-fire/blob/master/fire/core.py#L241) function, it seems like the help page with possible methods will pop up if returning an object, even if `-- --help` isn't passed. It seems like the help page should only pop up if explicitly added.

Here is an example I came across:
I set up a fire script to connect to a sql database and run a sql file or code and return the connections cursor. Sometimes I want want to run a file creating a table or insert data without calling another method. Other times I may want to call `- fetchone` to see one row of results from a query. I don't want man pages to pop up the times where I don't call another method on the cursor, but that is what happens.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。