// Test only makes sure we can use different argv types for the // parser. Don't run, just compile. #include "tclap/CmdLine.h" using namespace TCLAP; int main() { char *argv5[] = {(char*)"Foo", 0}; const char *argv6[] = {"Foo", 0}; const char * const argv7[] = {"Foo", 0}; char **argv1 = argv5; const char **argv2 = argv6; const char * const * argv3 = argv7; const char * const * const argv4 = argv7; CmdLine cmd("Command description message", ' ', "0.9"); cmd.parse(0, argv1); cmd.parse(0, argv2); cmd.parse(0, argv3); cmd.parse(0, argv4); cmd.parse(0, argv5); cmd.parse(0, argv6); cmd.parse(0, argv7); }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 16129 | tjuricek |
Rename/move files again... this time to the hyphenated-approach. |
||
//guest/tjuricek/file_system_client/main/vendor/tclap-1.2.1/examples/test10.cpp | |||||
#1 | 16119 | tjuricek | Rename/move to meet workshop project conventions. | ||
//guest/tjuricek/fsclient/vendor/tclap-1.2.1/examples/test10.cpp | |||||
#1 | 16118 | tjuricek |
FSClient initial version: handles add, edit This is a proof-of-concept app that mirrors an existing Perforce workspace to handle running commands like "p4 add" and "p4 edit" automatically when your apps add and write files. See the readme for more information. |