diff options
author | Jack Lloyd <[email protected]> | 2018-12-01 17:03:39 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2018-12-01 17:03:39 -0500 |
commit | 803106b0aa320f62f639751e8405807810650af4 (patch) | |
tree | 2e9e775afc80f38b91ef8ba501d14bc6238d2cea /src/cli/cli.h | |
parent | 45f643a1ab837c0965f6182a62493f41bf714e68 (diff) |
Support getting a passphrase from most of the cli tools
Diffstat (limited to 'src/cli/cli.h')
-rw-r--r-- | src/cli/cli.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/cli/cli.h b/src/cli/cli.h index fca8e5225..b6f6a3076 100644 --- a/src/cli/cli.h +++ b/src/cli/cli.h @@ -124,6 +124,13 @@ class Command std::string get_arg(const std::string& opt_name) const; + /** + * Like get_arg but if the value is '-' then reads a passphrase from + * the terminal with echo suppressed. + */ + std::string get_passphrase_arg(const std::string& prompt, + const std::string& opt_name); + /* * Like get_arg() but if the argument was not specified or is empty, returns otherwise */ |