mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-22 04:04:16 +00: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;
|
||||
|
||||
if (config::mapArgs.count("--datadir")) {
|
||||
path = boost::filesystem::system_complete(config::mapArgs["--datadir"]);
|
||||
if (config::mapArgs.count("-datadir")) {
|
||||
path = boost::filesystem::system_complete(config::mapArgs["-datadir"]);
|
||||
if (!boost::filesystem::is_directory(path)) {
|
||||
path = "";
|
||||
return path;
|
||||
|
Loading…
x
Reference in New Issue
Block a user