Skip to content

Commit 2386887

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 <[email protected]>
1 parent 3667669 commit 2386887

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
@@ -1059,6 +1059,9 @@ int cmd_main(int argc, const char **argv)
10591059
argv++;
10601060
argc--;
10611061

1062+
if (!strcmp(argv[0], "config"))
1063+
argv[0] = "reconfigure";
1064+
10621065
for (i = 0; builtins[i].name; i++)
10631066
if (!strcmp(builtins[i].name, argv[0]))
10641067
return !!builtins[i].fn(argc, argv);

0 commit comments

Comments
 (0)