mdbx-tools: minor refine built-in usage/help.

This commit is contained in:
Leonid Yuriev 2021-05-12 11:01:35 +03:00
parent 9746dd20df
commit 76b9cb5dcc
4 changed files with 10 additions and 8 deletions

View File

@ -54,7 +54,9 @@ static void usage(void) {
"usage: %s [-V] [-q] [-d] [-s name] dbpath\n"
" -V\t\tprint version and exit\n"
" -q\t\tbe quiet\n"
" -d\t\tdelete the specified database, don't just empty it\n",
" -d\t\tdelete the specified database, don't just empty it\n"
" -s name\tdrop the specified named subDB\n"
" \t\tby default empty the main DB\n",
prog);
exit(EXIT_FAILURE);
}

View File

@ -225,10 +225,10 @@ static void usage(void) {
" -f\t\twrite to file instead of stdout\n"
" -l\t\tlist subDBs and exit\n"
" -p\t\tuse printable characters\n"
" -a\t\tdump main DB and all subDBs,\n"
" \t\tby default dump only the main DB\n"
" -s\t\tdump only the named subDB\n"
" -r\t\trescue mode (ignore errors to dump corrupted DB)\n",
" -r\t\trescue mode (ignore errors to dump corrupted DB)\n"
" -a\t\tdump main DB and all subDBs\n"
" -s name\tdump only the specified named subDB\n"
" \t\tby default dump only the main DB\n",
prog);
exit(EXIT_FAILURE);
}

View File

@ -485,7 +485,7 @@ static void usage(void) {
" -a\t\tappend records in input order (required for custom "
"comparators)\n"
" -f file\tread from file instead of stdin\n"
" -s name\tload into named subDB\n"
" -s name\tload into specified named subDB\n"
" -N\t\tdon't overwrite existing records when loading, just skip "
"ones\n"
" -p\t\tpurge subDB before loading\n"

View File

@ -61,8 +61,8 @@ static void usage(const char *prog) {
" -f\t\tshow GC info\n"
" -r\t\tshow readers\n"
" -a\t\tprint stat of main DB and all subDBs\n"
" \t\t(default) print stat of only the main DB\n"
" -s name\tprint stat of only the named subDB\n",
" -s name\tprint stat of only the specified named subDB\n"
" \t\tby default print stat of only the main DB\n",
prog);
exit(EXIT_FAILURE);
}