Changeset db64553
- Timestamp:
- Feb 23, 2010 6:24:02 AM (15 years ago)
- Branches:
- axis_example, compt_changes, info-ops, master, version-3.01, version-3.02
- Children:
- dbc9144
- Parents:
- 2b11a1d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fedd/fedid.py
r2b11a1d rdb64553 13 13 self.add_option("-a", "--attribute", action="append", dest="attrs", 14 14 help="Append attribute to each fedid") 15 self.add_option('--label', action='store_true', dest='label', 16 help='Include the filename before each fedid') 15 17 16 18 parser = fedid_opts() … … 19 21 for arg in args: 20 22 fid = fedid(file=arg) 21 if opts.attrs: print "fedid:%s %s" % (fid, ','.join(opts.attrs))22 else: print "fedid:%s" % fid23 23 24 if opts.label: l = "%s: " % arg 25 else: l = "" 26 27 if opts.attrs: print "%sfedid:%s %s" % (l, fid, ','.join(opts.attrs)) 28 else: print "%sfedid:%s" % (l, fid) 29
Note: See TracChangeset
for help on using the changeset viewer.