program-options: Spaces in a value?
What is the best way to specify spaces in a command line value with program_options. I tried putting quotes around the value and program_options couldn't deal with that as far as I could tell. Example: foo --input-file "C:\foo bar.txt" BTW, just saw the new design on the boost home page. Very nice! A great improvement in aeshetics and usability. -- Stephen W. Carson, Software Engineer DirXion Software in St. Louis, MO (636) 717-2367 The Boost Wiki: http://www.boost.org/wiki
Stephen W. Carson wrote:
What is the best way to specify spaces in a command line value with program_options. I tried putting quotes around the value and program_options couldn't deal with that as far as I could tell. Example: foo --input-file "C:\foo bar.txt"
It's up to the shell or on Windows the C library to split the command line into arguments, including interpreting quotes. Ben.
participants (2)
-
Ben Hutchings
-
Stephen W. Carson