("conf",value<std::string>()->default_value(""),"Path to main i2pd config file (default: try ~/.i2pd/i2pd.conf or /var/lib/i2pd/i2pd.conf)")
("conf",value<std::string>()->default_value(""),"Path to main i2pd config file (default: try ~/.i2pd/i2pd.conf or /var/lib/i2pd/i2pd.conf)")
("tunconf",value<std::string>()->default_value(""),"Path to config with tunnels list and options (default: try ~/.i2pd/tunnels.conf or /var/lib/i2pd/tunnels.conf)")
("tunconf",value<std::string>()->default_value(""),"Path to config with tunnels list and options (default: try ~/.i2pd/tunnels.conf or /var/lib/i2pd/tunnels.conf)")
("tunnelsdir",value<std::string>()->default_value(""),"Path to extra tunnels' configs folder (default: ~/.i2pd/tunnels.d or /var/lib/i2pd/tunnels.d")
("tunnelsdir",value<std::string>()->default_value(""),"Path to extra tunnels' configs folder (default: ~/.i2pd/tunnels.d or /var/lib/i2pd/tunnels.d")
@ -282,6 +283,23 @@ namespace config {
{
{
std::cout<<"i2pd version "<<I2PD_VERSION<<" ("<<I2P_VERSION<<")"<<std::endl;
std::cout<<"i2pd version "<<I2PD_VERSION<<" ("<<I2P_VERSION<<")"<<std::endl;
std::cout<<m_OptionsDesc;
std::cout<<m_OptionsDesc;
exit(EXIT_SUCCESS);
}
elseif(m_Options.count("version"))
{
std::cout<<"i2pd version "<<I2PD_VERSION<<" ("<<I2P_VERSION<<")"<<std::endl;