Improved help message and added manpage entry for -C

This commit is contained in:
(≧◡≦) 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 void
print_help() 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)", "-t|--token: Authentication token (https://u.kalli.st)",
"-P|--http-proxy: http proxy to use e.g. http://127.0.0.1:4444", "-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.", "-p|--socks-proxy: SOCK proxy to use e.g. 127.0.0.1:9050",
"-6|--ipv6: uses IPv6 only.", "-6|--ipv6: uses IPv6 only",
"-4|--ipv6: uses IPv4 only.", "-4|--ipv6: uses IPv4 only",
"--silent: doesn't print progress.", "-S|--silent: doesn't print progress",
"-x|--paste: read file from stdin", "-x|--paste: read file from stdin",
"-C: print current settings",
"-h|--help: print this message.\n"); "-h|--help: print this message.\n");
return; return;
} }

View file

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