On Sun, Jan 16, 2011 at 12:15 PM, David Given <dg@cowlark.com> wrote: > On 16/01/11 10:12, Axel Kittenberger wrote: > [...] >> * Its easy enough to create similar functionality with Lua code. > > See line 1452 and down here: > > http://primemover.svn.sourceforge.net/viewvc/primemover/pm/src/pm.lua?revision=141&view=markup > > [...] > The main code that makes it all work is at line 1584 and is 30 lines > long, so it's hardly worth turning into a library. Would you maybe care to put it on http://snippets.luacode.org ? OTOH, quick search of the site with an "arguments" query found this: http://snippets.luacode.org/snippets/Parsing_Command-line_arguments_9 which might also be worth a look. greetings Mateusz Czapliński