mirror of
https://github.com/tanakh/cmdline.git
synced 2024-11-21 01:14:06 +08:00
fix typo
This commit is contained in:
parent
53b35f8a6c
commit
8693d9e10a
@ -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;
|
||||
}
|
||||
|
||||
|
2
test.cpp
2
test.cpp
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user