xkcd-password icon indicating copy to clipboard operation
xkcd-password copied to clipboard

Read a config file for default options.

Open beala opened this issue 13 years ago • 1 comments

It'd be nice if xkpa could read a config file (maybe ~/.xpka) that would set default options. These could then be overwritten by any command line flags. So, if you always generate passwords with xkpa -nil 6 5 you could just throw -nil 6 5 in ~/.xkpa and these flags would always be used unless overwritten.

beala avatar Aug 08 '12 13:08 beala

Added something like this to unstable. The biggest problem is that it reads in a set of flags from "~/.xkpa" and splits the string on spaces, so that it will look like sys.argv (one argument per slot), but this obviously doesn't work if an argument contains spaces. Trying to think of a work around without writing a full blown parser.

beala avatar Aug 09 '12 13:08 beala