No help output if no host is specified

This commit is contained in:
Pieter Wuille 2012-02-27 03:31:34 +01:00
parent 0835038185
commit bb4595e3d0

View file

@ -83,7 +83,7 @@ public:
}
}
}
if (host == NULL || ns == NULL) showHelp = true;
if (host != NULL && ns == NULL) showHelp = true;
if (showHelp) fprintf(stderr, help, argv[0]);
}
};