Improved help message and added manpage entry for -C

master 2.2.1
qorg11 2022-06-23 16:49:53 +02:00
parent 1d71334340
commit 64767aa30d
2 changed files with 9 additions and 5 deletions

View File

@ -23,14 +23,15 @@ print_usage()
void
print_help()
{
printf("--server <server>: specifies the sakisafe server\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s",
printf("-s|--server: specifies the sakisafe server\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s",
"-t|--token: Authentication token (https://u.kalli.st)",
"-P|--http-proxy: http proxy to use e.g. http://127.0.0.1:4444",
"-p|--socks-proxy: SOCK proxy to use e.g. 127.0.0.1:9050.",
"-6|--ipv6: uses IPv6 only.",
"-4|--ipv6: uses IPv4 only.",
"--silent: doesn't print progress.",
"-p|--socks-proxy: SOCK proxy to use e.g. 127.0.0.1:9050",
"-6|--ipv6: uses IPv6 only",
"-4|--ipv6: uses IPv4 only",
"-S|--silent: doesn't print progress",
"-x|--paste: read file from stdin",
"-C: print current settings",
"-h|--help: print this message.\n");
return;
}

View File

@ -33,6 +33,9 @@ Force an IPv6 connection.
Paste mode. Reads from stdin and publish the given content to the
server.
.Sy -C
Print the current settings.
.Sh BUGS
Of course.
.Sh HISTORY