| 48 | } |
| 49 | |
| 50 | static void printUsage(FILE *stream) { |
| 51 | fprintf(stream, |
| 52 | "Usage: gpcheckcloud -c \"s3://endpoint/bucket/prefix " |
| 53 | "config=path_to_config_file [region=region_name]\", to check the configuration.\n" |
| 54 | " gpcheckcloud -d \"s3://endpoint/bucket/prefix " |
| 55 | "config=path_to_config_file [region=region_name]\", to download and output to stdout.\n" |
| 56 | " gpcheckcloud -u \"/path/to/file\" \"s3://endpoint/bucket/prefix " |
| 57 | "config=path_to_config_file [region=region_name]\", to upload a file.\n" |
| 58 | " gpcheckcloud -t, to show the config template.\n" |
| 59 | " gpcheckcloud -h, to show this help.\n"); |
| 60 | } |
| 61 | |
| 62 | // parse the arguments into char-string value pairs |
| 63 | static map<char, string> parseCommandLineArgs(int argc, char *argv[]) { |
no outgoing calls
no test coverage detected