read option from command or config file