-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.cpp
More file actions
32 lines (28 loc) · 966 Bytes
/
main.cpp
File metadata and controls
32 lines (28 loc) · 966 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#include "EnhancedDisplaySwitch.h"
#include <iostream>
#include <string>
int wmain(int argc, wchar_t* argv[])
{
if (argc < 2) {
std::wcerr << L"No argument provided. Use /? -h or --help for usage information.\n";
return 1;
}
std::wstring arg = argv[1];
if (arg == L"-h" || arg == L"--help" || arg == L"/?") {
EDS::displayHelp();
} else if (arg == L"/internal" || arg == L"1") {
EDS::runDisplaySwitch(1);
} else if (arg == L"/clone" || arg == L"2") {
EDS::runDisplaySwitch(2);
} else if (arg == L"/extend" || arg == L"3") {
EDS:: runDisplaySwitch(3);
} else if (arg == L"/external" || arg == L"4") {
EDS::runDisplaySwitch(4);
} else if (arg == L"/lastmode" || arg == L"5") {
std::wcout << EDS::getLastMode() << std::endl;
} else {
std::wcerr << L"Invalid argument. Use /? -h or --help for usage information.\n";
return 1;
}
return 0;
}