SHARE
TWEET

Untitled

mine260309 Oct 10th, 2019 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <cstdio>
  2. #include <string>
  3.  
  4. #ifdef CLI11
  5. #include <CLI/CLI.hpp>
  6. #endif
  7.  
  8. int main(int argc, char** argv)
  9. {
  10.     std::string psuPath;
  11. #ifdef CLI11
  12.     CLI::App app{"PSU utils app for OpenBMC"};
  13.     app.add_option("-g,--getversion", psuPath,
  14.                    "Get PSU version from inventory path")
  15.         ->required();
  16.     CLI11_PARSE(app, argc, argv);
  17. #else
  18.     (void)argc;
  19.     (void)argv;
  20. #endif
  21.     printf("%s\n", psuPath.c_str());
  22.     return 0;
  23. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top