Support for using bam to run lua scripts #47

Merged
merged 2 commits into from Nov 15, 2013

2 participants

@joeldevahl

Adds support to run bam as a lua interpreter with a script file as argument. It also adds support for -- on the command line, which will parse all subsequent arguments as script arguments. These arguments are put in the ScriptArgs lua global as with the usual args (argname=val). Unnamed args will be put into the array part of the ScriptArgs lua global.

Example:

AddJob("outfile", "lua infile", "bam -e example.lua -- -o outfile infile")
@matricks matricks merged commit 6c76a1f into matricks:master Nov 15, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment