From 72dd01fd4635ae7b699709b3b83ba23d4be5d15c Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Thu, 2 Oct 2025 19:05:38 -0500 Subject: [PATCH] option_parser.cpp --- src/option_parser.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/option_parser.cpp b/src/option_parser.cpp index 59d42c51..fc86716a 100644 --- a/src/option_parser.cpp +++ b/src/option_parser.cpp @@ -424,6 +424,12 @@ namespace options opts, ::_option_processor); + if(state.branches.size() < 2) + errs_->push_back({0,"mountpoint not set"}); + if(state.branches.size() < 1) + errs_->push_back({0,"branches not set"}); + + state.mountpoint = state.branches.back(); state.branches.pop_back(); @@ -436,7 +442,7 @@ namespace options if(cfg.branches->empty()) errs_->push_back({0,"branches not set"}); if(cfg.mountpoint->empty()) - errs_->push_back({0,"mountpoint not set"}); + ::_postprocess_passthrough(cfg); ::_check_for_mount_loop(cfg,errs_);