Skip to content

Commit a532143

Browse files
committed
scalar: support the config command for backwards compatibility
The .NET version supported running `scalar config` to reconfigure the current enlistment, and now the C port does, too. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
1 parent 00517ea commit a532143

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

scalar.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -929,6 +929,9 @@ int cmd_main(int argc, const char **argv)
929929
argv++;
930930
argc--;
931931

932+
if (!strcmp(argv[0], "config"))
933+
argv[0] = "reconfigure";
934+
932935
for (i = 0; builtins[i].name; i++)
933936
if (!strcmp(builtins[i].name, argv[0]))
934937
return !!builtins[i].fn(argc, argv);

0 commit comments

Comments
 (0)