diff options
author | Siying Dong <siying.d@fb.com> | 2017-03-21 17:22:10 -0700 |
---|---|---|
committer | Facebook Github Bot <facebook-github-bot@users.noreply.github.com> | 2017-03-21 17:39:12 -0700 |
commit | 17866ecc3a8f086058f2e03b16c6fab10e6c853b (patch) | |
tree | 9cecc37bf8935c8b92fb85c80758fd33e34a9c88 /include | |
parent | a2a883318b61ac12ee4a23a4d53e6d8a12173b0a (diff) |
Allow Users to change customized ldb tools' header in help printing
Summary: Closes https://github.com/facebook/rocksdb/pull/2018
Differential Revision: D4748448
Pulled By: siying
fbshipit-source-id: a54c2f9
Diffstat (limited to 'include')
-rw-r--r-- | include/rocksdb/ldb_tool.h | 2 | ||||
-rw-r--r-- | include/rocksdb/utilities/ldb_cmd.h | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/include/rocksdb/ldb_tool.h b/include/rocksdb/ldb_tool.h index 8a6918ba4..efe450b59 100644 --- a/include/rocksdb/ldb_tool.h +++ b/include/rocksdb/ldb_tool.h @@ -26,6 +26,8 @@ struct LDBOptions { // Key formatter that converts a slice to a readable string. // Default: Slice::ToString() std::shared_ptr<SliceFormatter> key_formatter; + + std::string print_help_header = "ldb - RocksDB Tool"; }; class LDBTool { diff --git a/include/rocksdb/utilities/ldb_cmd.h b/include/rocksdb/utilities/ldb_cmd.h index 7df0cd76f..aad5a5617 100644 --- a/include/rocksdb/utilities/ldb_cmd.h +++ b/include/rocksdb/utilities/ldb_cmd.h @@ -239,7 +239,7 @@ class LDBCommand { class LDBCommandRunner { public: - static void PrintHelp(const char* exec_name); + static void PrintHelp(const LDBOptions& ldb_options, const char* exec_name); static void RunCommand( int argc, char** argv, Options options, const LDBOptions& ldb_options, |