modifier_subtitles={'cmd':'Please don\' press cmd on the settings option, there be dragons'}, arg='%s' % k.lower(), valid=True, icon=ICON_SETTINGS) wf.send_feedback() sys.exit() if wf.pargs.issue: ## Create issue with --create-issue log.error('Create issue was ran with the following parameters: %s' % wf.args) res = wf.run(create_issue) elif wf.pargs.default_project: ## Set default project with --default-project res = wf.run(set_default_project) elif wf.pargs.open_issue: wf.params = split_query_to_params(wf.pargs.open_issue) log.error(wf.pargs) if len(wf.params) == 2: res = wf.run(filter_issue_types) elif len(wf.params) == 3: res = wf.run(add_ticket_title) else: wf.add_item(u'Please type YT to run the workflow again.', subtitle=u'Or ask alex why he can\'t make it work like this') wf.send_feedback() else: ## u'\u25b6' represents the ▶︎︎ character which I use to split params in alfred. ## if there's more then 1 item after the split it means there are several params if wf.pargs.query: wf.params = split_query_to_params(wf.pargs.query) else: wf.params = ()