| 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 23 matching lines...) Expand all Loading... |
| 34 | 34 |
| 35 //! \brief Prints the footer for `--help`. | 35 //! \brief Prints the footer for `--help`. |
| 36 //! | 36 //! |
| 37 //! \param[in] me The tool’s name, the basename of `argv[0]`. | 37 //! \param[in] me The tool’s name, the basename of `argv[0]`. |
| 38 static void UsageTail(const base::FilePath& me); | 38 static void UsageTail(const base::FilePath& me); |
| 39 | 39 |
| 40 //! \brief Suggests using `--help` when a command line tool can’t make sense | 40 //! \brief Suggests using `--help` when a command line tool can’t make sense |
| 41 //! of its arguments. | 41 //! of its arguments. |
| 42 //! | 42 //! |
| 43 //! \param[in] me The tool’s name, the basename of `argv[0]`. | 43 //! \param[in] me The tool’s name, the basename of `argv[0]`. |
| 44 //! \param[in] hint A hint to display before the suggestion to try `--help`. |
| 45 //! Optional, may be `nullptr`, in which case no hint will be presented. |
| 44 static void UsageHint(const base::FilePath& me, const char* hint); | 46 static void UsageHint(const base::FilePath& me, const char* hint); |
| 45 | 47 |
| 46 #if defined(OS_POSIX) || DOXYGEN | 48 #if defined(OS_POSIX) || DOXYGEN |
| 47 //! \copydoc Version | 49 //! \copydoc Version |
| 48 static void Version(const std::string& me); | 50 static void Version(const std::string& me); |
| 49 | 51 |
| 50 //! \copydoc UsageTail | 52 //! \copydoc UsageTail |
| 51 static void UsageTail(const std::string& me); | 53 static void UsageTail(const std::string& me); |
| 52 | 54 |
| 53 //! \copydoc UsageHint | 55 //! \copydoc UsageHint |
| (...skipping 19 matching lines...) Expand all Loading... |
| 73 static base::FilePath::StringType CommandLineArgumentToFilePathStringType( | 75 static base::FilePath::StringType CommandLineArgumentToFilePathStringType( |
| 74 const base::StringPiece& arg); | 76 const base::StringPiece& arg); |
| 75 | 77 |
| 76 private: | 78 private: |
| 77 DISALLOW_IMPLICIT_CONSTRUCTORS(ToolSupport); | 79 DISALLOW_IMPLICIT_CONSTRUCTORS(ToolSupport); |
| 78 }; | 80 }; |
| 79 | 81 |
| 80 } // namespace crashpad | 82 } // namespace crashpad |
| 81 | 83 |
| 82 #endif // CRASHPAD_TOOLS_TOOL_SUPPORT_H_ | 84 #endif // CRASHPAD_TOOLS_TOOL_SUPPORT_H_ |
| OLD | NEW |