other_osx_patch

This commit is contained in:
Jenster 2015-11-20 20:40:00 -08:00
parent 699299ae8a
commit 1f9cb27bbd

View File

@ -86,8 +86,11 @@ int main(int argc, char **argv)
// unfinished // unfinished
//args >> parameter("http-listen", listenAddress, "ipv6 address", "Listen only on the specified address.", false); //args >> parameter("http-listen", listenAddress, "ipv6 address", "Listen only on the specified address.", false);
args >> option("http-allow-all", allowAllIps, "allow connections from all IP adresses (default= localhost only)"); args >> option("http-allow-all", allowAllIps, "allow connections from all IP adresses (default= localhost only)");
#ifdef __APPLE__
args >> help('h',"help","Display this Help");
#else
args >> help(); args >> help();
#endif
if (args.helpRequested()) if (args.helpRequested())
{ {
std::cerr << args.usage() << std::endl; std::cerr << args.usage() << std::endl;
@ -192,8 +195,11 @@ int main(int argc, char **argv)
>> parameter('P',"ssh-p-hash" ,sshPwdHash ,"hash" ,"Ssh login password hash (Generated by retroshare-nogui -G)",false) >> parameter('P',"ssh-p-hash" ,sshPwdHash ,"hash" ,"Ssh login password hash (Generated by retroshare-nogui -G)",false)
>> parameter('K',"ssh-key-file" ,sshRsaFile ,"RSA key file", "RSA key file for SSH login (not yet implemented).",false )// NOT FINISHED YET. >> parameter('K',"ssh-key-file" ,sshRsaFile ,"RSA key file", "RSA key file for SSH login (not yet implemented).",false )// NOT FINISHED YET.
#ifdef __APPLE__
>> help('h',"help","Display this Help");
#else
>> help() ; >> help() ;
#endif
// Normally argstream would handle this by itself, if we called // Normally argstream would handle this by itself, if we called
// as.defaultErrorHandling() ; // as.defaultErrorHandling() ;
// //