Changeset f8582c9 for fedd/fixed_resource.py
- Timestamp:
- Nov 18, 2008 8:32:05 PM (15 years ago)
- Branches:
- axis_example, compt_changes, info-ops, master, version-1.30, version-2.00, version-3.01, version-3.02
- Children:
- dab4d56
- Parents:
- fd729b9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fedd/fixed_resource.py
rfd729b9 rf8582c9 68 68 69 69 class key_opts(OptionParser): 70 """ 71 Options to the command line, pretty self describing 72 """ 70 73 def __init__(self): 71 74 OptionParser.__init__(self, usage="%prog " + \ … … 90 93 parser = key_opts() 91 94 action = sys.argv[1] 92 keys = set()93 95 94 96 # Check the action … … 96 98 else: sys.exit("Bad action, must be one of %s" % ", ".join(actions)) 97 99 98 # Parse the options100 # Parse and check the the options for consistency 99 101 (opts, args) = parser.parse_args() 100 102 if not opts.file: … … 149 151 print >>sys.stderr, "Cannot delete (%s, %s): not in db" % \ 150 152 (user, key) 153 # init action falls through to write an empty DB 151 154 write_key_db(opts.file, keys) 152 155 else: … … 176 179 else: 177 180 print >>sys.stderr, "Cannot delete %s: not in db" % project 181 182 # init action falls through to write an empty DB 178 183 write_project_db(opts.file, projects) 179 184
Note: See TracChangeset
for help on using the changeset viewer.