diff options
author | Sybren A. St?vel <sybren@stuvel.eu> | 2011-08-03 13:31:47 +0200 |
---|---|---|
committer | Sybren A. St?vel <sybren@stuvel.eu> | 2011-08-03 13:31:47 +0200 |
commit | 27673f005e64071b1464c89f4aaeb2b2db8848fe (patch) | |
tree | b600250a97a46c34ad330af84e04fe5f1d34851a /rsa/cli.py | |
parent | 23aef04b174b624cc962cf47a211367a382638aa (diff) | |
download | rsa-27673f005e64071b1464c89f4aaeb2b2db8848fe.tar.gz |
More consistent options for pyrsa-keygen
Diffstat (limited to 'rsa/cli.py')
-rw-r--r-- | rsa/cli.py | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -41,7 +41,7 @@ def keygen(): 'not saved if this option is not present. You can use ' 'pyrsa-priv2pub to create the public key file later.') - parser.add_option('--privout', type='string', + parser.add_option('--out', type='string', help='Output filename for the private key. The key is ' 'written to stdout if this option is not present.') @@ -76,9 +76,9 @@ def keygen(): # Save private key data = priv_key.save_pkcs1(format=cli.form) - if cli.privout: - print >>sys.stderr, 'Writing private key to %s' % cli.privout - with open(cli.privout, 'w') as outfile: + if cli.out: + print >>sys.stderr, 'Writing private key to %s' % cli.out + with open(cli.out, 'w') as outfile: outfile.write(data) else: print >>sys.stderr, 'Writing private key to stdout' |