forked from markus/S_New4
neues helpmenue für subf info
This commit is contained in:
parent
c3a66bdffc
commit
80823dd36c
@ -2,8 +2,6 @@
|
|||||||
#define MANAGEPAGE_H
|
#define MANAGEPAGE_H
|
||||||
|
|
||||||
#include "accountManager.h"
|
#include "accountManager.h"
|
||||||
|
|
||||||
|
|
||||||
#include "curl/curl.h"
|
#include "curl/curl.h"
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
@ -652,7 +652,6 @@ void unterOption_url_help()
|
|||||||
<< " Standartwerte können im Defaultfile geändert werden." << std::endl << std::endl;
|
<< " Standartwerte können im Defaultfile geändert werden." << std::endl << std::endl;
|
||||||
|
|
||||||
std::cout << "OPTIONEN:" << std::endl
|
std::cout << "OPTIONEN:" << std::endl
|
||||||
|
|
||||||
<< " -p [Socks5ProxyAddresse], --socks5-proxy [Socks5ProxyAddresse]" << std::endl
|
<< " -p [Socks5ProxyAddresse], --socks5-proxy [Socks5ProxyAddresse]" << std::endl
|
||||||
<< " Mit dieser Option kann man den Socks5Proxy ändern." << std::endl
|
<< " Mit dieser Option kann man den Socks5Proxy ändern." << std::endl
|
||||||
<< " Standart: 127.0.0.1:9050, falls nichts im Defaultfile festgelegt wurde." << std::endl << std::endl
|
<< " Standart: 127.0.0.1:9050, falls nichts im Defaultfile festgelegt wurde." << std::endl << std::endl
|
||||||
@ -876,16 +875,22 @@ int unterOption_info(Settings *settings, int argc, char **argv)
|
|||||||
|
|
||||||
void unterOption_info_help()
|
void unterOption_info_help()
|
||||||
{
|
{
|
||||||
std::cout << "Usage: " << getProgramName() << " info [OPTION]... [NAME]..." << std::endl
|
std::cout << "Aufruf: " << getProgramName() << "info [OPTION]... [NAME]" << std::endl << std::endl;
|
||||||
<< "Parameter:" << std::endl
|
|
||||||
<< "\t-p [Socks5Proxy], --socks5-proxy [Socks5Proxy]" << std::endl
|
std::cout << "Beschreibung:" << std::endl
|
||||||
<< "\t -> Verwende diesen Socks5-Proxy. Default: 127.0.0.1:9050" << std::endl
|
<< " Mit dieser Unterfunktion kann man Informationen zu einer Serie bekommen." << std::endl << std::endl;
|
||||||
<< "\t-c, --colorless" << std::endl
|
|
||||||
<< "\t -> Gib keine Farbigen Infos aus. Default: false" << std::endl
|
std::cout << "OPTIONEN:" << std::endl
|
||||||
<< "\t-d, --debug-mode" << std::endl
|
<< " -p [Socks5ProxyAddresse], --socks5-proxy [Socks5ProxyAddresse]" << std::endl
|
||||||
<< "\t -> Debug Nachrichten an. Default: false" << std::endl
|
<< " Mit dieser Option kann man den Socks5Proxy ändern." << std::endl
|
||||||
<< "\t-h, --help" << std::endl
|
<< " Standart: 127.0.0.1:9050, falls nichts im Defaultfile festgelegt wurde." << std::endl << std::endl
|
||||||
<< "\t -> Gibt dieses Helpmenü aus." << std::endl;
|
<< " -c, --colorless" << std::endl
|
||||||
|
<< " Mit dieser Option kann man die farbige Ausgabe ausstellen." << std::endl << std::endl
|
||||||
|
<< " -d, --debug-mode" << std::endl
|
||||||
|
<< " Mit dieser Option kann man den Debug-Modus einschalten." << std::endl
|
||||||
|
<< " Dabei werden vielmehr Infos ausgegeben." << std::endl << std::endl
|
||||||
|
<< " -h, --help" << std::endl
|
||||||
|
<< " Mit dieser Option wird dieses Helpmenue ausgegeben." << std::endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -928,14 +933,12 @@ void unterOption_clean(Settings * settings, int argc, char **argv)
|
|||||||
std::vector<std::string> compare(std::string All_Options_with_komma_between, std::string input)
|
std::vector<std::string> compare(std::string All_Options_with_komma_between, std::string input)
|
||||||
{
|
{
|
||||||
std::istringstream iStrStream( All_Options_with_komma_between + "\n");
|
std::istringstream iStrStream( All_Options_with_komma_between + "\n");
|
||||||
std::string line;
|
|
||||||
std::vector<std::string> allFounds;
|
std::vector<std::string> allFounds;
|
||||||
|
std::string line;
|
||||||
|
|
||||||
while (getline(iStrStream, line).good())
|
while (getline(iStrStream, line).good())
|
||||||
if(strncmp(line.c_str(), input.c_str(), input.length()) == 0) {
|
if(strncmp(line.c_str(), input.c_str(), input.length()) == 0)
|
||||||
allFounds.push_back(line);
|
allFounds.push_back(line);
|
||||||
//std::cout << "Unteroption '" << input << "' stimmt mit '" << line << "' überein." << std::endl;
|
|
||||||
}
|
|
||||||
return allFounds;
|
return allFounds;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -957,12 +960,10 @@ std::string getexepath()
|
|||||||
ssize_t count = readlink( "/proc/self/exe", result, PATH_MAX );
|
ssize_t count = readlink( "/proc/self/exe", result, PATH_MAX );
|
||||||
return std::string( result, (count > 0) ? static_cast<size_t>(count) : 0 );
|
return std::string( result, (count > 0) ? static_cast<size_t>(count) : 0 );
|
||||||
#endif
|
#endif
|
||||||
#ifdef ABC ///_WIN32
|
#ifdef _WIN32
|
||||||
//wchar_t result[ MAX_PATH ];
|
|
||||||
char buffer[MAX_PATH];
|
char buffer[MAX_PATH];
|
||||||
return std::string( result, GetModuleFileName( NULL, buffer, MAX_PATH ) );
|
GetModuleFileName( NULL, buffer, MAX_PATH );
|
||||||
//GetModuleFileName(NULL, result, MAX_PATH) ;
|
return buffer;
|
||||||
//return reinterpret_cast<char*>(result);
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4,8 +4,8 @@
|
|||||||
#include "pageManager.h"
|
#include "pageManager.h"
|
||||||
#include "parameterManager.h"
|
#include "parameterManager.h"
|
||||||
#include "accountManager.h"
|
#include "accountManager.h"
|
||||||
#include <sys/types.h>
|
|
||||||
|
|
||||||
|
#include <sys/types.h>
|
||||||
#include <dirent.h>
|
#include <dirent.h>
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user