Skip to content

Commit 40cceaf

Browse files
dschoderrickstolee
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 <johannes.schindelin@gmx.de>
1 parent 007d7af commit 40cceaf

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
@@ -1220,6 +1220,9 @@ int cmd_main(int argc, const char **argv)
12201220
argv++;
12211221
argc--;
12221222

1223+
if (!strcmp(argv[0], "config"))
1224+
argv[0] = "reconfigure";
1225+
12231226
for (i = 0; builtins[i].name; i++)
12241227
if (!strcmp(builtins[i].name, argv[0]))
12251228
return !!builtins[i].fn(argc, argv);

0 commit comments

Comments
 (0)