From 3e5be133adaf57b0355d18609df5f2dac9a38e78 Mon Sep 17 00:00:00 2001 From: einarr Date: Tue, 25 Apr 2006 12:36:38 +0000 Subject: [PATCH] Fixed the fluents -l bug. --- fluents | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/fluents b/fluents index ac42eef..d9d7fed 100755 --- a/fluents +++ b/fluents @@ -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: