juk3n/fluffypublic Fork
⑂ 3d19b85
Commits
⬇ Clone ▾
git clone https://git.rickub.com/juk3n/fluffy.git
git clone ssh://git@rickub.com/juk3n/fluffy.git

Host key fingerprint (ed25519): SHA256:iycHnxEyq0Q7uyVpB7JlznP0G7JrTPXLYRcAU5CSLhc — verify it before your first connect.

added test option flag

juk3n committed 2024-07-04T16:53:58+02:00 Browse files
3d19b85 parent: 371d0e7
modified app/src/main.cpp +3 -6
@@ -147,14 +147,11 @@ auto runConsoleApp() -> void {
147147
148148 auto handleFlags(std::vector<std::string> flags) -> void {
149149 for (const auto& flag : flags) {
150- if (flag == "--version") {
151- std::cout << "fluffy v0.1.1" << std::endl;
152- }
153- else if (flag == "--help") {
154- std::cout << "help" << std::endl;
150+ if (flag == "-test") {
151+ std::cout << "hello!" << std::endl;
155152 }
156153 else {
157- std::cout << "fluffy: '" << flag << "' is not a fluffy command. See 'fluffy --help'" << std::endl;
154+ std::cout << "unkown option: '" << flag << "'" << std::endl;
158155 }
159156 }
160157 }
@@ -147,14 +147,11 @@ auto runConsoleApp() -> void {
147 147
148 auto handleFlags(std::vector<std::string> flags) -> void {148 auto handleFlags(std::vector<std::string> flags) -> void {
149 for (const auto& flag : flags) {149 for (const auto& flag : flags) {
150- if (flag == "--version") {150+ if (flag == "-test") {
151- std::cout << "fluffy v0.1.1" << std::endl;151+ std::cout << "hello!" << std::endl;
152- }
153- else if (flag == "--help") {
154- std::cout << "help" << std::endl;
155 }152 }
156 else {153 else {
157- std::cout << "fluffy: '" << flag << "' is not a fluffy command. See 'fluffy --help'" << std::endl;154+ std::cout << "unkown option: '" << flag << "'" << std::endl;
158 }155 }
159 }156 }
160 }157 }