MCPcopy Create free account
hub / github.com/GoogleCloudPlatform/cpp-samples / main

Function main

setup/hello_world.cc:35–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33// [END cpp_hello_world]
34
35int 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}

Callers

nothing calls this directly

Calls 1

HelloWorldFunction · 0.85

Tested by

no test coverage detected