Leo acts like it's treating the --config-single...
as a filename to open.

Looking at the log entry for "added support for --single-config.."
I see edits to leoApp.py and leoConfig.py, no mentions of examining argv

On Mon, May 19, 2008 at 5:34 PM, Edward K. Ream <[EMAIL PROTECTED]> wrote:
>
>
>
> On May 19, 8:02 am, "Edward K. Ream" <[EMAIL PROTECTED]> wrote:
>> On Mon, May 19, 2008 at 7:20 AM, Kent Tenney <[EMAIL PROTECTED]> wrote:
>>
>> > Might it make sense to add a command line option,
>> > --single-config '/home/ktenney/project/project.leo'
>> > which would fetch configuration only from the specified file?
>> > It seems this would basically produce the behavior I'm after,
>> > using the existing code.
>>
>> Of course it would make sense.  I'll do it today.
>
> This is now on the trunk.  If the command line contains
> "--single-config=<path-to-config-file>"
> Leo will scan only that .leo file for configuration options.  On XP
> the double quotes are required.  Don't know about Linux and the code
> has not been tested on Linux.
>
> Notes:
>
> - Leo removes the argument from the sys.argv vector after processing
> it, so adding this argument should have no effect on the rest of Leo.
>
> - <path-to-config-file> can be either an absolute path or relative to
> os.curdir.
>
> - The configuration file had better be a valid settings.leo file or
> weird things will happen.
>
> Let me know if this works for you.
>
> Edward
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to