Complete usage() func.
This commit is contained in:
parent
a998c73362
commit
271cf6cf67
12
src/main.c
12
src/main.c
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user