c++ boost program options always giving default value
问题 I'm struggling to get boost program options to work properly. I need to be able to start my program from the terminal window (Linux) with an optional argument that takes a value. No matter what I did, this would not work; no matter what value I typed from the terminal, it just returned the default value. Furthermore, if I did not include the option in my termina command, it returned with terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception