aboutsummaryrefslogtreecommitdiff
path: root/jim-subcmd.h
AgeCommit message (Collapse)AuthorFilesLines
2023-07-04dict: convert to use subcmdSteve Bennett1-0/+1
This means we get -commands and usage via -help And update dict2.test for minor difference in usage Signed-off-by: Steve Bennett <steveb@workware.net.au>
2023-07-04subcmd: minor improvementsSteve Bennett1-0/+12
Add support for modulo maxarg count. If maxargs is (e.g.) -2, then a multiple of 2 args is expected. Also expose Jim_SubCmdArgError() to make it easy to add additional arg validation but still have subcmd report the usage. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2014-01-21many comment changes, some small code changesSteve Bennett1-2/+2
Sweep through and clean up all (most) of the comments in the code. While there, adjust some variable and function names to be more consistent, and make a few small code changes - again, mostly for consistency. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-11-07Remove use of designated initialisersSteve Bennett1-16/+1
For better compatibility c89 compatibility. Also simplify jim-subcmd. Remove -usage and command descriptions. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-09-12Remove all trailing whitespace in sourceSteve Bennett1-4/+4
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-08-30Allow jim-subcmd.h to be used from C++Alexander Shpilkin1-0/+9
2010-10-15Rework/improve jim subcmd handlingSteve Bennett1-1/+15
*: -usage and -help do not generate an error *: -help <cmd> where the cmd is invalid now generates a correct response *: Add Jim_CheckCmdUsage() so top level commands can also be checked and print usage *: Fix the FULLARGV flag which was accidently set to the same value as the HIDDEN flag *: If -help is specified for an invalid or amibiguous subcmd, show all commands ------------------------------------------------------------------------
2010-10-15Convert jim-aio.c to use subcmdSteve Bennett1-1/+2
Also: - make stream.server set SO_REUSEADDR - do object reference properly for callbacks - white space cleanup in jim-eventloop.c - fix the pwd command - add support for JIM_MODFLAG_FULLARGV to subcmd - make verbose runtests easier to read - bio might not be available
2010-10-15Add file and exec (along with subcmd support)Steve Bennett1-0/+68