options.add_options()
("uid,u", bpo::value<int>()->default_value(0), "user id")
+ ("session-id,k", bpo::value<std::string>(), "session id")
("path,p", bpo::value<std::vector<std::string>>()->multitoken(),
"source-destination path")
("remove,r", bpo::value<std::string>(), "remove shared resource")
for (const bpo::option& o : parsed_options.options) {
if (o.string_key == "uid") {
uid_ = static_cast<uid_t>(std::stoi(o.value.front()));
+ } else if (o.string_key == "session-id") {
+ session_id_ = o.value.front();
} else if (o.string_key == "path") {
path_info_list_.emplace_back(o.value.front(), o.value.back());
} else if (o.string_key == "copy" ||