[PATCH 5/7] CLI: add --leak-report top level option
Jameson Graef Rollins
jrollins at finestructure.net
Sun Jan 20 13:55:14 PST 2013
On Sat, Jan 19 2013, david at tethera.net wrote:
> This roughly mimics the samba4 argument. The presence of the command
> line argument overrides any value of NOTMUCH_TALLOC_REPORT in the
> environment.
> ---
> man/man1/notmuch.1 | 8 ++++++++
> notmuch.c | 18 +++++++-----------
> 2 files changed, 15 insertions(+), 11 deletions(-)
>
> diff --git a/man/man1/notmuch.1 b/man/man1/notmuch.1
> index 6bf9b2e..5c58c41 100644
> --- a/man/man1/notmuch.1
> +++ b/man/man1/notmuch.1
> @@ -70,6 +70,14 @@ Print a synopsis of available commands and exit.
> Print the installed version of notmuch, and exit.
> .RE
>
> +.RS 4
> +.TP 4
> +.BI \-\-leak-report= path
> +
> +Write a detailed report of all memory allocated via talloc to
> +.I path
> +.RE
Do we really need a command line option for this? Why isn't the env var
sufficient? This just seems to me like it clutters the interface, for
an option that is purely for debugging and should rarely if ever be used
by most users.
jamie.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20130120/aeb8119f/attachment.pgp>
More information about the notmuch
mailing list