| Ticket UUID: | 6f16de3d8de5ff797bd79fe13f9247956db362de | ||
| Title: | docs for cmdline misleading/inadequate | ||
| Type: | Bug | Created on: | 2020-09-18 07:30:02 |
| Submitter: | anonymous | Assigned to: | nobody |
| Subsystem: | 69. Other | Severity: | Minor |
| Priority: | 5 Medium | Last modified: | 2026-10-22 17:19:29 |
| Status: | Closed | Closed by: | serhiy.storchaka |
| Resolution: | Fixed | Closed on: | 2026-10-21 09:59:44 |
| Version: | |||
| Description: | ||||
Under the cmdline description there's a section called "::argv handling" which explains with great emphasis that cmdline does _not_ change ::argc. That's fine, but what it should also plainly say (as should the docs for getoptions), that after a getoptions call any options that have been processed are _removed_ from argv, so any remaining items in argv (e.g., filenames) can be read directly from argv. (Of course you should be able to read these filenames using getfiles but it has never worked for me.) | ||||
| User Comments: | ||||
serhiy.storchaka added on 2026-10-21 09:59:44:
This is Tcllib's cmdline. It was fixed there in Tcllib 1.21 by 6dd76779dd (Tcllib ticket 2dce7b748a): the getoptions docs now say that the processed options are removed from argv. | ||||
