Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2009-02-08
05:50 • Closed ticket [2573172fff]: zlib does not report subcommands on error plus 7... artifact: 5a21b78567 user: dkf
2009-02-06
23:37 • Ticket [2573172fff]: 4 changes artifact: befc16773e user: dkf
16:18 • New ticket [2573172fff]. artifact: 84af5c5b0c user: germyrm

zlib does not report subcommands on error

Closed / Fixed2573172fffffffffffffffffffffffffffffffffCreated 18 years agoUpdated 18 years ago
Descriptionplain2009-02-06 16:18:08
In any command with subcommands there is a report of the subcommands supported like:
% info
wrong # args: should be "info subcommand ?arg ...?"
% info john
unknown or ambiguous subcommand "john": must be args, body, class, cmdcount, commands, complete, coroutine, default, exists, frame, functions, globals, hostname, level, library, loaded, locals, nameofexecutable, object, patchlevel, procs, script, sharedlibextension, tclversion, or vars

Well this is what happens with zlib command:
% zlib
wrong # args: should be "zlib command arg ?...?"
% zlib john
wrong # args: should be "zlib command arg ?...?"

Regards
Horacio Rodriguez Montero
dkfplain2009-02-06 23:37:54
it will if you do another argument, but your point is taken...

$ make -C unix shell
[...]
% zlib ? ?
bad command "?": must be adler32, compress, crc32, decompress, deflate, gunzip, gzip, inflate, push, or stream
dkfplain2009-02-08 05:50:44
allow_comments - 1

now follows std pattern:

% zlib
wrong # args: should be "zlib command arg ?...?"
% zlib ?
bad command "?": must be adler32, compress, crc32, decompress, deflate, gunzip, gzip, inflate, push, or stream
Log in (anonymous is fine) to add a comment.