@@ -8,20 +8,37 @@ using namespace std;
8
8
namespace command {
9
9
bool version (argCVDef) {
10
10
std::cout << dye::light_green (" Eval " ) << dye::light_green (__VERSION);
11
- std::cout << dye::grey (" (C)codeAbinash " ) << dye::light_yellow (__version_date) << std::endl;
11
+ std::cout << dye::grey (" (C)codeAbinash " )
12
+ << dye::light_yellow (__version_date) << std::endl;
12
13
return true ;
13
14
}
14
15
15
16
bool help (argCVDef) {
16
- cout << " Visit " << dye::light_blue (" https://github.com/codeAbinash/eval" ) << " for more information." << endl;
17
+ version (argCV);
18
+ cout << endl;
19
+ cout << dye::grey (" Available Commands : " ) << endl << endl;
20
+ cout << dye::light_yellow (" --help" ) << " : Find some help" << endl;
21
+ cout << dye::light_yellow (" --version" )
22
+ << " : Check the current version of eval" << endl
23
+ << endl;
24
+ cout << dye::grey (" How to use : " ) << endl << endl;
25
+ cout << " Write `" << dye::light_yellow (" eval" )
26
+ << dye::light_blue (" \" expression\" `" ) << " to evaluate an expression."
27
+ << endl;
28
+ cout << " Or you can write " << dye::light_yellow (" `eval`" )
29
+ << " to enter more than one expression." << endl
30
+ << endl;
31
+ cout << " Visit " << dye::light_blue (" https://github.com/codeAbinash/eval" )
32
+ << " for more information." << endl;
17
33
return true ;
18
34
}
19
35
20
36
bool unknownCommand (argCVDef) {
21
37
cout << " Unknown command "
22
38
<< " `" << dye::light_yellow (argv[1 ]) << " `" << endl;
23
39
cout << dye::grey (" Akta command o valo kore lekhte parche na :) !" ) << endl;
24
- cout << " Use " << dye::light_yellow (" `eval --help`" ) << " for more information." << endl;
40
+ cout << " Use " << dye::light_yellow (" `eval --help`" )
41
+ << " for more information." << endl;
25
42
return false ;
26
43
}
27
44
} // namespace command
0 commit comments