diff options
author | Steve Bennett <steveb@workware.net.au> | 2023-07-01 12:45:36 +1000 |
---|---|---|
committer | Steve Bennett <steveb@workware.net.au> | 2023-08-13 15:05:05 +1000 |
commit | ef0b05c3fa344564529db450bc2638ad45e334a4 (patch) | |
tree | 13803be775cc757928f8cbf0f183ea235520eee6 /tests/clock.test | |
parent | f976e4e01a9feb5403437bd403e43e9a118b1548 (diff) | |
download | jimtcl-ef0b05c3fa344564529db450bc2638ad45e334a4.zip jimtcl-ef0b05c3fa344564529db450bc2638ad45e334a4.tar.gz jimtcl-ef0b05c3fa344564529db450bc2638ad45e334a4.tar.bz2 |
core: Add Jim_RegisterCommand()
and wrappers Jim_RegisterCmd, Jim_RegisterSimpleCmd and Jim_RegisterSubCmd
Allows usage, help and flags when registering commands.
Allows for JIM_CMD_ISPROC, JIM_CMD_ISALIAS, JIM_CMD_ISCHANNEL
'info usage' and (later) 'info help'
Now every command doesn't need to check min/max and print usage.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
Diffstat (limited to 'tests/clock.test')
-rw-r--r-- | tests/clock.test | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/clock.test b/tests/clock.test index 0ef7bb3..26aa17e 100644 --- a/tests/clock.test +++ b/tests/clock.test @@ -5,7 +5,7 @@ constraint cmd {clock scan} test clock-1.1 {clock usage} -body { clock -} -returnCodes error -match glob -result {wrong # args: should be "clock command ..."*} +} -returnCodes error -match glob -result {wrong # args: should be "clock subcommand ?arg ...?"} test clock-1.2 {clock usage} -body { clock blah |