Skip to content

Commit

Permalink
asterisk.c: Fix option warning for remote console. (asterisk#103)
Browse files Browse the repository at this point in the history
Commit 09e989f
categorized the T option as not being compatible
with remote consoles, but they do affect verbose
messages with remote console. This fixes this.

Resolves: asterisk#102
  • Loading branch information
InterLinked1 authored May 22, 2023
1 parent 57eb7e2 commit ad6ff4c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions doc/asterisk.8
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,7 @@ then move them into the final location when done.
.TP
\-T
Add timestamp to all non-command related output going to the console
when running with verbose and/or logging to the console. Can only be
used at startup (e.g. not with remote console mode).
when running with verbose and/or logging to the console.
.TP
\-U \fIuser\fR
Run as user \fIuser\fR instead of the
Expand Down
2 changes: 1 addition & 1 deletion main/asterisk.c
Original file line number Diff line number Diff line change
Expand Up @@ -3755,6 +3755,7 @@ int main(int argc, char *argv[])
case 'r': /* remote */
/*! \note Can ONLY be used with remote console */
case 's': /* set socket path */
case 'T': /* timestamp */
case 'V': /* version */
case 'v': /* verbose */
case 'W': /* white background */
Expand All @@ -3772,7 +3773,6 @@ int main(int argc, char *argv[])
case 'i': /* init keys */
case 'n': /* no color */
case 'p': /* high priority */
case 'T': /* timestamp */
case 't': /* cache record files */
case 'U': /* run user */
fprintf(stderr, "'%c' option is not compatible with remote console mode and has no effect.\n", c);
Expand Down

0 comments on commit ad6ff4c

Please sign in to comment.