This commit is contained in:
Hideyuki Tanaka 2010-02-22 21:10:43 +09:00
parent 53b35f8a6c
commit 8693d9e10a
2 changed files with 2 additions and 2 deletions

View File

@ -344,7 +344,7 @@ public:
ftr=f;
}
void set_progam_name(const std::string &name){
void set_program_name(const std::string &name){
prog_name=name;
}

View File

@ -38,7 +38,7 @@ int main(int argc, char *argv[])
a.add<string>("type", 't', "protocol type", false, "http", cmdline::oneof<string>("http", "https", "ssh", "ftp"));
a.add("help", 0, "print this message");
a.footer("filename ...");
a.set_progam_name("test");
a.set_program_name("test");
bool ok=a.parse(argc, argv);