remove clip-lib
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
#include <regex>
|
||||
#include <string>
|
||||
#include <fstream>
|
||||
#include "clip-lib/clip.h"
|
||||
#include <random>
|
||||
using namespace std;
|
||||
|
||||
@@ -98,7 +97,6 @@ int help() {
|
||||
cout << " -h Show this help message" << endl;
|
||||
cout << " -f Read from file" << endl;
|
||||
cout << " -o Write to file" << endl;
|
||||
cout << " -c Copy to clipboard" << endl;
|
||||
cout << " -ne Stops extra stuff from being added to the end of sentences" << endl;
|
||||
cout << " -nf Stops full word replacements" << endl;
|
||||
cout << " text Text to convert" << endl;
|
||||
@@ -129,8 +127,6 @@ int main(int argc, char *argv[]) {
|
||||
return help();
|
||||
} else if (i == argc-1) {
|
||||
input = string(argv[i]);
|
||||
} else if (string(argv[i]) == "-c") {
|
||||
clipboard = true;
|
||||
} else if (string(argv[i]) == "-ne") {
|
||||
no_random_ending = true;
|
||||
} else if (string(argv[i]) == "-nf") {
|
||||
@@ -189,9 +185,6 @@ int main(int argc, char *argv[]) {
|
||||
} else if (input != "") {
|
||||
if (outputfile != "") {
|
||||
*output << owo(input, no_full_word, no_random_ending) << endl;
|
||||
} else if (clipboard) {
|
||||
clip::set_text(owo(input, no_full_word, no_random_ending));
|
||||
cout << owo("Copied to clipboard") << endl;
|
||||
} else {
|
||||
cout << owo(input, no_full_word, no_random_ending) << endl;
|
||||
}
|
||||
@@ -201,6 +194,5 @@ int main(int argc, char *argv[]) {
|
||||
((ofstream*)output)->close();
|
||||
}
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user