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 dc5ef91..3bf8d29 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;
 }