diff options
author | Amitay Isaacs <amitay@gmail.com> | 2013-03-27 12:32:43 +1100 |
---|---|---|
committer | Amitay Isaacs <amitay@gmail.com> | 2013-04-08 14:25:34 +1000 |
commit | e062555da0f073d96b2ea4544dfbfda183364626 (patch) | |
tree | fdeb2640c7dc45c595245c86254831a7e0ee8425 | |
parent | 77a29b37334b9df62b755b6f538fb975e105e1ff (diff) | |
download | samba-e062555da0f073d96b2ea4544dfbfda183364626.tar.gz samba-e062555da0f073d96b2ea4544dfbfda183364626.tar.xz samba-e062555da0f073d96b2ea4544dfbfda183364626.zip |
tools/ltdbtool: Fix handling of -e option
Also, include description of -e option in usage.
Signed-off-by: Amitay Isaacs <amitay@gmail.com>
(This used to be ctdb commit 35264e42ade4676468cf7713fa339c784e932953)
-rw-r--r-- | ctdb/tools/ltdbtool.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/ctdb/tools/ltdbtool.c b/ctdb/tools/ltdbtool.c index b7ad5a56a6..add9c32a03 100644 --- a/ctdb/tools/ltdbtool.c +++ b/ctdb/tools/ltdbtool.c @@ -77,7 +77,9 @@ static int help(const char* cmd) " -O <num> the number of bytes to interpret as ctdb record header\n" " for the output database (beware!)\n" "\n" -" -p print header (for the dump command), defaults ot off\n" +" -e Include empty records, defaults to off\n" +"\n" +" -p print header (for the dump command), defaults to off\n" "\n" " -h print this help\n" "\n" @@ -91,8 +93,8 @@ static int help(const char* cmd) static int usage(const char* cmd) { fprintf(stderr, - "Usage: %s dump [-p] [-s{0|32|64}] <idb>\n" - " %s convert [-s{0|32|64}] [-o{0|32|64}] <idb> <odb>\n" + "Usage: %s dump [-e] [-p] [-s{0|32|64}] <idb>\n" + " %s convert [-e] [-s{0|32|64}] [-o{0|32|64}] <idb> <odb>\n" " %s {help|-h}\n" , cmd, cmd, cmd); return -1; @@ -229,6 +231,7 @@ int main(int argc, char* argv[]) break; case 'e': keep_empty = true; + break; case 'h': return help(argv[0]); default: |