google-code-export / fanficdownloader

Automatically exported from code.google.com/p/fanficdownloader
0 stars 0 forks source link

Request to read config(ini) from CLI option #19

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I know I should fill out some sort of 'bug report', but this is just dumb. This 
program apparently reads two files in the current directory as the config.

There's no way to specify another config file on the command line, and there's 
no way for it to locate its config file if you, you know, happen to be running  
it from another directory.

I can't even imagine how this begins to make sense to anyone. How, exactly, is 
anyone imagining this program gets used? Are we supposed to chdir into the 
program directory before we use it? Are we supposed to stick personal.ini files 
in our epub storage directory? What exactly is the presumed process here?

I was writing a nice little interface to download things and automatically 
update them and mail them out when they change, and just require someone to put 
fanficdownloader somewhere and point to it...but apparently I'm going to have 
to include the entire thing along with my php script, and hack the 
config.read('personal.ini') line to actually _find_ the config files.

I hate to be so blunt, but, seriously, this is idiotic. At the _bare minimum_ 
give me the option to specify a config file on the command line, so I can 
override the crazy-ass default of 'let's look for the config files in the 
current directory, and only the current directory!'

Original issue reported on code.google.com by da...@creeknet.com on 18 Sep 2011 at 4:13

GoogleCodeExporter commented 9 years ago
In practice, the vast majority of the people who use fanficdownloader use the 
AppEngine service, not the CLI.  But your point is well taken, no matter how 
'blunt'.

I've released a new version that I believe will address your concerns.  It now 
looks for default.ini and personal.ini in ~/.fanficdownloader, then in the PWD, 
then for files specified on the CLI.  CLI options overrides PWD which overrides 
~/.fanficdownloader.

http://fanficdownloader.googlecode.com/files/fanficdownloader-4.0.5.zip

Original comment by retiefj...@gmail.com on 19 Sep 2011 at 10:15

GoogleCodeExporter commented 9 years ago

Original comment by retiefj...@gmail.com on 19 Sep 2011 at 10:15