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 | fc9c786aca72401ec1a879f27ab99bde6b795736 (patch) | |
tree | b600250a97a46c34ad330af84e04fe5f1d34851a /rsa/cli.py | |
parent | 3a61143d1e5a5b9a5c6e92a6a099c2f4bb112aa0 (diff) | |
download | rsa-git-fc9c786aca72401ec1a879f27ab99bde6b795736.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' |