| 33 | // [END cpp_hello_world] |
| 34 | |
| 35 | int main(int argc, char* argv[]) try { |
| 36 | if (argc != 2) { |
| 37 | std::cerr << "Usage: hello_world <bucket-name>\n"; |
| 38 | return 1; |
| 39 | } |
| 40 | HelloWorld(argv[1]); |
| 41 | |
| 42 | } catch (google::cloud::Status const& status) { |
| 43 | std::cerr << "google::cloud::Status thrown: " << status << "\n"; |
| 44 | return 1; |
| 45 | } catch (std::exception const& ex) { |
| 46 | std::cerr << "Standard exception thrown: " << ex.what() << "\n"; |
| 47 | return 1; |
| 48 | } |
nothing calls this directly
no test coverage detected