From: Shadowfirebird Date: 2011-03-08T18:25:31+09:00 Subject: Re: gem to deal with config file / program options > I've never needed anything so complex that I > couldn't get there with a combination of YAML::load_file and Hash#merge > using Ryan Bates' > Railscaston > YAML configuration files as a sort of loose template. Are you looking > for something more sophisticated than that? A little more, yes. I've done as you did until I reached the point where the program I was writing needed the ability to specify the config file on the command line -- but still have command line options override those in the config file. Sure, I can see to code my own way out of this: one hash for default options, one hash made up of command line options, and one hash for the config file; then merge. But if some kind person has written an elegant gem that gives me all I could want in this department (much as optparse does so well for the command line), and if everyone but me was already using it, then I should be, too. Plus, some of the descriptions for gems hint at cleverer stuff: objects that inherently know what their configuration options are, for example. But I can't find any documentation on how this works out in practice. -- You can't have everything... where would you put it? -- Steven Wright