Updated a whole bunch of files, started adding the commands
[vimicxx.git] / src / cmd_help.cc
blob5ef270eb7f2fbb65d753225b1308e3cf2836d0b4
1 /*******************************************************************************
2 ********************************************************************************
4 Copyright (c) 2008 Ahmed S. Badran
6 Licensed under the FreeBSD License (see LICENSE)
8 Filename: cmd_help.cc
9 Description: Implementation.
10 Created: 12/15/2008 11:04:49 PM PST
11 Author: Ahmed S. Badran (Ahmed B.), ahmed.badran@gmail.com
13 ********************************************************************************
14 *******************************************************************************/
15 #include "cmd_help.h"
16 #include "conf.h"
17 #include <cstdio>
18 using namespace std;
19 using namespace vimicxx;
21 cmd_help::cmd_help (const string& n):
22 name(n), error("")
26 bool
27 cmd_help::execute (conf* cnf) const
29 printf("usage: %s <command> <command-options>\n", name.c_str());
30 printf("\n");
31 printf("\tadd project <project-name> <project-path>\n");
32 printf("\tlist [<project-name>]\n");
33 printf("\tdelete [<project-name>]\n");
34 printf("\tdelete-all\n");
35 printf("\tabout\n");
36 printf("\t--help\n\n");
37 return true;
40 const string
41 cmd_help::err_msg () const
43 return error;
46 cmd_help::~cmd_help ()