OLD | NEW |
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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 // Long options without short equivalents. | 193 // Long options without short equivalents. |
194 kOptionLastChar = 255, | 194 kOptionLastChar = 255, |
195 | 195 |
196 // Standard options. | 196 // Standard options. |
197 kOptionHelp = -2, | 197 kOptionHelp = -2, |
198 kOptionVersion = -3, | 198 kOptionVersion = -3, |
199 }; | 199 }; |
200 | 200 |
201 Options options = {}; | 201 Options options = {}; |
202 | 202 |
203 const struct option long_options[] = { | 203 const option long_options[] = { |
204 {"file", required_argument, nullptr, kOptionFile}, | 204 {"file", required_argument, nullptr, kOptionFile}, |
205 {"mach-service", required_argument, nullptr, kOptionMachService}, | 205 {"mach-service", required_argument, nullptr, kOptionMachService}, |
206 {"persistent", no_argument, nullptr, kOptionPersistent}, | 206 {"persistent", no_argument, nullptr, kOptionPersistent}, |
207 {"timeout", required_argument, nullptr, kOptionTimeout}, | 207 {"timeout", required_argument, nullptr, kOptionTimeout}, |
208 {"help", no_argument, nullptr, kOptionHelp}, | 208 {"help", no_argument, nullptr, kOptionHelp}, |
209 {"version", no_argument, nullptr, kOptionVersion}, | 209 {"version", no_argument, nullptr, kOptionVersion}, |
210 {nullptr, 0, nullptr, 0}, | 210 {nullptr, 0, nullptr, 0}, |
211 }; | 211 }; |
212 | 212 |
213 int opt; | 213 int opt; |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
308 | 308 |
309 return EXIT_SUCCESS; | 309 return EXIT_SUCCESS; |
310 } | 310 } |
311 | 311 |
312 } // namespace | 312 } // namespace |
313 } // namespace crashpad | 313 } // namespace crashpad |
314 | 314 |
315 int main(int argc, char* argv[]) { | 315 int main(int argc, char* argv[]) { |
316 return crashpad::CatchExceptionToolMain(argc, argv); | 316 return crashpad::CatchExceptionToolMain(argc, argv); |
317 } | 317 } |
OLD | NEW |