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
|
||||
|
||||
#include "accountManager.h"
|
||||
|
||||
|
||||
#include "curl/curl.h"
|
||||
|
||||
#include <string.h>
|
||||
|
@ -652,7 +652,6 @@ void unterOption_url_help()
|
||||
<< " Standartwerte können im Defaultfile geändert werden." << std::endl << std::endl;
|
||||
|
||||
std::cout << "OPTIONEN:" << std::endl
|
||||
|
||||
<< " -p [Socks5ProxyAddresse], --socks5-proxy [Socks5ProxyAddresse]" << 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
|
||||
@ -876,16 +875,22 @@ int unterOption_info(Settings *settings, int argc, char **argv)
|
||||
|
||||
void unterOption_info_help()
|
||||
{
|
||||
std::cout << "Usage: " << getProgramName() << " info [OPTION]... [NAME]..." << std::endl
|
||||
<< "Parameter:" << std::endl
|
||||
<< "\t-p [Socks5Proxy], --socks5-proxy [Socks5Proxy]" << std::endl
|
||||
<< "\t -> Verwende diesen Socks5-Proxy. Default: 127.0.0.1:9050" << std::endl
|
||||
<< "\t-c, --colorless" << std::endl
|
||||
<< "\t -> Gib keine Farbigen Infos aus. Default: false" << std::endl
|
||||
<< "\t-d, --debug-mode" << std::endl
|
||||
<< "\t -> Debug Nachrichten an. Default: false" << std::endl
|
||||
<< "\t-h, --help" << std::endl
|
||||
<< "\t -> Gibt dieses Helpmenü aus." << std::endl;
|
||||
std::cout << "Aufruf: " << getProgramName() << "info [OPTION]... [NAME]" << std::endl << std::endl;
|
||||
|
||||
std::cout << "Beschreibung:" << std::endl
|
||||
<< " Mit dieser Unterfunktion kann man Informationen zu einer Serie bekommen." << std::endl << std::endl;
|
||||
|
||||
std::cout << "OPTIONEN:" << std::endl
|
||||
<< " -p [Socks5ProxyAddresse], --socks5-proxy [Socks5ProxyAddresse]" << 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
|
||||
<< " -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::istringstream iStrStream( All_Options_with_komma_between + "\n");
|
||||
std::string line;
|
||||
std::vector<std::string> allFounds;
|
||||
std::string line;
|
||||
|
||||
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);
|
||||
//std::cout << "Unteroption '" << input << "' stimmt mit '" << line << "' überein." << std::endl;
|
||||
}
|
||||
return allFounds;
|
||||
}
|
||||
|
||||
@ -957,12 +960,10 @@ std::string getexepath()
|
||||
ssize_t count = readlink( "/proc/self/exe", result, PATH_MAX );
|
||||
return std::string( result, (count > 0) ? static_cast<size_t>(count) : 0 );
|
||||
#endif
|
||||
#ifdef ABC ///_WIN32
|
||||
//wchar_t result[ MAX_PATH ];
|
||||
#ifdef _WIN32
|
||||
char buffer[MAX_PATH];
|
||||
return std::string( result, GetModuleFileName( NULL, buffer, MAX_PATH ) );
|
||||
//GetModuleFileName(NULL, result, MAX_PATH) ;
|
||||
//return reinterpret_cast<char*>(result);
|
||||
GetModuleFileName( NULL, buffer, MAX_PATH );
|
||||
return buffer;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -4,8 +4,8 @@
|
||||
#include "pageManager.h"
|
||||
#include "parameterManager.h"
|
||||
#include "accountManager.h"
|
||||
#include <sys/types.h>
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <dirent.h>
|
||||
#include <pthread.h>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user