Commit acaff641 authored by Robert Ricci's avatar Robert Ricci
Browse files

Add back in the ability to print out the usage message, which I had commened

out for some reason, and added an example of the intended usage.
parent 322b92ee
......@@ -39,7 +39,7 @@ my %opt = ();
if ($opt{h}) { exit &usage; }
$infile = shift @ARGV; # || exit &usage;
$infile = shift @ARGV || exit &usage;
open(IF,"<$infile") or die "Unable to open $infile for reading\n";
while (<IF>) {
......@@ -89,4 +89,6 @@ sub usage {
print "Usage: $0 [-h] [-v] <templatefile>\n";
print "-h Show this message\n";
print "-v Use virtual names, when possible, for hostnames\n";
print "Spits out a dhcpd config file on stdout, as in:\n";
print "$0 dhcpd.conf.template > dhcpd.conf\n";
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment