Skip to content

Commit c2ea7fb

Browse files
dschomjcheetham
authored andcommitted
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 45ecc4a commit c2ea7fb

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
@@ -1018,6 +1018,9 @@ int cmd_main(int argc, const char **argv)
10181018
argv++;
10191019
argc--;
10201020

1021+
if (!strcmp(argv[0], "config"))
1022+
argv[0] = "reconfigure";
1023+
10211024
for (i = 0; builtins[i].name; i++)
10221025
if (!strcmp(builtins[i].name, argv[0]))
10231026
return !!builtins[i].fn(argc, argv);

0 commit comments

Comments
 (0)