s4-ldb: convert existing ldb tools to use new command line hooks
[metze/samba/wip.git] / source4 / lib / ldb / tools / ldbdel.c
index 6994b3ddb681051835a3b290c8801566af50835a..6f7c8ae4a3eb28763c23c97c1607a5ec1ebe4b5a 100644 (file)
@@ -73,11 +73,11 @@ static int ldb_delete_recursive(struct ldb_context *ldb, struct ldb_dn *dn,struc
        return 0;
 }
 
-static void usage(void)
+static void usage(struct ldb_context *ldb)
 {
        printf("Usage: ldbdel <options> <DN...>\n");
        printf("Deletes records from a ldb\n\n");
-       ldb_cmdline_help("ldbdel", stdout);
+       ldb_cmdline_help(ldb, "ldbdel", stdout);
        exit(1);
 }
 
@@ -94,7 +94,7 @@ int main(int argc, const char **argv)
        options = ldb_cmdline_process(ldb, argc, argv, usage);
 
        if (options->argc < 1) {
-               usage();
+               usage(ldb);
                exit(1);
        }