| 36 | |
| 37 | namespace args { |
| 38 | int creds(const char *name, int argc, char *argv[]) { |
| 39 | if (argc < 2 || argv[0] == "help"sv || argv[1] == "help"sv) { |
| 40 | help(name); |
| 41 | } |
| 42 | |
| 43 | http::save_user_creds(config::sunshine.credentials_file, argv[0], argv[1]); |
| 44 | |
| 45 | return 0; |
| 46 | } |
| 47 | |
| 48 | int help(const char *name) { |
| 49 | logging::print_help(name); |
no test coverage detected