diff options
author | Jack Lloyd <[email protected]> | 2018-10-30 11:37:54 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2018-10-30 11:37:54 -0400 |
commit | 77e891b17fd172e031e2cd130c3c8ade195233e5 (patch) | |
tree | 034111774e3adb5977bf8301db1d3058434b1356 /src/cli | |
parent | 788479a3586ad846feae6318b2fba1421ac103fc (diff) |
Add test for TSS cli util
Diffstat (limited to 'src/cli')
-rw-r--r-- | src/cli/tss.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/cli/tss.cpp b/src/cli/tss.cpp index 2e6882745..bff9c19eb 100644 --- a/src/cli/tss.cpp +++ b/src/cli/tss.cpp @@ -92,6 +92,15 @@ class TSS_Recover final : public Command void go() override { + const std::vector<std::string> share_names = get_arg_list("shares"); + + if(share_names.empty()) + { + output() << help_text() << "\n"; + this->set_return_code(1); + return; + } + std::vector<Botan::RTSS_Share> shares; for(std::string share_fsname : get_arg_list("shares")) |