Skip to content

Commit

Permalink
scalar: support the config command for backwards compatibility
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
dscho committed Nov 14, 2023
1 parent df83ee4 commit 6e1df02
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scalar.c
Original file line number Diff line number Diff line change
Expand Up @@ -997,6 +997,9 @@ int cmd_main(int argc, const char **argv)
argv++;
argc--;

if (!strcmp(argv[0], "config"))
argv[0] = "reconfigure";

for (i = 0; builtins[i].name; i++)
if (!strcmp(builtins[i].name, argv[0]))
return !!builtins[i].fn(argc, argv);
Expand Down

0 comments on commit 6e1df02

Please sign in to comment.