mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-13 04:46:38 +01:00
use single dash to query options
This commit is contained in:
parent
d95b4befaa
commit
56f1f627ef
1 changed files with 2 additions and 2 deletions
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…
Add table
Reference in a new issue