Skip to content

Commit

Permalink
Make the man page and -h both mention all available options.
Browse files Browse the repository at this point in the history
Reported-by: Michael Orlitzky <michael@orlitzky.com>
  • Loading branch information
nelhage committed Apr 25, 2011
1 parent 568c654 commit 66888f4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
11 changes: 11 additions & 0 deletions reptyr.1
Expand Up @@ -56,6 +56,17 @@ be passed to e.g.
option. option.
.LP .LP


.B \-s
.IP

By default, reptyr will move any file descriptors in the target that were
connected to the target's controlling terminal to point to the new terminal. The
.B -s
option will cause reptyr to unconditionally attach file descriptors 0, 1, and 2
in the target, even if the target has no controlling terminal or they are not
connected to a terminal.
.LP

.B \-v .B \-v
.IP .IP
Print the version of Print the version of
Expand Down
2 changes: 2 additions & 0 deletions reptyr.c
Expand Up @@ -143,6 +143,8 @@ void usage(char *me) {
fprintf(stderr, " %s -l\n", me); fprintf(stderr, " %s -l\n", me);
fprintf(stderr, " -l Create a new pty pair and print the name of the slave.\n"); fprintf(stderr, " -l Create a new pty pair and print the name of the slave.\n");
fprintf(stderr, " -s Attach fds 0-2 on the target, even if it is not attached to a tty.\n"); fprintf(stderr, " -s Attach fds 0-2 on the target, even if it is not attached to a tty.\n");
fprintf(stderr, " -h Print this help message and exit.\n");
fprintf(stderr, " -v Print the version number and exit.\n");
} }


void check_yama_ptrace_scope(void) { void check_yama_ptrace_scope(void) {
Expand Down

0 comments on commit 66888f4

Please sign in to comment.