You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
1.8 KiB

  1. --- a/tdbtool.c 2001-12-11 06:45:47.000000000 +0300
  2. +++ b/tdbtool.c 2014-11-14 15:14:00.401164300 +0300
  3. @@ -169,23 +169,21 @@ static void print_data(unsigned char *bu
  4. static void help(void)
  5. {
  6. - printf("
  7. -tdbtool:
  8. - create dbname : create a database
  9. - open dbname : open an existing database
  10. - erase : erase the database
  11. - dump dumpname : dump the database as strings
  12. - insert key data : insert a record
  13. - store key data : store a record (replace)
  14. - show key : show a record by key
  15. - delete key : delete a record by key
  16. - list : print the database hash table and freelist
  17. - free : print the database freelist
  18. - 1 | first : print the first record
  19. - n | next : print the next record
  20. - q | quit : terminate
  21. - \\n : repeat 'next' command
  22. -");
  23. + printf("tdbtool:\n");
  24. + printf(" create dbname : create a database\n");
  25. + printf(" open dbname : open an existing database\n");
  26. + printf(" erase : erase the database\n");
  27. + printf(" dump dumpname : dump the database as strings\n");
  28. + printf(" insert key data : insert a record\n");
  29. + printf(" store key data : store a record (replace)\n");
  30. + printf(" show key : show a record by key\n");
  31. + printf(" delete key : delete a record by key\n");
  32. + printf(" list : print the database hash table and freelist\n");
  33. + printf(" free : print the database freelist\n");
  34. + printf(" 1 | first : print the first record\n");
  35. + printf(" n | next : print the next record\n");
  36. + printf(" q | quit : terminate\n");
  37. + printf(" \\n : repeat 'next' command\n\n");
  38. }
  39. static void terror(char *why)