aboutsummaryrefslogtreecommitdiff
path: root/toys/posix/tty.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2013-08-18 13:52:08 -0500
committerRob Landley <rob@landley.net>2013-08-18 13:52:08 -0500
commit1afe7fae553244309eaba0eb0379675fe185864a (patch)
treeb54727fbf9b3b07bfe2e1c1fa1666a23cc40b704 /toys/posix/tty.c
parent100fb2399417316fb6d5818fbc4e3a843d189bf3 (diff)
downloadtoybox-1afe7fae553244309eaba0eb0379675fe185864a.tar.gz
Fix usage: lines for a couple commands.
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"