imports: removed some unused imports
This commit is contained in:
parent
5bae8b8c2f
commit
fc2bab2c58
1 changed files with 2 additions and 4 deletions
|
@ -2,7 +2,6 @@
|
||||||
#include <filesystem>
|
#include <filesystem>
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <cctype>
|
#include <cctype>
|
||||||
#include <fstream>
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
|
@ -13,7 +12,6 @@
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
using namespace cpptoml;
|
using namespace cpptoml;
|
||||||
|
|
||||||
const string USAGE = R"#(usage: RapidMenu [flags] [<command> [args]]
|
const string USAGE = R"#(usage: RapidMenu [flags] [<command> [args]]
|
||||||
LISTING COMMANDS:
|
LISTING COMMANDS:
|
||||||
-c: To specify which config to use.
|
-c: To specify which config to use.
|
||||||
|
@ -24,7 +22,6 @@ const string invalidvalue = R"#(Invalid value in config: )#";
|
||||||
const string egc = R"#(Invalid command in config: )#";
|
const string egc = R"#(Invalid command in config: )#";
|
||||||
const string invalidconfig = R"#(Not a valid config: )#";
|
const string invalidconfig = R"#(Not a valid config: )#";
|
||||||
|
|
||||||
|
|
||||||
struct Action {
|
struct Action {
|
||||||
string names;
|
string names;
|
||||||
string description;
|
string description;
|
||||||
|
@ -144,6 +141,7 @@ int main(int argc, char* argv[]) {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// executable
|
||||||
} else if (argc > 1 && strcmp(argv[1], "-b") == 0) {
|
} else if (argc > 1 && strcmp(argv[1], "-b") == 0) {
|
||||||
if (argc < 3 || argv[2][0] == '-') {
|
if (argc < 3 || argv[2][0] == '-') {
|
||||||
cerr << USAGE.c_str() << endl;
|
cerr << USAGE.c_str() << endl;
|
||||||
|
@ -223,4 +221,4 @@ int main(int argc, char* argv[]) {
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue