mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
option_parser.cpp
This commit is contained in:
parent
8f45dd01c1
commit
72dd01fd46
1 changed files with 7 additions and 1 deletions
|
|
@ -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_);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue