mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-25 12:03:02 +01:00
Clarify function of -b switch.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
This commit is contained in:
parent
f5401df2c7
commit
595e42b587
@ -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
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user