diff options
Diffstat (limited to 'rsa')
-rw-r--r-- | rsa/cli.py | 6 | ||||
-rw-r--r-- | rsa/util.py | 4 |
2 files changed, 5 insertions, 5 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('--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', |