Updated the about command
[vimicxx.git] / src / cmd_about.cc
blob245ea80f74639423bf566275fbfcee799ac5848a
1 /*******************************************************************************
2 ********************************************************************************
4 Copyright (c) 2008 Ahmed S. Badran
6 Licensed under the FreeBSD License (see LICENSE)
8 Filename: cmd_about.cc
9 Description: Implementation
10 Created: 12/15/2008 11:22:18 PM PST
11 Author: Ahmed S. Badran (Ahmed B.), ahmed.badran@gmail.com
13 ********************************************************************************
14 *******************************************************************************/
15 #include "cmd_about.h"
16 #include "conf.h"
17 #include <cstdio>
18 using namespace std;
19 using namespace vimicxx;
21 cmd_about::cmd_about (const string& n):
22 name(n), error("")
26 bool
27 cmd_about::execute (conf* cnf) const
29 printf("%s\n", name.c_str());
30 printf(" by Ahmed S. Badran, version 1.0\n");
31 printf(" Licensed under the FreeBSD License (see LICENSE)\n");
32 return true;
35 const string
36 cmd_about::err_msg () const
38 return error;
41 cmd_about::~cmd_about ()