aboutsummaryrefslogtreecommitdiffstats
path: root/src/cli
diff options
context:
space:
mode:
Diffstat (limited to 'src/cli')
-rw-r--r--src/cli/tss.cpp9
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"))