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 Aug 11, 2023
1 parent d2ed421 commit 9e7c052
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 @@ -963,6 +963,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 9e7c052

Please sign in to comment.