summaryrefslogtreecommitdiff
path: root/rsa
diff options
context:
space:
mode:
authorSybren A. St?vel <sybren@stuvel.eu>2011-08-03 13:56:32 +0200
committerSybren A. St?vel <sybren@stuvel.eu>2011-08-03 13:56:32 +0200
commit78c3091fcf3d45fdc491495a221e98890841d8ee (patch)
tree132be36f986c68ab654a782eb84739d69dbba8f9 /rsa
parent3a76cb25f634ecf317e0be65e53703b05d704bee (diff)
downloadrsa-78c3091fcf3d45fdc491495a221e98890841d8ee.tar.gz
More documentation about key size and OpenSSL compatibility
Diffstat (limited to 'rsa')
-rw-r--r--rsa/cli.py6
-rw-r--r--rsa/util.py4
2 files changed, 5 insertions, 5 deletions
diff --git a/rsa/cli.py b/rsa/cli.py
index 91fe0d7..012c77d 100644
--- a/rsa/cli.py
+++ b/rsa/cli.py
@@ -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('--out', type='string',
+ parser.add_option('-o', '--out', type='string',
help='Output filename for the private key. The key is '
'written to stdout if this option is not present.')
@@ -142,10 +142,10 @@ class CryptoOperation(object):
parser = OptionParser(usage=self.usage, description=self.description)
- parser.add_option('--input', type='string', help=self.input_help)
+ parser.add_option('-i', '--input', type='string', help=self.input_help)
if self.has_output:
- parser.add_option('--output', type='string', help=self.output_help)
+ parser.add_option('-o', '--output', type='string', help=self.output_help)
parser.add_option('--keyform',
help='Key format of the %s key - default PEM' % self.keyname,
diff --git a/rsa/util.py b/rsa/util.py
index 9c1c863..db6944e 100644
--- a/rsa/util.py
+++ b/rsa/util.py
@@ -30,9 +30,9 @@ def private_to_public():
'corresponding public key. Both private and public keys use '
'the format described in PKCS#1 v1.5')
- parser.add_option('--in', dest='infilename', type='string',
+ parser.add_option('-i', '--input', dest='infilename', type='string',
help='Input filename. Reads from stdin if not specified')
- parser.add_option('--out', dest='outfilename', type='string',
+ parser.add_option('-o', '--output', dest='outfilename', type='string',
help='Output filename. Writes to stdout of not specified')
parser.add_option('--inform', dest='inform',