]> www.infradead.org Git - users/dwmw2/openconnect.git/commitdiff
Fix wrong long option is used in the help messages
authorYoshimasa Niwa <niw@niw.at>
Thu, 11 Apr 2019 10:11:31 +0000 (03:11 -0700)
committerDavid Woodhouse <dwmw2@infradead.org>
Wed, 24 Apr 2019 07:57:19 +0000 (09:57 +0200)
`-F` has long option `--form-entry` and man page and many places are
all using `--form-entry`, however, help messages are using
`--form-field`.

Signed-off-by: Yoshimasa Niwa <niw@niw.at>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
main.c

diff --git a/main.c b/main.c
index 3a20bf0af6255dca51d5346d40f2b3a5fa204f1c..19d64377ec396ad46706601e50d585ad0e4029d0 100644 (file)
--- a/main.c
+++ b/main.c
@@ -805,7 +805,7 @@ static void usage(void)
        printf("      --non-inter                 %s\n", _("Do not expect user input; exit if it is required"));
        printf("      --passwd-on-stdin           %s\n", _("Read password from standard input"));
        printf("      --authgroup=GROUP           %s\n", _("Choose authentication login selection"));
-       printf("  -F, --form-field=FORM:OPT=VALUE %s\n", _("Provide authentication form responses"));
+       printf("  -F, --form-entry=FORM:OPT=VALUE %s\n", _("Provide authentication form responses"));
        printf("  -c, --certificate=CERT          %s\n", _("Use SSL client certificate CERT"));
        printf("  -k, --sslkey=KEY                %s\n", _("Use SSL private key file KEY"));
        printf("  -e, --cert-expire-warning=DAYS  %s\n", _("Warn when certificate lifetime < DAYS"));
@@ -1974,7 +1974,7 @@ static void add_form_field(char *arg)
 
        if (!value || value == arg) {
        bad_field:
-               fprintf(stderr, "Form field invalid. Use --form-field=FORM_ID:OPT_NAME=VALUE\n");
+               fprintf(stderr, "Form field invalid. Use --form-entry=FORM_ID:OPT_NAME=VALUE\n");
                exit(1);
        }
        *(value++) = 0;