mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-07 06:09:42 +00:00
use single dash to query options
This commit is contained in:
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;
|
||||
|
||||
Reference in New Issue
Block a user