52 po::options_description options{};
53 options.add_options()(
"host", po::value<string>(),
"Hosting solution: iRODS or WebDAV (case insensitive)")(
54 "host-url", po::value<string>()->default_value(
""),
55 "Host URL if needed")(
"user", po::value<string>()->default_value(
""),
"User name if needed")(
56 "password", po::value<string>()->default_value(
""),
"Password if needed")(
57 "overwrite", po::value<string>()->default_value(
"no"),
"Allow overwriting local files if they already exist")(
58 "distant-workspace", po::value<string>(),
"Path to distant repository workspace")(
59 "local-workspace", po::value<string>(),
60 "Path to local repository workspace")(
"tries", po::value<int>()->default_value(4),
"Number of download tries");
68 po::store(po::parse_config_file<char>(abs_path.c_str(), options), vm);
76 hostUrl = vm[
"host-url"].as<
string>();
77 user = vm[
"user"].as<
string>();
78 password = vm[
"password"].as<
string>();