Browse Source

Add documentation for the unimplemented show parents feature for #3.

Douglas William Thrift 12 years ago
parent
commit
cc87fa6413
2 changed files with 8 additions and 2 deletions
  1. 3 0
      dtpstree.cpp
  2. 5 2
      man1/dtpstree.1

+ 3 - 0
dtpstree.cpp

@@ -904,6 +904,8 @@ static void help(char *program, option options[], int code = 0)
 			description = "show PIDs; implies -c"; break;
 		case 'r':
 			description = "show only trees rooted at processes with names\n                              that match the regular expression PATTERN"; break;
+		case 's':
+			description = "show parents of the selected process"; break;
 		case 't':
 			description = "show process titles"; break;
 		case 'u':
@@ -975,6 +977,7 @@ static uint16_t options(int argc, char *argv[], char *&glob, pid_t &hpid, pid_t
 		{ "numeric-sort", no_argument, NULL, 'n' },
 		{ "show-pids", no_argument, NULL, 'p' },
 		{ "regex", required_argument, NULL, 'r' },
+		{ "show-parents", no_argument, NULL, 's' },
 		{ "show-titles", no_argument, NULL, 't' },
 		{ "uid-changes", no_argument, NULL, 'u' },
 		{ "unicode", no_argument, NULL, 'U' },

+ 5 - 2
man1/dtpstree.1

@@ -1,5 +1,5 @@
-.\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.39.1.
-.TH DTPSTREE "1" "March 2011" "dtpstree 1.1.0" "User Commands"
+.\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.40.4.
+.TH DTPSTREE "1" "August 2011" "dtpstree 1.1.0" "User Commands"
 .SH NAME
 dtpstree \- display a tree of processes
 .SH SYNOPSIS
@@ -52,6 +52,9 @@ show PIDs; implies \fB\-c\fR
 show only trees rooted at processes with names
 that match the regular expression PATTERN
 .TP
+\fB\-s\fR, \fB\-\-show\-parents\fR
+show parents of the selected process
+.TP
 \fB\-t\fR, \fB\-\-show\-titles\fR
 show process titles
 .TP