Format of the man page of bat
(assets/manual/bat.1.in
)
#2996
Labels
feature-request
New feature or request
bat
(assets/manual/bat.1.in
)
#2996
This is a discussion on
assets/manual/bat.1.in
, the man pages ofbat
itself, (but not the styles of the man page shown bybat
). I received a report akinomyoga/ble.sh#458 (comment) that the descriptions of some of the options ofbat
cannot be extracted from the man page ofbat
.I submitted PR #2995 to solve some part of it.
It turned out that some of the options are missing on the man page (although the bash completion setting
assets/completion/bat.bash.in
generates the options). I submitted a pull request to include those missing options at #2995.However, I haven't included the option
--cache-dir
because it doesn't seem to be mentioned even in--help
. Why is--cache-dir
not mentioned inbat --help
andman bat
, yet it is generated as a candidate for the completion? Is that because the output ofbat --help
andman bat
are not up-to-date? Or is it because the option--cache-dir
is a hidden option? If possible, I also would like to suggest adding--cache-dir
inbat --help
andman bat
.I'd like to discuss the rest part of the problem here. It turned out that some other options are not described in a separate entry, but mentioned in the text or an example command
bat --...
. See the following section on the man page (where I put ⭐ to the corresponding parts).Those options do not have independent lines that start with
--config-file
, etc. Then, it is hard to heuristically identify the location where it is described.Here, I'd like to request adjusting the format of the man page so that those options and descriptions can be extracted by a general heuristic algorithm. For example, can we add separate entries for respective options under the corresponding section in addition to the existing explanations?
The text was updated successfully, but these errors were encountered: