Added --i2p to the --help message in clainsafecli and improved usage

message

starting # with '#' will be ignored, and an empty message aborts the
commit.  # # On branch master # Your branch is up to date with
'origin/master'.  # # Changes to be committed: # modified:
clainsafecli.c # # Untracked files: # clainsafecli #
This commit is contained in:
qorg11 2021-02-05 00:58:44 +01:00
parent 4535b267a9
commit d2c48dcb66
No known key found for this signature in database
GPG Key ID: 343FC20A4ACA62B9
1 changed files with 16 additions and 15 deletions

View File

@ -5,7 +5,6 @@
#include <getopt.h> #include <getopt.h>
#include <curl/curl.h> #include <curl/curl.h>
size_t static write_data(void *buffer, size_t size, size_t nmemb, size_t static write_data(void *buffer, size_t size, size_t nmemb,
void *userp) void *userp)
{ {
@ -16,16 +15,18 @@ size_t static write_data(void *buffer, size_t size, size_t nmemb,
void void
print_usage() print_usage()
{ {
printf("USAGE: clainsafecli [--server] file\n"); printf("USAGE: clainsafecli [--tor|--i2p] [--server] file\n");
return; return;
} }
void void
print_help() print_help()
{ {
printf("--server <server>: specifies the lainsafe server\n%s\n%s", printf("--server <server>: specifies the lainsafe server\n%s\n%s\n%s",
"--tor: uses tor", "--tor: uses tor",
"--help: print this message\n"); "--help: print this message\n",
"--i2p: uses i2p HTTP proxy"
);
return; return;
} }