Re: [PATCH v4 1/7] test: add test-binary to print the number of ghost messages

Subject: Re: [PATCH v4 1/7] test: add test-binary to print the number of ghost messages

Date: Sat, 09 Apr 2016 08:02:16 -0300

To: Daniel Kahn Gillmor, Notmuch Mail

Cc:

From: David Bremner


Daniel Kahn Gillmor <dkg@fifthhorseman.net> writes:


> +    if (argc < 2) {
> +	std::cerr << "usage: ghost-report xapian-dir" << std::endl;
> +    }
> +
> +    Xapian::Database db(argv[1]);
> +    std::cout << db.get_termfreq("Tghost") << std::endl;
> +}

It's completely my fault, but this should have an exit(1) after printing
the error message.

Thread: