Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <cstdio>
- #include <string>
- #ifdef CLI11
- #include <CLI/CLI.hpp>
- #endif
- int main(int argc, char** argv)
- {
- std::string psuPath;
- #ifdef CLI11
- CLI::App app{"PSU utils app for OpenBMC"};
- app.add_option("-g,--getversion", psuPath,
- "Get PSU version from inventory path")
- ->required();
- CLI11_PARSE(app, argc, argv);
- #else
- (void)argc;
- (void)argv;
- #endif
- printf("%s\n", psuPath.c_str());
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement