diff options
author | TreeHugger Robot <treehugger-gerrit@google.com> | 2020-03-05 22:59:49 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2020-03-05 22:59:49 +0000 |
commit | ec6198e99dbae638cd683577fc1f074508ccf25e (patch) | |
tree | 82b122a7c0a1d94f094bbf18acd4fdd0a9e1011e /cmds/incident/main.cpp | |
parent | 1e75b1f53dfed7d91b6106073c51359cd582b37e (diff) | |
parent | b6f7c4725253de798cd7487f671c66663614a158 (diff) |
Merge "Add an option to zip incident report" into rvc-dev
Diffstat (limited to 'cmds/incident/main.cpp')
-rw-r--r-- | cmds/incident/main.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cmds/incident/main.cpp b/cmds/incident/main.cpp index d6c6c39dd1d8..6e0bd0629274 100644 --- a/cmds/incident/main.cpp +++ b/cmds/incident/main.cpp @@ -231,6 +231,7 @@ usage(FILE* out) fprintf(out, " -l list available sections\n"); fprintf(out, " -p privacy spec, LOCAL, EXPLICIT or AUTOMATIC. Default AUTOMATIC.\n"); fprintf(out, " -r REASON human readable description of why the report is taken.\n"); + fprintf(out, " -z gzip the incident report, i.e. pipe the output through gzip.\n"); fprintf(out, "\n"); fprintf(out, "and one of these destinations:\n"); fprintf(out, " -b (default) print the report to stdout (in proto format)\n"); @@ -255,7 +256,7 @@ main(int argc, char** argv) // Parse the args int opt; - while ((opt = getopt(argc, argv, "bhdlp:r:s:u")) != -1) { + while ((opt = getopt(argc, argv, "bhdlp:r:s:uz")) != -1) { switch (opt) { case 'h': usage(stdout); @@ -302,6 +303,9 @@ main(int argc, char** argv) destination = DEST_BROADCAST; receiverArg = optarg; break; + case 'z': + args.setGzip(true); + break; default: usage(stderr); return 1; |