Hi Florian,

Florian Ragwitz wrote:
> By default, rtorrent either loads its configuration file from
> ~/.rtorrent.rc, or doesn't load it at all in the presence of the -n
> switch.
> 
> I tend to have more than one rtorrent instance running for the same
> user, all of which might need different configuration
> options. Specifying all options for one instance using -o and -O tends
> to be complicated, especially with big-ish configurations.
> 
> I'd love having a way to have multiple separate configuration files I
> can use for the individual rtorrent instances, be it through a
> command-line switch that allows specifying a config file path, or a
> config key that causes a config file to be loaded from a path specified
> as its value.
> 
>   $ rtorrent -c ~/.rtorrent.rc.foo
>   $ rtorrent -o load_config=~/.rtorrent.rc.foo

I think what you're suggesting exists already. The config key is
'import' or 'try_import' (the former failing on invalid input, while the
latter doesn't). If you don't want the default configuration file to be
read, you need to use '-n' too, otherwise rtorrent will read both:

  $ rtorrent -n -o import=~/.rtorrent.rc.foo

Can you try it and see if it really does what you think it should?

Cheers,

-- 
Benoît Knecht



--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to