aboutsummaryrefslogtreecommitdiff
path: root/toys/posix/tty.c
diff options
context:
space:
mode:
Diffstat (limited to 'toys/posix/tty.c')
-rw-r--r--toys/posix/tty.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/toys/posix/tty.c b/toys/posix/tty.c
index 578c9aff..1694d846 100644
--- a/toys/posix/tty.c
+++ b/toys/posix/tty.c
@@ -10,12 +10,14 @@ config TTY
bool "tty"
default y
help
+ usage: tty [-s]
+
Show filename of terminal connected to stdin.
Prints "not a tty" and exits with nonzero status if no terminal
is connected to stdin.
- -s silent mode
+ -s silent, exit code only
*/
#include "toys.h"