mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
allow unknown options for api
This commit is contained in:
parent
8e558f0826
commit
fdf11e6038
3 changed files with 15 additions and 7 deletions
2
api.cpp
2
api.cpp
|
@ -19,7 +19,7 @@ namespace api
|
|||
void InitI2P (int argc, char* argv[], const char * appName)
|
||||
{
|
||||
i2p::config::Init ();
|
||||
i2p::config::ParseCmdline (argc, argv);
|
||||
i2p::config::ParseCmdline (argc, argv, true); // ignore unknown options and help
|
||||
i2p::config::Finalize ();
|
||||
|
||||
std::string datadir; i2p::config::GetOption("datadir", datadir);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue