lmi
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lmi] [PATCH] Accept command line arguments in lmi_wx


From: Greg Chicares
Subject: Re: [lmi] [PATCH] Accept command line arguments in lmi_wx
Date: Mon, 09 Mar 2015 23:29:33 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.3.0

On 2015-03-08 23:40, Vadim Zeitlin wrote:
> On Sun, 08 Mar 2015 00:30:53 +0000 Greg Chicares <address@hidden> wrote:
[...]
> GC> I'm not averse to adding this sort of facility to lmi. I have two
> GC> minor, interrelated objections to this particular way of doing it:
[...]
> GC> (2) It's inconsistent with the way file names are handled by the
> GC> command-line 'lmi_cli*' binary. The difference is perhaps arbitrary
> GC> between
> GC>   lmi_wx file0 file1
> GC> in this patch versus
> GC>   lmi_cli -f file0 --file=file1
> GC> in 'lmi_cli*' today; but we want consistency, and I tend to prefer
> GC> the latter for lmi.
> 
>  Yes, consistency is definitely important. If lmi_cli behaviour could be
> changed, I think it would be the best from the consistency point of view as
> not only would it make the behaviour of CLI and GUI programs consistent
> with each other, but it would also make them both consistent with the other
> programs (unfortunate exceptions such as dd(1) aside...). But if, as I
> suspect, it can't, the attached patch should be the next best solution.

Applied 20150309T2300Z, revision 6127.

> though using "--file" option for it instead of positional parameter makes
> it less standard and so less useful from this point of view

I see your point. Perhaps I thought I was following 'make' or 'tar', but
'--file' for input files does seem rare. This would be a big change, as
it affects makefiles; I wouldn't have time to consider that now. But
today's change is useful and probably accomplishes most of what you want.

BTW, I tested it with 'ABC.cns', because we had just created that file in
another recent thread, and I was mildly surprised to see that that file
remains at the top of the history list on the "File" menu. I had somewhat
expected it to be removed from the list because it had been opened. But
that's consistent with the way lmi work without '--file', and also with
the way msw 'wordpad' works, so I suppose that's the canonical way.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]