diff options
Diffstat (limited to 'src/cli/cli.cpp')
| -rwxr-xr-x | src/cli/cli.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/cli/cli.cpp b/src/cli/cli.cpp index f35f77c..2b110db 100755 --- a/src/cli/cli.cpp +++ b/src/cli/cli.cpp @@ -33,18 +33,18 @@ cli::parse_input( string s_input ) cout << CLIPRMO << " (d)ebug - Starts debug routine (cli.cpp)" << endl; #endif cout << CLIPRMO << " (e)cho VAR - Prints out configuration value of VAR" << endl - << CLIPRMO << " Wildcards can be used too, example: echo HTML*" << endl - << CLIPRMO << " (h)elp - Prints out this help!" << endl - << CLIPRMO << " (m)ysql - Runs MySQL client on yhttpd DB" << endl; + << CLIPRMO << " Wildcards can be used too, example: echo http*" << endl; #ifdef NCURSES - cout << CLIPRMO << " (q)uit - Quits CLI mode and respawns ncurses mode" << endl; + cout << CLIPRMO << " (ex)it - Quits CLI mode and respawns ncurses mode" << endl; #endif + cout << CLIPRMO << " (h)elp - Prints out this help!" << endl + << CLIPRMO << " (m)ysql - Runs MySQL client on yChat DB" << endl; cout << CLIPRMO << " (rel)oad - Reloads all modules" << endl; #ifdef EXPERIM cout << CLIPRMO << " (re)conf - Reloads configuration (EXPERIMENTAL)" << endl; #endif cout << CLIPRMO << " (r)usage - Shows current resource usage" << endl - << CLIPRMO << " (ru)sageh - Shows resource usage history (yhttpd needs to run > 1 day)" << endl + << CLIPRMO << " (ru)sageh - Shows resource usage history (yChat needs to run > 1 day)" << endl << CLIPRMO << " (set) VAR VAL - Sets configuration value VAR to VAL" << endl << CLIPRMO << " (sh)ell - Runs a system shell" << endl << CLIPRMO << " (s)hutdown - Shuts down the whole server" << endl @@ -98,7 +98,7 @@ cli::parse_input( string s_input ) cout << CLIPRMI; } #ifdef NCURSES - else if( s_input.compare("quit") == 0 || s_input.compare("q") == 0 ) + else if( s_input.compare("exit") == 0 || s_input.compare("ex") == 0 ) { return 0; } @@ -112,7 +112,7 @@ cli::parse_input( string s_input ) #ifdef EXPERIM else if( s_input.compare("reconf") == 0 || s_input.compare("re") == 0 ) { - wrap::HTTPD->reconf(); + wrap::CHAT->reconf(); cout << CLIPRMI; } #endif @@ -188,7 +188,7 @@ cli::parse_input( string s_input ) } else if( s_input.compare("v") == 0 || s_input.compare("version") == 0 ) { - cout << CLIPRMO << tool::yhttpd_version() << " " << UNAME << endl; + cout << CLIPRMO << tool::ychat_version() << " " << UNAME << endl; cout << CLIPRMI; } else |
