From 94357f11bcab186bbdbb291cdda0f7acf61165e9 Mon Sep 17 00:00:00 2001 From: Steve Bennett Date: Wed, 17 Aug 2016 17:04:41 +1000 Subject: Add support for "-commands" to many commands This option returns a list of support subcommands and is useful for command line completion. Support added to: socket, namespace, tcl::prefix, string, dict, info Signed-off-by: Steve Bennett --- jim-tclprefix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'jim-tclprefix.c') diff --git a/jim-tclprefix.c b/jim-tclprefix.c index e041cc6..fd696b7 100644 --- a/jim-tclprefix.c +++ b/jim-tclprefix.c @@ -43,7 +43,7 @@ static int Jim_TclPrefixCoreCommand(Jim_Interp *interp, int argc, Jim_Obj *const return JIM_ERR; } if (Jim_GetEnum(interp, argv[1], options, &option, NULL, JIM_ERRMSG | JIM_ENUM_ABBREV) != JIM_OK) - return JIM_ERR; + return Jim_CheckShowCommands(interp, argv[1], options); switch (option) { case OPT_MATCH:{ -- cgit v1.1