From 99f4326e4ff3183705f791e88edb0a35f2896636 Mon Sep 17 00:00:00 2001 From: Christoph Lettau Date: Thu, 20 Apr 2023 16:09:40 +0200 Subject: [PATCH] Update help command --- NShell.depend | 4 ++++ NShell.layout | 10 +++++----- help.cpp | 1 + main.cpp | 5 +++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/NShell.depend b/NShell.depend index f30aa40..aafc94f 100644 --- a/NShell.depend +++ b/NShell.depend @@ -5,3 +5,7 @@ 1681493184 d:\nicos code\shell\nshell\nshell\help.h +1681999616 source:d:\nicos code\shell\nshell\nshell\help.cpp + "help.h" + + diff --git a/NShell.layout b/NShell.layout index aa47e95..e8a6cb2 100644 --- a/NShell.layout +++ b/NShell.layout @@ -1,15 +1,15 @@ - - + + - + - + - + diff --git a/help.cpp b/help.cpp index acab019..6a2695c 100644 --- a/help.cpp +++ b/help.cpp @@ -5,5 +5,6 @@ void help_generic() { std::cout << "help - Shows this, what else do I have to say?\n"; std::cout << "version - Shows the NShell build number.\n"; std::cout << "c.version - Same as version, but in a single line.\n"; + std::cout << "contrib - Lists all contributors of NShell.\n"; std::cout << "exit - Closes the NShell.\n"; } diff --git a/main.cpp b/main.cpp index 0208a57..be5ddd5 100644 --- a/main.cpp +++ b/main.cpp @@ -1,7 +1,7 @@ #include "help.h" #include -int buildNr = 5; +int buildNr = 6; int main() { @@ -17,9 +17,10 @@ int main() if (command_to_run == "version") { std::cout << "NShell\n" << "Build " << buildNr << '\n'; } - + else if (command_to_run == "contrib") { std::cout << "Nico Lucien\nErik P" << '\n'; + } else if (command_to_run == "c.version") { std::cout << "NShell Build " << buildNr << '\n';