Improve the man page: complete SYNOPSIS, better formatting

This commit is contained in:
Benjamin A. Beasley 2026-02-22 07:20:31 +00:00
commit b2d3b9d65a

View file

@ -1,10 +1,12 @@
.TH CHARDETECT "1" "June 2022" "" "User Commands"
.TH CHARDETECT "1" "February 2026" "" "User Commands"
.SH NAME
.B chardetect
\(en takes one or more file paths and reports their detected encodings
.SH SYNOPSIS
.B chardetect
.RB [ \-h ]
.RB [ \-\-minimal ]
.RB [ \-l ]
.RB [ \-\-version ]
.RI [ input \ ...]
.SH OPTIONS
@ -17,13 +19,13 @@ File whose encoding we would like to determine.
.SS "OPTIONAL ARGUMENTS"
.TP
.B \-h\fR, \fB\-\-help
show a help message and exit
Show a help message and exit.
.TP
.B \-\-minimal
Print only the encoding to standard output
Print only the encoding to standard output.
.TP
.B \-l\fR, \fB\-\-legacy
Rename legacy encodings to more modern ones.
.TP
.B \-\-version
show program\(cqs version number and exit
Show program\(cqs version number and exit.