std::vector<std::string> split_unix(
    const std::string& cmdline,
    const std::string& separator = " \t",
    const std::string& quote = "'\"",
    const std::string& escape = "\\")

Description

Splits a given string to a collection of single strings which can be passed to command_line_parser. The second parameter is used to specify a collection of possible separator chars used for splitting. The separator is defaulted to space " ". Splitting is done in a unix style way, with respect to quotes '"' and escape characters ' \ '

Declared at: libs/pika/program_options/include/pika/program_options/parsers.hpp:249

Parameters

const std::string& cmdline
const std::string& separator = " \t"
const std::string& quote = "'\""
const std::string& escape = "\\"