Add -m option to jdnssec-zoneformat
git-svn-id: https://svn.verisignlabs.com/jdnssec/tools/trunk@225 4cbd57fe-54e5-0310-bd9a-f30fe5ea5e6e
This commit is contained in:
parent
86072cbcc8
commit
04d751ae56
@ -1,3 +1,7 @@
|
|||||||
|
2011-01-11 Blacka <davidb@verisignlabs.com>
|
||||||
|
|
||||||
|
* jdnssec-zoneformat: add a -m option for formatting as multiline.
|
||||||
|
|
||||||
2010-12-14 Blacka <davidb@verisignlabs.com>
|
2010-12-14 Blacka <davidb@verisignlabs.com>
|
||||||
|
|
||||||
* jdnssec-verifyzone: Add options to either fudge or ignore RRSIG
|
* jdnssec-verifyzone: Add options to either fudge or ignore RRSIG
|
||||||
|
@ -40,6 +40,7 @@ import java.util.logging.Logger;
|
|||||||
|
|
||||||
import org.apache.commons.cli.*;
|
import org.apache.commons.cli.*;
|
||||||
import org.xbill.DNS.Master;
|
import org.xbill.DNS.Master;
|
||||||
|
import org.xbill.DNS.Options;
|
||||||
import org.xbill.DNS.Record;
|
import org.xbill.DNS.Record;
|
||||||
import org.xbill.DNS.Section;
|
import org.xbill.DNS.Section;
|
||||||
|
|
||||||
@ -80,6 +81,7 @@ public class ZoneFormat
|
|||||||
// String optstr = null;
|
// String optstr = null;
|
||||||
|
|
||||||
if (cli.hasOption('h')) usage();
|
if (cli.hasOption('h')) usage();
|
||||||
|
if (cli.hasOption('m')) Options.set("multiline");
|
||||||
|
|
||||||
if (cli.hasOption('v'))
|
if (cli.hasOption('v'))
|
||||||
{
|
{
|
||||||
@ -122,6 +124,7 @@ public class ZoneFormat
|
|||||||
|
|
||||||
// boolean options
|
// boolean options
|
||||||
opts.addOption("h", "help", false, "Print this message.");
|
opts.addOption("h", "help", false, "Print this message.");
|
||||||
|
opts.addOption("m", "multiline", false, "Use a multiline format");
|
||||||
|
|
||||||
// Argument options
|
// Argument options
|
||||||
OptionBuilder.hasOptionalArg();
|
OptionBuilder.hasOptionalArg();
|
||||||
|
Loading…
Reference in New Issue
Block a user