Changeset 62f3dd9 for fedd/confirm_sshkey.py
- Timestamp:
- Dec 10, 2010 9:00:16 AM (13 years ago)
- Branches:
- axis_example, compt_changes, info-ops, master
- Children:
- 913dc7a
- Parents:
- fbee30a
- git-author:
- Ted Faber <faber@…> (12/09/10 11:41:45)
- git-committer:
- Ted Faber <faber@…> (12/10/10 09:00:16)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fedd/confirm_sshkey.py
rfbee30a r62f3dd9 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.