[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: luac -l -l
- From: Patrick Donnelly <batrick@...>
- Date: Fri, 28 Oct 2011 22:18:04 -0400
On Fri, Oct 28, 2011 at 8:29 PM, Farmbuyer <email@example.com> wrote:
> I keep forgetting about the handy "-l -l" behavior when producing
> bytecode listings. ÂIt doesn't appear to be documented anywhere for
> 5.1, unless I'm badly overlooking something (always a possibility).
> The current lua-5.2.0-beta.tar.gz doesn't include the luac.1 *roff
> source, so I couldn't check if it's been added there, but I was hoping
> something simple could be added to the man page and to the usage
> output, e.g.,
> --- luac.c.orig
> +++ luac.c
> @@ -53,7 +53,7 @@
> Â "usage: %s [options] [filenames]\n"
> Â "Available options are:\n"
> - Â" Â-l Â Â Â list\n"
> + Â" Â-l Â Â Â list (use \"-l -l\" for full listing)\n"
> Â " Â-o name Âoutput to file " LUA_QL("name") " (default is \"%s\")\n"
> Â " Â-p Â Â Â parse only\n"
> Â " Â-s Â Â Â strip debug information\n"
Wow. I've combed through most of the Lua source in my time here and
had no idea this existed. What a nifty feature.
It's not in the man page either. "-l -l" seems very weird from a unix
program standpoint. Perhaps a new option letter should be used. In any
case, documenting it would be great :).
- Patrick Donnelly