[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: luac -l -l
- From: HyperHacker <hyperhacker@...>
- Date: Fri, 28 Oct 2011 23:28:46 -0600
On Fri, Oct 28, 2011 at 20:18, Patrick Donnelly <firstname.lastname@example.org> wrote:
> 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
Well, I've seen a number of programs that have an option like "-v
verbose (repeat for more verbosity), but they usually write that as
-vv rather than -v -v...
Sent from my toaster.