Index: tools/tool_support.h |
diff --git a/tools/tool_support.h b/tools/tool_support.h |
index 37881e3861106b52d0473f91a197e04bb0c9daa2..47976bc9692c7f3ddb3f26ec0ef4f0c0c6db57bf 100644 |
--- a/tools/tool_support.h |
+++ b/tools/tool_support.h |
@@ -18,6 +18,8 @@ |
#include <string> |
#include "base/basictypes.h" |
+#include "base/files/file_path.h" |
+#include "build/build_config.h" |
namespace crashpad { |
@@ -27,18 +29,29 @@ class ToolSupport { |
//! \brief Handles `--version`. |
//! |
//! \param[in] me The tool’s name, the basename of `argv[0]`. |
- static void Version(const std::string& me); |
+ static void Version(const base::FilePath& me); |
//! \brief Prints the footer for `--help`. |
//! |
//! \param[in] me The tool’s name, the basename of `argv[0]`. |
- static void UsageTail(const std::string& me); |
+ static void UsageTail(const base::FilePath& me); |
//! \brief Suggests using `--help` when a command line tool can’t make sense |
//! of its arguments. |
//! |
//! \param[in] me The tool’s name, the basename of `argv[0]`. |
+ static void UsageHint(const base::FilePath& me, const char* hint); |
+ |
+#if defined(OS_POSIX) || DOXYGEN |
+ //! \copydoc Version |
+ static void Version(const std::string& me); |
+ |
+ //! \copydoc UsageTail |
+ static void UsageTail(const std::string& me); |
+ |
+ //! \copydoc UsageHint |
static void UsageHint(const std::string& me, const char* hint); |
+#endif // OS_POSIX |
private: |
DISALLOW_IMPLICIT_CONSTRUCTORS(ToolSupport); |