mirror of
https://github.com/nsacyber/HIRS.git
synced 2024-12-19 04:58:00 +00:00
Print command line arguments only if --verbose option is given
This commit is contained in:
parent
0ffb931112
commit
81575ee08a
@ -36,7 +36,9 @@ public class Main {
|
|||||||
} else {
|
} else {
|
||||||
if (!commander.getVerifyFile().isEmpty()) {
|
if (!commander.getVerifyFile().isEmpty()) {
|
||||||
validator = new ReferenceManifestValidator();
|
validator = new ReferenceManifestValidator();
|
||||||
System.out.println(commander.toString());
|
if (commander.isVerbose()) {
|
||||||
|
System.out.println(commander.toString());
|
||||||
|
}
|
||||||
String verifyFile = commander.getVerifyFile();
|
String verifyFile = commander.getVerifyFile();
|
||||||
String rimel = commander.getRimEventLog();
|
String rimel = commander.getRimEventLog();
|
||||||
String certificateFile = commander.getPublicCertificate();
|
String certificateFile = commander.getPublicCertificate();
|
||||||
@ -60,7 +62,9 @@ public class Main {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
gateway = new SwidTagGateway();
|
gateway = new SwidTagGateway();
|
||||||
System.out.println(commander.toString());
|
if (commander.isVerbose()) {
|
||||||
|
System.out.println(commander.toString());
|
||||||
|
}
|
||||||
String createType = commander.getCreateType().toUpperCase();
|
String createType = commander.getCreateType().toUpperCase();
|
||||||
String attributesFile = commander.getAttributesFile();
|
String attributesFile = commander.getAttributesFile();
|
||||||
String jksTruststoreFile = commander.getTruststoreFile();
|
String jksTruststoreFile = commander.getTruststoreFile();
|
||||||
|
@ -32,9 +32,6 @@ public class Commander {
|
|||||||
private String outFile = "";
|
private String outFile = "";
|
||||||
@Parameter(names = {"--verbose"}, description = "Control output verbosity.")
|
@Parameter(names = {"--verbose"}, description = "Control output verbosity.")
|
||||||
private boolean verbose = false;
|
private boolean verbose = false;
|
||||||
@Parameter(names = {"-v", "--verify <path>"}, order = 3,
|
|
||||||
description = "Specify a RIM file to verify.")
|
|
||||||
private String verifyFile = "";
|
|
||||||
@Parameter(names = {"-t", "--truststore <path>"}, order = 4,
|
@Parameter(names = {"-t", "--truststore <path>"}, order = 4,
|
||||||
description = "The truststore to sign the base RIM created "
|
description = "The truststore to sign the base RIM created "
|
||||||
+ "or to validate the signed base RIM.")
|
+ "or to validate the signed base RIM.")
|
||||||
@ -76,6 +73,7 @@ public class Commander {
|
|||||||
public boolean isVersion() {
|
public boolean isVersion() {
|
||||||
return version;
|
return version;
|
||||||
}
|
}
|
||||||
|
public boolean isVerbose() { return verbose; }
|
||||||
public String getAttributesFile() {
|
public String getAttributesFile() {
|
||||||
return attributesFile;
|
return attributesFile;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user