Kitware / tangelo

A simple, quick, powerful web framework
http:/tangelohub.org/tangelo/
Apache License 2.0
185 stars 35 forks source link

Allow json instead of a file for config. #526

Closed manthey closed 8 years ago

manthey commented 8 years ago

--config has required a yaml file. If, instead of a file, a string is specified that begins with an open brace {, AND a file with that exact name does not exist, try to parse that string as yaml and use that as the configuration.

This was added on top of the enable-verbosity branch. It could be rebased to develop if desired.

waxlamp commented 8 years ago

I went ahead and rebased this against develop. I have saved the original PR at the branch "command-line-config-SAVE". If this PR works out properly, that branch should be deleted.

@manthey, let me know if this LGTY.

manthey commented 8 years ago

LGTM.