tcl::build-info not documented
The tcl::build-info command does not seem to be documented. Is this intentional or a documentation bug?
a42af792d9Fix [ef7042075c]: tcl::build-info not documented check-in2025-06-27 15:20:01e6214ce124[ef7042075c]: tcl::build-info not documented check-in2025-06-26 07:35:48
Let's document it
@jan.nijtmans since you wrote TIP 599 and the implementation, can you please document tcl::build-info in the manpages?
First shot [here]
Good idea to document this. I approve! Review of the candidate manpage follows:
I'm wondering whether the
SYNOPSISis too busy.Perhaps it would be better as just this:
\fB::tcl::build-info\fR ?\fIfield\fR?That says you the command has one optional argument, field, and that's basically all that it needs to say.
I guess the
DESCRIPTIONshould then be:This command provides a way to retrieve information about how Tcl was built. Without a \fIfield\fR, the command returns the Tcl patchlevel, followed by the '\fB+\fR'-sign, followed by the fossil commit-id followed by a list of dot-separated tags. If a \fIfield\fR is given, this command extracts that field as described below. For official Tcl releases, the \fIfield\fRs are:The remaining parts of the manual page look fine. Perhaps we ought to add more references into the
SEE ALSOsection? (platform(n)andtcl_platform(n)/tclvars(n)would be my candidates.)If you don't change the
SYNOPSISas suggested, at least remove the?from the first line of it; the subsequent lines make it unnecessary in that case and it's technically ambiguous according to our simple command syntax rules.
Do as you will with the review, but I hope it helps.
Yes, it helps. Thanks! [5b4016f314039751
Thanks for documenting this. One addition I might suggest is to clarify behavior when a field is not present. Is an error raised or an empty string returned? Are all fields always guaranteed to be present?
[617a33d53c6d36ea]. Better?
Any more suggestions?
Look ok to me.
Fixed [here]