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:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user