Check will check if the string contains an exit message
| 56 | |
| 57 | // Check will check if the string contains an exit message |
| 58 | void sysget::checkcmd(std::string cmd) { |
| 59 | size_t errorfind = cmd.find("exit="); |
| 60 | if(errorfind != std::string::npos) { |
| 61 | std::string errormsg = cmd.substr(5); |
| 62 | std::cerr << errormsg << std::endl; |
| 63 | exit(1); |
| 64 | } |
| 65 | } |
| 66 | |
| 67 | // Allows user to change the syntax of sysget |
| 68 | std::vector<std::string> sysget::CustomArgs(std::string path) { |
nothing calls this directly
no outgoing calls
no test coverage detected