void CommandLine::InitFromArgv(const StringVector& argv) { argv_ = StringVector(1); switches_.clear(); begin_args_ = 1; SetProgram(argv.empty() ? FilePath() : FilePath(argv[0])); AppendSwitchesAndArguments(*this, argv); }
void CommandLine::AppendArguments(const CommandLine& other, bool include_program) { if(include_program) { SetProgram(other.GetProgram()); } AppendSwitchesAndArguments(*this, other.argv()); }