@Test public void testPrintHelp() throws Exception { JsignCLI.main("--help"); }
private void printHelp() { String header = "Sign and timestamp a Windows executable file, a Microsoft Installer (MSI) or a script (PowerShell, VBScript, JScript, WSF).\n\n"; String footer ="\n" + "Examples:\n\n" + " Signing with a PKCS#12 keystore and timestamping:\n\n" + " jsign --keystore keystore.p12 --alias test --storepass pwd \\\n" + " --tsaurl http: " Signing with a SPC certificate and a PVK key:\n\n" + " jsign --certfile certificate.spc --keyfile key.pvk --keypass pwd installer.msi\n\n" + "Please report suggestions and issues on the GitHub project at https: HelpFormatter formatter = new HelpFormatter(); formatter.setOptionComparator(null); formatter.setWidth(85); formatter.setDescPadding(1); formatter.printHelp(getProgramName() + " [OPTIONS] FILE", header, options, footer); }
JsignCLI { private void printHelp() { String header = "Sign and timestamp a Windows executable file, a Microsoft Installer (MSI) or a script (PowerShell, VBScript, JScript, WSF).\n\n"; String footer ="\n" + "Examples:\n\n" + " Signing with a PKCS#12 keystore and timestamping:\n\n" + " jsign --keystore keystore.p12 --alias test --storepass pwd \\\n" + " --tsaurl http: " Signing with a SPC certificate and a PVK key:\n\n" + " jsign --certfile certificate.spc --keyfile key.pvk --keypass pwd installer.msi\n\n" + "Please report suggestions and issues on the GitHub project at https: HelpFormatter formatter = new HelpFormatter(); formatter.setOptionComparator(null); formatter.setWidth(85); formatter.setDescPadding(1); formatter.printHelp(getProgramName() + " [OPTIONS] FILE", header, options, footer); } }
JsignCLI { private void printHelp() { String header = "Sign and timestamp a Windows executable file, a Microsoft Installer (MSI) or a script (PowerShell, VBScript, JScript, WSF).\n\n"; String footer ="\n" + "Examples:\n\n" + " Signing with a PKCS#12 keystore and timestamping:\n\n" + " jsign --keystore keystore.p12 --alias test --storepass pwd \\\n" + " --tsaurl http: " Signing with a SPC certificate and a PVK key:\n\n" + " jsign --certfile certificate.spc --keyfile key.pvk --keypass pwd installer.msi\n\n" + "Please report suggestions and issues on the GitHub project at https: HelpFormatter formatter = new HelpFormatter(); formatter.setOptionComparator(null); formatter.setWidth(85); formatter.setDescPadding(1); formatter.printHelp(getProgramName() + " [OPTIONS] FILE", header, options, footer); } JsignCLI(); }
JsignCLI { private void printHelp() { String header = "Sign and timestamp a Windows executable file, a Microsoft Installer (MSI) or a script (PowerShell, VBScript, JScript, WSF).\n\n"; String footer ="\n" + "Examples:\n\n" + " Signing with a PKCS#12 keystore and timestamping:\n\n" + " jsign --keystore keystore.p12 --alias test --storepass pwd \\\n" + " --tsaurl http: " Signing with a SPC certificate and a PVK key:\n\n" + " jsign --certfile certificate.spc --keyfile key.pvk --keypass pwd installer.msi\n\n" + "Please report suggestions and issues on the GitHub project at https: HelpFormatter formatter = new HelpFormatter(); formatter.setOptionComparator(null); formatter.setWidth(85); formatter.setDescPadding(1); formatter.printHelp(getProgramName() + " [OPTIONS] FILE", header, options, footer); } JsignCLI(); static void main(String... args); }
JsignCLI { private void printHelp() { String header = "Sign and timestamp a Windows executable file, a Microsoft Installer (MSI) or a script (PowerShell, VBScript, JScript, WSF).\n\n"; String footer ="\n" + "Examples:\n\n" + " Signing with a PKCS#12 keystore and timestamping:\n\n" + " jsign --keystore keystore.p12 --alias test --storepass pwd \\\n" + " --tsaurl http: " Signing with a SPC certificate and a PVK key:\n\n" + " jsign --certfile certificate.spc --keyfile key.pvk --keypass pwd installer.msi\n\n" + "Please report suggestions and issues on the GitHub project at https: HelpFormatter formatter = new HelpFormatter(); formatter.setOptionComparator(null); formatter.setWidth(85); formatter.setDescPadding(1); formatter.printHelp(getProgramName() + " [OPTIONS] FILE", header, options, footer); } JsignCLI(); static void main(String... args);  }