aboutsummaryrefslogtreecommitdiffstats
path: root/src/cli/cli.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/cli/cli.h')
-rw-r--r--src/cli/cli.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/cli/cli.h b/src/cli/cli.h
index b6f6a3076..838fb9eb3 100644
--- a/src/cli/cli.h
+++ b/src/cli/cli.h
@@ -122,6 +122,15 @@ class Command
bool flag_set(const std::string& flag_name) const;
+ static std::string format_blob(const std::string& format, const uint8_t bits[], size_t len);
+
+ template<typename Alloc>
+ static std::string format_blob(const std::string& format,
+ const std::vector<uint8_t, Alloc>& vec)
+ {
+ return format_blob(format, vec.data(), vec.size());
+ }
+
std::string get_arg(const std::string& opt_name) const;
/**