1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-12-26 02:03:24 +01:00

Clarify function of -b switch.

Signed-off-by: Loui Chang <louipc.ist@gmail.com>
This commit is contained in:
Loui Chang 2014-08-16 02:35:21 -04:00
parent f5401df2c7
commit 595e42b587
2 changed files with 3 additions and 4 deletions

View File

@ -17,7 +17,7 @@ application.
.IP "\-4, \-\-ipv4"
Force IPv4 connection
.IP "\-b, \-\-debug
Enable debugging messages (prints to stderr). Redirect output to avoid breaking
Enable stderr for debugging. Redirect output to avoid breaking
the curses interface and better capture messages.
.IP "\-c, \-\-config config\-file"
Use specified

View File

@ -518,7 +518,7 @@ static void print_usage(void)
{
fprintf(stderr, "usage: toxic [OPTION] [FILE ...]\n");
fprintf(stderr, " -4, --ipv4 Force IPv4 connection\n");
fprintf(stderr, " -b --debug Enable debugging\n");
fprintf(stderr, " -b --debug Enable stderr for debugging\n");
fprintf(stderr, " -c, --config Use specified config file\n");
fprintf(stderr, " -d, --default-locale Use default locale\n");
fprintf(stderr, " -f, --file Use specified data file\n");
@ -711,8 +711,7 @@ int main(int argc, char *argv[])
Tox *m = init_tox();
init_term();
/* Enable debugging: This should be refactored to print error messages to
the command window */
/* enable stderr for debugging */
if (!arg_opts.debug)
freopen("/dev/null", "w", stderr);