Skip to content

Commit 99f4326

Browse files
committed
Update help command
1 parent 966d469 commit 99f4326

File tree

4 files changed

+13
-7
lines changed

4 files changed

+13
-7
lines changed

NShell.depend

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,7 @@
55

66
1681493184 d:\nicos code\shell\nshell\nshell\help.h
77

8+
1681999616 source:d:\nicos code\shell\nshell\nshell\help.cpp
9+
"help.h"
10+
<iostream>
11+

NShell.layout

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
22
<CodeBlocks_layout_file>
33
<FileVersion major="1" minor="0" />
4-
<ActiveTarget name="Release" />
5-
<File name="main.cpp" open="1" top="1" tabpos="1" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
4+
<ActiveTarget name="Debug" />
5+
<File name="help.cpp" open="1" top="0" tabpos="2" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
66
<Cursor>
7-
<Cursor1 position="697" topLine="3" />
7+
<Cursor1 position="330" topLine="0" />
88
</Cursor>
99
</File>
10-
<File name="help.cpp" open="1" top="0" tabpos="3" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
10+
<File name="main.cpp" open="1" top="1" tabpos="1" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
1111
<Cursor>
12-
<Cursor1 position="330" topLine="0" />
12+
<Cursor1 position="787" topLine="3" />
1313
</Cursor>
1414
</File>
1515
</CodeBlocks_layout_file>

help.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@ void help_generic() {
55
std::cout << "help - Shows this, what else do I have to say?\n";
66
std::cout << "version - Shows the NShell build number.\n";
77
std::cout << "c.version - Same as version, but in a single line.\n";
8+
std::cout << "contrib - Lists all contributors of NShell.\n";
89
std::cout << "exit - Closes the NShell.\n";
910
}

main.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#include "help.h"
22
#include <iostream>
33

4-
int buildNr = 5;
4+
int buildNr = 6;
55

66
int main()
77
{
@@ -17,9 +17,10 @@ int main()
1717
if (command_to_run == "version") {
1818
std::cout << "NShell\n" << "Build " << buildNr << '\n';
1919
}
20-
20+
2121
else if (command_to_run == "contrib") {
2222
std::cout << "Nico Lucien\nErik P" << '\n';
23+
}
2324

2425
else if (command_to_run == "c.version") {
2526
std::cout << "NShell Build " << buildNr << '\n';

0 commit comments

Comments
 (0)