| 625 | } |
| 626 | |
| 627 | static int cmd_register(int argc, const char **argv) |
| 628 | { |
| 629 | int maintenance = 1; |
| 630 | struct option options[] = { |
| 631 | OPT_BOOL(0, "maintenance", &maintenance, |
| 632 | N_("specify if background maintenance should be enabled")), |
| 633 | OPT_END(), |
| 634 | }; |
| 635 | const char * const usage[] = { |
| 636 | N_("scalar register [--[no-]maintenance] [<enlistment>]"), |
| 637 | NULL |
| 638 | }; |
| 639 | |
| 640 | argc = parse_options(argc, argv, NULL, options, |
| 641 | usage, 0); |
| 642 | |
| 643 | setup_enlistment_directory(argc, argv, usage, options, NULL); |
| 644 | |
| 645 | /* If --no-maintenance, then leave maintenance as-is. */ |
| 646 | return register_dir(maintenance); |
| 647 | } |
| 648 | |
| 649 | static int get_scalar_repos(const char *key, const char *value, |
| 650 | const struct config_context *ctx UNUSED, |
nothing calls this directly
no test coverage detected