Fixed the fluents -l bug.
This commit is contained in:
parent
251f9d6cf4
commit
3e5be133ad
10
fluents
10
fluents
|
@ -31,11 +31,9 @@ def list_workflows():
|
||||||
print 'Workflows:'
|
print 'Workflows:'
|
||||||
|
|
||||||
wfs = workflow.workflow_list()
|
wfs = workflow.workflow_list()
|
||||||
names = [wf.name for wf in wfs]
|
for wf in wfs:
|
||||||
names.sort()
|
print ' %s (%s)' % (wf.ident, wf.name)
|
||||||
|
print
|
||||||
for n in names:
|
|
||||||
print ' %s (%s)' % (n.id, n.name)
|
|
||||||
|
|
||||||
def parse_options():
|
def parse_options():
|
||||||
short_opts = 'hlw:'
|
short_opts = 'hlw:'
|
||||||
|
@ -46,8 +44,10 @@ def parse_options():
|
||||||
for opt, val in options:
|
for opt, val in options:
|
||||||
if opt in ['-h', '--help']:
|
if opt in ['-h', '--help']:
|
||||||
show_help()
|
show_help()
|
||||||
|
sys.exit(0)
|
||||||
elif opt in ['-l', '--list-workflows']:
|
elif opt in ['-l', '--list-workflows']:
|
||||||
list_workflows()
|
list_workflows()
|
||||||
|
sys.exit(0)
|
||||||
elif opt in ['-w', '--workflow']:
|
elif opt in ['-w', '--workflow']:
|
||||||
wfs = workflow.workflow_list()
|
wfs = workflow.workflow_list()
|
||||||
for wf in wfs:
|
for wf in wfs:
|
||||||
|
|
Reference in New Issue