[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Lapp - a simple framework for command-line parsing
- From: steve donovan <steve.j.donovan@...>
- Date: Mon, 9 Mar 2009 18:40:05 +0200
On Mon, Mar 9, 2009 at 4:07 PM, Andrew Wilson <email@example.com> wrote:
> scale.lua:missing required parameter: scale -- Expect help to
> be shown here.
I agree - if there's an error, show the help. That's the usual convention.
But something like trim.lua has no required parameters and then the
expectation is that it will work like other filters (like cat for
> C:\tmp>scale.lua -s2 1 -- I'd expect 2 here and not interpret number as -2.
I'm following the convention where there's always a space (e.g like
gcc's -o option). But it really should not behave so badly ;) For
single-char options, no-space is sensible, however.