This commit is contained in:
parent
4ce7d76500
commit
ae5c4a11a8
@ -93,7 +93,7 @@ mount(std::vector<const char *> args, std::string data_directory,
|
|||||||
::ShowWindow(::GetConsoleWindow(), SW_HIDE);
|
::ShowWindow(::GetConsoleWindow(), SW_HIDE);
|
||||||
}
|
}
|
||||||
#endif // defined(_WIN32)
|
#endif // defined(_WIN32)
|
||||||
const auto drive_args =
|
auto drive_args =
|
||||||
utils::cli::parse_drive_options(args, prov, data_directory);
|
utils::cli::parse_drive_options(args, prov, data_directory);
|
||||||
app_config config(prov, data_directory);
|
app_config config(prov, data_directory);
|
||||||
#if defined(_WIN32)
|
#if defined(_WIN32)
|
||||||
|
@ -89,11 +89,14 @@ auto main(int argc, char **argv) -> int {
|
|||||||
remote_host = parts.at(0U);
|
remote_host = parts.at(0U);
|
||||||
try {
|
try {
|
||||||
remote_port = utils::string::to_uint16(parts.at(1U));
|
remote_port = utils::string::to_uint16(parts.at(1U));
|
||||||
data_directory = utils::path::combine(
|
data_directory =
|
||||||
data_directory.empty()
|
data_directory.empty()
|
||||||
? app_config::default_data_directory(prov)
|
? utils::path::combine(
|
||||||
: data_directory,
|
app_config::default_data_directory(prov),
|
||||||
{utils::string::replace_copy(unique_id, ':', '_')});
|
{
|
||||||
|
utils::string::replace_copy(unique_id, ':', '_'),
|
||||||
|
})
|
||||||
|
: utils::path::absolute(data_directory);
|
||||||
} catch (const std::exception &e) {
|
} catch (const std::exception &e) {
|
||||||
std::cerr << (e.what() == nullptr ? "Unable to parse port"
|
std::cerr << (e.what() == nullptr ? "Unable to parse port"
|
||||||
: e.what())
|
: e.what())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user