Why is --debug hidden?

Asked by Robert Ancell on 2010-03-08

Why is --debug hidden from --help?

    /* Deliberately hidden, you get told about this when you file
     * a bug ;-)
     */
    { 0, "debug", NULL, NULL, NULL, NULL, nih_option_debug },

This does nothing but make it harder for people to debug applications using libnih.

Question information

Language:
English Edit question
Status:
Answered
For:
libnih Edit question
Assignee:
No assignee Edit question
Last query:
2010-03-08
Last reply:
2010-03-08

Because debug-level logging is intended to be for developer-eyes only; they are not expected to be translated, and are permitted to be obscure including hex codes and the like.

--verbose is generally considered "sufficient" for most people; Upstart is the model here, even I tend to mostly use --verbose unless Upstart's code is clearly misbehaving.

The idea is thus that you file a bug and get asked for --debug output, but are not expected to understand it yourself

Can you help with this problem?

Provide an answer of your own, or ask Robert Ancell for more information if necessary.

To post a message you must log in.