From 4a96a8456d8f734fec1918f3722530a8230cbb70 Mon Sep 17 00:00:00 2001 From: Ben Klang Date: Thu, 8 Jun 2006 18:02:06 +0000 Subject: [PATCH] Don't print_usage all the time, too noisy. Include a referral for more info git-svn-id: https://svn.alkaloid.net/gpl/ldap2dns/trunk@322 06cd67b6-e706-0410-b29e-9de616bca6e9 --- ldap2dns.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ldap2dns.c b/ldap2dns.c index bea6d98..3ebb5ff 100644 --- a/ldap2dns.c +++ b/ldap2dns.c @@ -1000,7 +1000,7 @@ static int do_connect() struct berval* msgid = malloc(sizeof(struct berval)); if (options.useduris < 1) { fprintf(stderr, "\n[!!] Must define at least one LDAP host with which to connect.\n\n"); - print_usage(); + fprintf(stderr, "Use --help to see usage information\n"); exit(1); } @@ -1079,13 +1079,13 @@ int main(int argc, char** argv) if (!options.output) { fprintf(stderr, "[!!]\tMust select an output type (\"db\" or \"data\")\n"); - print_usage(); + fprintf(stderr, "Use --help to see usage information\n"); exit(1); } if (!strlen(options.searchbase)) { fprintf(stderr, "[!!]\tMust provide the base DN for the search.\n"); - print_usage(); + fprintf(stderr, "Use --help to see usage information\n"); exit(1); }