On 09/11/2013 08:42 PM, Matthieu Vachon wrote: > Hi Per, > > Here my try at fixing the incorrect warning that occurs when > generating a main method and using the `command-line-arguments`. It's > probably not the optimal way to fix the issue but I hope it is good > enough to be included in the trunk. Thanks for prodding me into action. Your patch makes me think that having a special case for command-line-arguments is the wrong approach. Please try the attached patch instead. That is a simpler/cleaner solution. You might also consider using the (command-line) procedure. It is specified by R6RS and R7RS so is more portable. It also gives you the "command" used to invoke the application (roughly argv[0]). The attached patch provides a more informative result for (car (command-line)) - rather than plain "kawa". I'd be interested in feedback in how portable it is: Windows, MacOS, non-Sun/Oracle VMs (including ones that don't set the sun.java.command property). (I also working on updating the documentation.) -- --Per Bothner per@bothner.com http://per.bothner.com/