2 * Copyright (c) 2001 Sendmail, Inc. and its suppliers.
5 * By using this file, you agree to the terms and conditions set
6 * forth in the LICENSE file which can be found at the top level of
7 * the sendmail distribution.
12 SM_IDSTR(id
, "@(#)$Id: t-cf.c,v 1.7 2001/09/11 04:04:49 gshapiro Exp $")
30 fprintf(stderr
, "Usage: %s .cf-file option\n", argv
[0]);
33 opt
.opt_name
= argv
[2];
35 err
= sm_cf_getopt(argv
[1], 1, &opt
);
38 fprintf(stderr
, "%s: %s\n", argv
[1], strerror(err
));
41 if (opt
.opt_val
== NULL
)
42 printf("Error: option \"%s\" not found\n", opt
.opt_name
);
44 printf("%s=%s\n", opt
.opt_name
, opt
.opt_val
);