1
0
Fork 0

Complete usage() func.

This commit is contained in:
Alexander Andreev 2024-03-31 20:39:04 +04:00
parent a998c73362
commit 271cf6cf67
Signed by: Arav
GPG Key ID: 25969B23DCB5CA34
1 changed files with 11 additions and 1 deletions

View File

@ -33,7 +33,17 @@ struct options {
int parse_argv(int argc, const char **argv, struct options *opts);
void usage(void) {
fprintf(stderr, "tetatet -vh c|s ADDR PORT -k KEY_PATH -a ADDRESSBOOK_FILE\n");
fprintf(stderr,
"tetatet -vh c|s (ADDR PORT | ALIAS for c) [-K,--keys KEY_PATH] [-A,--addressbook ADDRESSBOOK_FILE]\n"
" -v show version\n"
" -h show this help\n\n"
" -K,--keys KEYS_PATH path to where your public and secret (tat_own_pub_key\n"
" and tat_own_sec_key) keys are stored (~/.config/tetatet by default).\n"
" -A,--addressbook ADDRESSBOOK_FILE path to an addressbook file.\n"
" (~/.config/tetatet/addressbook by default)\n\n"
" c (ADDR PORT | ALIAS) is a client mode. You can specify ADDR and PORT or use\n"
" an ALIAS that will use the last ADDR and PORT stored in an addressbook.\n"
" s ADDR PORT is a server mode. Specify ADDR and PORT to listen on.\n");
}
void version(void) {