|
2026-10-22
| ||
| 17:19 | • Ticket [6f16de3d8d] docs for cmdline misleading/inadequate status still Clos... artifact: 677870ed66 user: serhiy.storchaka | |
|
2026-10-21
| ||
| 09:59 | • Closed ticket [6f16de3d8d]. artifact: 188ed230dc user: serhiy.storchaka | |
|
2020-09-18
| ||
| 07:30 | • New ticket [6f16de3d8d]. artifact: c35e09d19b user: anonymous | |
docs for cmdline misleading/inadequate
Closed / Fixed6f16de3d8de5ff797bd79fe13f9247956db362deCreated 6 years agoUpdated 42 days ago
Descriptionplain2020-09-18 07:30:02
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.)
serhiy.storchakawiki2026-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.
serhiy.storchaka Ticket [6f16de3d8d]: 3 changes
[History diff]2026-10-22 17:19:29
Log in (anonymous is fine) to add a comment.