print help message on bad options

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10421 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
2001-08-01 08:25:59 +00:00
parent 69d2f44996
commit 807c15385c

View File

@@ -231,8 +231,8 @@ main(int argc, char **argv)
if (ret) if (ret)
errx (1, "krb5_init_context failed: %d", ret); errx (1, "krb5_init_context failed: %d", ret);
while((e = getarg(args, num_args, argc, argv, &optind))) if(getarg(args, num_args, argc, argv, &optind))
errx(1, "error at argument `%s'", argv[optind]); usage(1);
if (help_flag) if (help_flag)
usage (0); usage (0);