From 64767aa30dd9a811a4146a4d3986fb59e1de617d Mon Sep 17 00:00:00 2001 From: qorg11 Date: Thu, 23 Jun 2022 16:49:53 +0200 Subject: [PATCH] Improved help message and added manpage entry for -C --- sakisafecli/funcs.c | 11 ++++++----- sakisafecli/sakisafecli.1 | 3 +++ 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/sakisafecli/funcs.c b/sakisafecli/funcs.c index 25b431d..8f9ecc8 100644 --- a/sakisafecli/funcs.c +++ b/sakisafecli/funcs.c @@ -23,14 +23,15 @@ print_usage() void print_help() { - printf("--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; } diff --git a/sakisafecli/sakisafecli.1 b/sakisafecli/sakisafecli.1 index be3bde5..2c0c043 100644 --- a/sakisafecli/sakisafecli.1 +++ b/sakisafecli/sakisafecli.1 @@ -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