Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(186)

Side by Side Diff: handler/mac/main.cc

Issue 1009743004: Update crashpad_handler man page to document all options (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « handler/mac/crashpad_handler.ad ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Crashpad Authors. All rights reserved. 1 // Copyright 2014 The Crashpad Authors. All rights reserved.
2 // 2 //
3 // Licensed under the Apache License, Version 2.0 (the "License"); 3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License. 4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at 5 // You may obtain a copy of the License at
6 // 6 //
7 // http://www.apache.org/licenses/LICENSE-2.0 7 // http://www.apache.org/licenses/LICENSE-2.0
8 // 8 //
9 // Unless required by applicable law or agreed to in writing, software 9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS, 10 // distributed under the License is distributed on an "AS IS" BASIS,
(...skipping 27 matching lines...) Expand all
38 namespace { 38 namespace {
39 39
40 void Usage(const std::string& me) { 40 void Usage(const std::string& me) {
41 fprintf(stderr, 41 fprintf(stderr,
42 "Usage: %s [OPTION]...\n" 42 "Usage: %s [OPTION]...\n"
43 "Crashpad's exception handler server.\n" 43 "Crashpad's exception handler server.\n"
44 "\n" 44 "\n"
45 " --annotation=KEY=VALUE set a process annotation in each crash report\n" 45 " --annotation=KEY=VALUE set a process annotation in each crash report\n"
46 " --database=PATH store the crash report database at PATH\n" 46 " --database=PATH store the crash report database at PATH\n"
47 " --handshake-fd=FD establish communication with the client over FD\n " 47 " --handshake-fd=FD establish communication with the client over FD\n "
48 " --url=URL send crash reports to this Breakpad server URL\n" 48 " --url=URL send crash reports to this Breakpad server URL,\n "
49 " only if uploads are enabled for the database\n"
49 " --help display this help and exit\n" 50 " --help display this help and exit\n"
50 " --version output version information and exit\n", 51 " --version output version information and exit\n",
51 me.c_str()); 52 me.c_str());
52 ToolSupport::UsageTail(me); 53 ToolSupport::UsageTail(me);
53 } 54 }
54 55
55 int HandlerMain(int argc, char* argv[]) { 56 int HandlerMain(int argc, char* argv[]) {
56 const std::string me(basename(argv[0])); 57 const std::string me(basename(argv[0]));
57 58
58 enum OptionFlags { 59 enum OptionFlags {
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 182
182 return EXIT_SUCCESS; 183 return EXIT_SUCCESS;
183 } 184 }
184 185
185 } // namespace 186 } // namespace
186 } // namespace crashpad 187 } // namespace crashpad
187 188
188 int main(int argc, char* argv[]) { 189 int main(int argc, char* argv[]) {
189 return crashpad::HandlerMain(argc, argv); 190 return crashpad::HandlerMain(argc, argv);
190 } 191 }
OLDNEW
« no previous file with comments | « handler/mac/crashpad_handler.ad ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698