Skip to content

Commit a1cef3a

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 b90e1b2 commit a1cef3a

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

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

0 commit comments

Comments
 (0)