* getopt fix for PrivateKeyFile -t sigtype, busted in prop

* history for prop, -8
This commit is contained in:
zzz
2014-02-17 13:39:32 +00:00
parent 2f7eb56790
commit 6e0ca92041
3 changed files with 16 additions and 3 deletions

View File

@ -145,9 +145,9 @@ public class PrivateKeyFile {
case 't':
// KeyCert
SigType type = SigType.parseSigType(args[g.getOptind()]);
SigType type = SigType.parseSigType(stype);
if (type == null)
throw new IllegalArgumentException("Signature type " + args[g.getOptind()] + " is not supported");
throw new IllegalArgumentException("Signature type " + stype + " is not supported");
pkf.setKeyCert(type);
System.out.println("New destination with key cert is:");
break;