This allows for using help without having access to the registry and
prevents update code to run if only a readonly check is to be performed.
{ NULL, NULL, 0, NULL, NULL }
};
- if (!W_ERROR_IS_OK(registry_init_basic())) {
- return -1;
+ if (!c->display_usage
+ && StrCaseCmp(argv[0], "convert")
+ && StrCaseCmp(argv[0], "check"))
+ {
+ if (!W_ERROR_IS_OK(registry_init_basic())) {
+ return -1;
+ }
}
ret = net_run_function(c, argc, argv, "net registry", func);