Updated the about command
[vimicxx.git] / src / cmd_about.cc
blob28ebac47753cf58caa78a4e0563143edd870e555
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 #include "config.h"
19 using namespace std;
20 using namespace vimicxx;
22 cmd_about::cmd_about (const string& n):
23 name(n), error("")
27 bool
28 cmd_about::execute (conf* cnf) const
30 printf(PACKAGE_NAME);
31 printf(" by Ahmed Badran (" PACKAGE_BUGREPORT
32 ") version "PACKAGE_VERSION"\n");
33 printf("licensed under the FreeBSD License (see LICENSE)\n");
34 printf("\tHopefully you will find it useful :)\n");
35 return true;
38 const string
39 cmd_about::err_msg () const
41 return error;
44 cmd_about::~cmd_about ()