Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2025-06-27
15:31 • Closed ticket [ef7042075c]: tcl::build-info not documented plus 6 other chan... artifact: 99772b8c97 user: jan.nijtmans
15:20
Fix [ef7042075c]: tcl::build-info not documented check-in: a42af792d9 user: jan.nijtmans tags: core-9-0-branch
04:13 • Ticket [ef7042075c] tcl::build-info not documented status still Open with 3 ... artifact: ae4e7e11b3 user: apnadkarni
2025-06-26
13:51 • Ticket [ef7042075c]: 3 changes artifact: 60a3d9b8c6 user: jan.nijtmans
13:43 • Ticket [ef7042075c]: 3 changes artifact: fdbe996839 user: jan.nijtmans
13:13 • Ticket [ef7042075c]: 3 changes artifact: 62eda1d4c4 user: apnadkarni
08:48 • Ticket [ef7042075c]: 3 changes artifact: c08e3d05d2 user: jan.nijtmans
08:16 • Ticket [ef7042075c]: 3 changes artifact: 1112faa25a user: dkf
07:36 • Ticket [ef7042075c]: 3 changes artifact: 16971160d4 user: jan.nijtmans
07:35
[ef7042075c]: tcl::build-info not documented check-in: e6214ce124 user: jan.nijtmans tags: bug-ef7042075c
2025-06-19
05:48 • Ticket [ef7042075c] tcl::build-info not documented status still Open with 5 ... artifact: 9cd8630924 user: apnadkarni
2024-10-18
15:25 • Ticket [ef7042075c]: 3 changes artifact: 52fe9d36a2 user: jan.nijtmans
2024-10-17
14:34 • New ticket [ef7042075c]. artifact: a0644548da user: apnadkarni

tcl::build-info not documented

Closed / Fixedef7042075cfd6c029435e6c37ff161190d98c80dCreated 2 years agoUpdated 1 year ago
Descriptionplain2024-10-17 14:34:45
The tcl::build-info command does not seem to be documented. Is this intentional or a documentation bug?
Referenced by2
jan.nijtmanswiki2024-10-18 15:25:06

Let's document it

apnadkarniplain2025-06-19 05:48:27
@jan.nijtmans since you wrote TIP 599 and the implementation, can you please document tcl::build-info in the manpages?
jan.nijtmanswiki2025-06-26 07:36:43

First shot [here]

dkfmarkdown2025-06-26 08:16:24

Good idea to document this. I approve! Review of the candidate manpage follows:

I'm wondering whether the SYNOPSIS is 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 DESCRIPTION should 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 ALSO section? (platform(n) and tcl_platform(n)/tclvars(n) would be my candidates.)

If you don't change the SYNOPSIS as 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.

jan.nijtmanswiki2025-06-26 08:48:21

Yes, it helps. Thanks! [5b4016f314039751

apnadkarniplain2025-06-26 13:13:15
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?
jan.nijtmanswiki2025-06-26 13:43:20
jan.nijtmanswiki2025-06-26 13:51:22

Any more suggestions?

apnadkarniplain2025-06-27 04:13:18
Look ok to me.
jan.nijtmanswiki2025-06-27 15:31:39

Fixed [here]

Log in (anonymous is fine) to add a comment.