Changeset 66bb590 for fedd/confirm_sshkey.py
- Timestamp:
- Dec 10, 2010 9:03:35 AM (13 years ago)
- Branches:
- axis_example, compt_changes, info-ops, master
- Children:
- 52b6ebc
- Parents:
- 913dc7a (diff), 8d5394e (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fedd/confirm_sshkey.py
r8d5394e r66bb590 3 3 import os, sys 4 4 import MySQLdb 5 from optparse import OptionParser5 from federation.util import file_expanding_opts 6 6 7 7 8 class opt_parser( OptionParser):8 class opt_parser(file_expanding_opts): 9 9 def __init__(self): 10 10 OptionParser.__init__(self, usage="%prog [opts] (--help for details)", … … 12 12 self.add_option('-u', '--user', dest='user', action='store', 13 13 default=None, help="User to confirm key of") 14 self.add_option('-f', '--keyfile', dest='keyfile', action='store', 14 self.add_option('-f', '--keyfile', dest='keyfile', 15 action='callback', callback=self.expand_file, type='str', 15 16 default=None, help="file containing pubkey to confirm") 16 self.add_option('-k', '--key', dest='key', 17 default=None, action='store',17 self.add_option('-k', '--key', dest='key', default=None, 18 action='callback', callback=self.expand_file, type='str', 18 19 help='Key on the command line') 19 20 self.add_option('-q', '--quiet', dest='verbose', action='store_false',
Note: See TracChangeset
for help on using the changeset viewer.