mirror of
https://github.com/PurpleI2P/i2pd
synced 2024-11-10 08:00:38 +03:00
use single dash to query options
This commit is contained in:
parent
d95b4befaa
commit
56f1f627ef
4
util.cpp
4
util.cpp
@ -94,8 +94,8 @@ namespace filesystem
|
|||||||
|
|
||||||
static boost::filesystem::path path;
|
static boost::filesystem::path path;
|
||||||
|
|
||||||
if (config::mapArgs.count("--datadir")) {
|
if (config::mapArgs.count("-datadir")) {
|
||||||
path = boost::filesystem::system_complete(config::mapArgs["--datadir"]);
|
path = boost::filesystem::system_complete(config::mapArgs["-datadir"]);
|
||||||
if (!boost::filesystem::is_directory(path)) {
|
if (!boost::filesystem::is_directory(path)) {
|
||||||
path = "";
|
path = "";
|
||||||
return path;
|
return path;
|
||||||
|
Loading…
Reference in New Issue
Block a user