diff options
author | Andrew Tridgell <tridge@samba.org> | 2009-09-02 18:31:22 +1000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2009-09-02 18:31:59 +1000 |
commit | bde679e6f84b16d63a8007fe48789ee7951b9f34 (patch) | |
tree | 99bf7ac0d8a04dcdf1e9f59e51b3ea4a67aba031 /source4/lib/ldb/tools/ldbedit.c | |
parent | 931771138a52a3385afb2d3966509a57def3ece5 (diff) | |
download | samba-bde679e6f84b16d63a8007fe48789ee7951b9f34.tar.gz samba-bde679e6f84b16d63a8007fe48789ee7951b9f34.tar.bz2 samba-bde679e6f84b16d63a8007fe48789ee7951b9f34.zip |
show the full set of command line options for ldb tools
I always found it hard to remember some of the options. We might as
well use popt to give us the full list
Diffstat (limited to 'source4/lib/ldb/tools/ldbedit.c')
-rw-r--r-- | source4/lib/ldb/tools/ldbedit.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/source4/lib/ldb/tools/ldbedit.c b/source4/lib/ldb/tools/ldbedit.c index 9d3bd27983..9653eabcb9 100644 --- a/source4/lib/ldb/tools/ldbedit.c +++ b/source4/lib/ldb/tools/ldbedit.c @@ -270,13 +270,7 @@ static int do_edit(struct ldb_context *ldb, struct ldb_message **msgs1, int coun static void usage(void) { printf("Usage: ldbedit <options> <expression> <attributes ...>\n"); - printf("Options:\n"); - printf(" -H ldb_url choose the database (or $LDB_URL)\n"); - printf(" -s base|sub|one choose search scope\n"); - printf(" -b basedn choose baseDN\n"); - printf(" -a edit all records (expression 'objectclass=*')\n"); - printf(" -e editor choose editor (or $VISUAL or $EDITOR)\n"); - printf(" -v verbose mode\n"); + ldb_cmdline_help("ldbedit", stdout); exit(1); } |