Skip to content

Commit

Permalink
Update help command
Browse files Browse the repository at this point in the history
  • Loading branch information
Tech-FZ committed Apr 20, 2023
1 parent 966d469 commit 99f4326
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 7 deletions.
4 changes: 4 additions & 0 deletions NShell.depend
Original file line number Diff line number Diff line change
Expand Up @@ -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"
<iostream>

10 changes: 5 additions & 5 deletions NShell.layout
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_layout_file>
<FileVersion major="1" minor="0" />
<ActiveTarget name="Release" />
<File name="main.cpp" open="1" top="1" tabpos="1" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
<ActiveTarget name="Debug" />
<File name="help.cpp" open="1" top="0" tabpos="2" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
<Cursor>
<Cursor1 position="697" topLine="3" />
<Cursor1 position="330" topLine="0" />
</Cursor>
</File>
<File name="help.cpp" open="1" top="0" tabpos="3" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
<File name="main.cpp" open="1" top="1" tabpos="1" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
<Cursor>
<Cursor1 position="330" topLine="0" />
<Cursor1 position="787" topLine="3" />
</Cursor>
</File>
</CodeBlocks_layout_file>
1 change: 1 addition & 0 deletions help.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}
5 changes: 3 additions & 2 deletions main.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "help.h"
#include <iostream>

int buildNr = 5;
int buildNr = 6;

int main()
{
Expand All @@ -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';
Expand Down

0 comments on commit 99f4326

Please sign in to comment.