Add option parsing for config file

Signed-off-by: Prasanna Santhanam <tsp@apache.org>