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 <[email protected]>
  • Loading branch information
dscho authored and mjcheetham committed Dec 3, 2024
1 parent 41359e0 commit 17d44fa
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 @@ -1015,6 +1015,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 17d44fa

Please sign in to comment.