Skip to content

Commit 08ffe3e

Browse files
author
4G3NT
committed
remove non-existing options and add other options to man page
1 parent 774d9ea commit 08ffe3e

File tree

2 files changed

+14
-10
lines changed

2 files changed

+14
-10
lines changed

man/tldr.1

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ tldr is a collection of simplified and community-driven man pages, for commonly
1111
used commandline tools.
1212
.SH OPTIONS
1313
.TP
14-
.BR \-v
14+
.BR \-v ", " \-\-verbose
1515
verbose output (when used with \fB\-c\fR or \fB\-u\fR)
1616
.TP
1717
.BR \-v ", " \-\-version
@@ -29,17 +29,21 @@ remove local database and exit
2929
\fB\-p\fR, \fB\-\-platform\fR=\fIPLATFORM\fR
3030
select platform, supported are \fIlinux\fR / \fIosx\fR / \fIsunos\fR / \fIwindows\fR / \fIcommon\fR
3131
.TP
32-
.BR \-\-linux
32+
\fB\-r\fR, \fB\-\-render\fR=\fIPATH\fR
33+
render a local page for testing purposes
34+
.TP
35+
.B \-\-list
36+
list all entries in the local database
37+
.TP
38+
.B \-\-linux
3339
show command page for Linux
3440
.TP
35-
.BR \-\-osx
41+
.B \-\-osx
3642
show command page for OSX
3743
.TP
38-
.BR \-\-sunos
44+
.B \-\-sunos
3945
show command page for SunOS
4046
.TP
41-
\fB\-r\fR, \fB\-\-render\fR=\fIPATH\fR
42-
render a local page for testing purposes
4347
.SH EXIT STATUS
4448
0 on success, any other positive value otherwise
4549
.SH SEE ALSO

src/tldr.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -209,19 +209,19 @@ print_usage(char const *arg)
209209
/* *INDENT-OFF* */
210210
fprintf(stdout, out, arg);
211211
fprintf(stdout, "available commands:\n");
212-
fprintf(stdout, " %-23s %-30s\n", "-v", "verbose output (when used with -c or -u)");
212+
fprintf(stdout, " %-23s %-30s\n", "-v, --verbose", "verbose output (when used with -c or -u)");
213213
fprintf(stdout, " %-23s %-30s\n", "-v, --version", "print version and exit");
214214
fprintf(stdout, " %-23s %-30s\n", "-h, --help", "print this help and exit");
215215
fprintf(stdout, " %-23s %-30s\n", "-u, --update", "update local database");
216216
fprintf(stdout, " %-23s %-30s\n", "-c, --clear-cache", "clear local database");
217-
fprintf(stdout, " %-23s %-30s\n", "-l, --list", "list all entries in the local database");
218217
fprintf(stdout, " %-23s %-30s\n", "-p, --platform=PLATFORM",
219218
"select platform, supported are linux / osx / sunos / windows / common");
219+
fprintf(stdout, " %-23s %-30s\n", "-r, --render=PATH",
220+
"render a local page for testing purposes");
221+
fprintf(stdout, " %-23s %-30s\n", "--list", "list all entries in the local database");
220222
fprintf(stdout, " %-23s %-30s\n", "--linux", "show command page for Linux");
221223
fprintf(stdout, " %-23s %-30s\n", "--osx", "show command page for OSX");
222224
fprintf(stdout, " %-23s %-30s\n", "--sunos", "show command page for SunOS");
223-
fprintf(stdout, " %-23s %-30s\n", "-r, --render=PATH",
224-
"render a local page for testing purposes");
225225
/* *INDENT-ON* */
226226
}
227227

0 commit comments

Comments
 (0)