Projects/laydi
Projects
/
laydi
Archived
7
0
Fork 0

Fixed the fluents -l bug.

This commit is contained in:
Einar Ryeng 2006-04-25 12:36:38 +00:00
parent 251f9d6cf4
commit 3e5be133ad
1 changed files with 5 additions and 5 deletions

10
fluents
View File

@ -31,11 +31,9 @@ def list_workflows():
print 'Workflows:'
wfs = workflow.workflow_list()
names = [wf.name for wf in wfs]
names.sort()
for n in names:
print ' %s (%s)' % (n.id, n.name)
for wf in wfs:
print ' %s (%s)' % (wf.ident, wf.name)
print
def parse_options():
short_opts = 'hlw:'
@ -46,8 +44,10 @@ def parse_options():
for opt, val in options:
if opt in ['-h', '--help']:
show_help()
sys.exit(0)
elif opt in ['-l', '--list-workflows']:
list_workflows()
sys.exit(0)
elif opt in ['-w', '--workflow']:
wfs = workflow.workflow_list()
for wf in wfs: