example: update usage info
authorFelix Fietkau <nbd@openwrt.org>
Sun, 4 May 2014 12:30:18 +0000 (14:30 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 4 May 2014 12:30:18 +0000 (14:30 +0200)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
uclient-example.c

index dc5ef915788032b65b9b6e40fe36caeb0a10a178..3bf8d298c47b1aa9e1920d5ed9717b44af29224f 100644 (file)
@@ -129,10 +129,12 @@ static const struct uclient_cb cb = {
 static int usage(const char *progname)
 {
        fprintf(stderr,
-               "Usage: %s [options] <hostname> <port>\n"
+               "Usage: %s [options] <URL>\n"
                "Options:\n"
-               "       -c <cert>:         Load CA certificates from file <cert>\n"
-               "       -C:                Skip certificate CN verification against hostname\n"
+               "\n"
+               "HTTPS options:\n"
+               "       --ca-certificate=<cert>:        Load CA certificates from file <cert>\n"
+               "       --no-check-certificate:         don't validate the server's certificate\n"
                "\n", progname);
        return 1;
 }