1
1
# wsjcpp-arguments
2
2
3
- [ ![ Build Status] ( https://api.travis-ci.org /wsjcpp/wsjcpp-arguments.svg?branch=master )] ( https://travis-ci.org /wsjcpp/wsjcpp-arguments ) [ ![ Github Stars] ( https://img.shields.io/github/stars/wsjcpp/wsjcpp-arguments.svg?label=github%20%E2%98%85 )] ( https://github.com/wsjcpp/wsjcpp-arguments/stargazers ) [ ![ Github Stars] ( https://img.shields.io/github/contributors/wsjcpp/wsjcpp-arguments.svg )] ( https://github.com/wsjcpp/wsjcpp-arguments/ ) [ ![ Github Forks] ( https://img.shields.io/github/forks/wsjcpp/wsjcpp-arguments.svg?label=github%20forks )] ( https://github.com/wsjcpp/wsjcpp-arguments/network/members )
3
+ [ ![ Build Status] ( https://api.travis-ci.com /wsjcpp/wsjcpp-arguments.svg?branch=master )] ( https://travis-ci.com /wsjcpp/wsjcpp-arguments ) [ ![ Github Stars] ( https://img.shields.io/github/stars/wsjcpp/wsjcpp-arguments.svg?label=github%20%E2%98%85 )] ( https://github.com/wsjcpp/wsjcpp-arguments/stargazers ) [ ![ Github Stars] ( https://img.shields.io/github/contributors/wsjcpp/wsjcpp-arguments.svg )] ( https://github.com/wsjcpp/wsjcpp-arguments/ ) [ ![ Github Forks] ( https://img.shields.io/github/forks/wsjcpp/wsjcpp-arguments.svg?label=github%20forks )] ( https://github.com/wsjcpp/wsjcpp-arguments/network/members )
4
4
5
5
Parsing and handling for application arguments
6
6
@@ -26,7 +26,7 @@ header `argument_processor_test_program.h`:
26
26
27
27
#include <wsjcpp_arguments.h>
28
28
29
- class ArgumentProcessorMain : public WSJCppArgumentProcessor {
29
+ class ArgumentProcessorMain : public WsjcppArgumentProcessor {
30
30
public:
31
31
ArgumentProcessorMain();
32
32
@@ -48,7 +48,7 @@ source-code `argument_processor_main.cpp`:
48
48
// ArgumentProcessorMain
49
49
50
50
ArgumentProcessorMain::ArgumentProcessorMain()
51
- : WSJCppArgumentProcessor ("test_program", "TODO description") {
51
+ : WsjcppArgumentProcessor ("test_program", "TODO description") {
52
52
TAG = "ArgumentProcessorMain";
53
53
// registrySingleArgument("--single", "What exactly do this single param?");
54
54
// registryParameterArgument("-param", "What need this param?");
@@ -59,7 +59,7 @@ ArgumentProcessorMain::ArgumentProcessorMain()
59
59
// ---------------------------------------------------------------------
60
60
61
61
bool ArgumentProcessorMain::applySingleArgument(const std::string &sProgramName, const std::string &sArgumentName) {
62
- WSJCppLog ::err(TAG, "Not implemented");
62
+ WsjcppLog ::err(TAG, "Not implemented");
63
63
return false;
64
64
}
65
65
@@ -70,14 +70,14 @@ bool ArgumentProcessorMain::applyParameterArgument(
70
70
const std::string &sArgumentName,
71
71
const std::string &sValue
72
72
) {
73
- WSJCppLog ::err(TAG, "Not implemented");
73
+ WsjcppLog ::err(TAG, "Not implemented");
74
74
return false;
75
75
}
76
76
77
77
// ---------------------------------------------------------------------
78
78
79
79
int ArgumentProcessorMain::exec(const std::string &sProgramName, const std::vector<std::string> &vSubParams) {
80
- WSJCppLog ::err(TAG, "Not implemented");
80
+ WsjcppLog ::err(TAG, "Not implemented");
81
81
return -1;
82
82
}
83
83
```
90
90
91
91
int main(int argc, const char* argv[]) {
92
92
ArgumentProcessorMain *pMain = new ArgumentProcessorMain();
93
- WSJCppArguments prog(argc, argv, pMain);
93
+ WsjcppArguments prog(argc, argv, pMain);
94
94
95
95
int nResult = prog.exec();
96
96
if (nResult != 0) {
0 commit comments