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 committed Apr 24, 2024
1 parent 38a9eb3 commit 4dfdf2d
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 4dfdf2d

Please sign in to comment.