Skip to content

Commit 4a09510

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 9ad768c commit 4a09510

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

1019+
if (!strcmp(argv[0], "config"))
1020+
argv[0] = "reconfigure";
1021+
10191022
for (i = 0; builtins[i].name; i++)
10201023
if (!strcmp(builtins[i].name, argv[0]))
10211024
return !!builtins[i].fn(argc, argv);

0 commit comments

Comments
 (0)