Add infile to options defaults
qha opened this issue · 6 comments
Add infile=None to OPTIONS_DEFAULTS in diceware/config.py to permit configuring custom word lists that are not installed in diceware/wordlists.
I do not understand. None
is already the default for the infile
argument. Could you explain what is not working for you?
get_config_dict only reads configuration settings that occur in defaults_dict, i take it that's why setting infile in .diceware.ini had no effect for me unlike other settings.
Ok, so you want to use a different wordlist by default? The usual way to do this is putting the list into the local wordlist dir (displayed by --help). Is this an option for you?
Sure, that is an option, i just prefer to keep my own configuration where i can write it without elevating my priveliges.
Sure, that is an option, i just prefer to keep my own configuration where i can write it without elevating my priveliges.
How about if, instead, Diceware included ${XDG_DATA_HOME}/diceware/wordlists
in its search for available wordlists?
That sounds like it would accomplish everything i wished for when opening this ticket.