src/dbtool.c
changeset 27 4a2f7a1492ab
parent 0 586472add385
child 31 bbcb8a3366b4
equal deleted inserted replaced
26:767f79e69de1 27:4a2f7a1492ab
    14 #define FILE_NAME "/var/lib/nobody/data/mcbot.dat"
    14 #define FILE_NAME "/var/lib/nobody/data/mcbot.dat"
    15 #endif
    15 #endif
    16 
    16 
    17 void help (char *prgname)
    17 void help (char *prgname)
    18 {
    18 {
    19     printf ("Usage: %s [[-a|-r] -k <key> -v <value>]\n", prgname);
    19     printf ("Usage: %s {-a|-r} -k <key> -v <value>] [-f <file>]\n", prgname);
    20     printf ("       %s [-d <key>]\n", prgname);
    20     printf ("       %s {-s|-d} <key> [-f <file>]\n", prgname);
    21     printf ("       %s [-f <file>]\n", prgname);
    21     printf ("       %s {-l|-V} [-f <file>]\n", prgname);
    22     printf ("       %s [-s <key>]\n", prgname);
       
    23     printf ("       %s [-h|-?]\n\n", prgname);
    22     printf ("       %s [-h|-?]\n\n", prgname);
    24     printf ("Administration tool for adding/replacing, deleting, ... of DataBase Entries.\n\n");
    23     printf ("Administration tool for adding/replacing, deleting, ... of DataBase Entries.\n\n");
    25     printf ("Options:\n");
    24     printf ("Options:\n");
    26     printf ("  -a\t\tadds a new key <key> with value <value> to the db\n");
    25     printf ("  -a\t\tadds a new key <key> with value <value> to the db\n");
    27     printf ("  -r\t\treplaces a key <key> with value <value> in the db\n");
    26     printf ("  -r\t\treplaces a key <key> with value <value> in the db\n");