Skip to content

Commit c242bf5

Browse files
add license to help message
1 parent b8b6a02 commit c242bf5

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

src/main.cpp

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,29 @@ int main(int argc, char **argv) {
9999
std::cout << "This application uses the following libraries:" << std::endl;
100100
std::cout << " - cxxopts by jarro2783 (https://github.com/jarro2783/cxxopts)" << std::endl;
101101
std::cout << " - libmodbus by Stéphane Raimbault (https://github.com/stephane/libmodbus)" << std::endl;
102+
std::cout << std::endl;
103+
std::cout << std::endl;
104+
std::cout << "MIT License:" << std::endl;
105+
std::cout << std::endl;
106+
std::cout << "Copyright (c) 2021 Nikolas Koesling" << std::endl;
107+
std::cout << std::endl;
108+
std::cout << "Permission is hereby granted, free of charge, to any person obtaining a copy" << std::endl;
109+
std::cout << "of this software and associated documentation files (the \"Software\"), to deal" << std::endl;
110+
std::cout << "in the Software without restriction, including without limitation the rights" << std::endl;
111+
std::cout << "to use, copy, modify, merge, publish, distribute, sublicense, and/or sell" << std::endl;
112+
std::cout << "copies of the Software, and to permit persons to whom the Software is" << std::endl;
113+
std::cout << "furnished to do so, subject to the following conditions:" << std::endl;
114+
std::cout << std::endl;
115+
std::cout << "The above copyright notice and this permission notice shall be included in all" << std::endl;
116+
std::cout << "copies or substantial portions of the Software." << std::endl;
117+
std::cout << std::endl;
118+
std::cout << "THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR" << std::endl;
119+
std::cout << "IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY," << std::endl;
120+
std::cout << "FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE" << std::endl;
121+
std::cout << "AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER" << std::endl;
122+
std::cout << "LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM," << std::endl;
123+
std::cout << "OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE" << std::endl;
124+
std::cout << "SOFTWARE." << std::endl;
102125
exit(EX_OK);
103126
}
104127

0 commit comments

Comments
 (0)