24 #include "tools/Tools.h"
25 #include "config/Config.h"
56 static void registerKeywords(
Keywords& keys );
60 return "provide informations about plumed";
64 PLUMED_REGISTER_CLTOOL(Info,
"info")
67 CLTool::registerKeywords( keys );
68 keys.addFlag(
"--configuration",
false,
"prints the configuration file");
69 keys.addFlag(
"--root",
false,
"print the location of the root directory for the plumed source");
70 keys.addFlag(
"--user-doc",
false,
"print the location of user manual (html)");
71 keys.addFlag(
"--developer-doc",
false,
"print the location of user manual (html)");
72 keys.addFlag(
"--version",
false,
"print the version number");
73 keys.addFlag(
"--long-version",
false,
"print the version number (long version)");
74 keys.addFlag(
"--git-version",
false,
"print the version number (git version, if available)");
85 bool printconfiguration;
parseFlag(
"--configuration",printconfiguration);
86 bool printroot;
parseFlag(
"--root",printroot);
87 bool printuserdoc;
parseFlag(
"--user-doc",printuserdoc);
88 bool printdeveloperdoc;
parseFlag(
"--developer-doc",printdeveloperdoc);
89 bool printversion;
parseFlag(
"--version",printversion);
90 bool printlongversion;
parseFlag(
"--long-version",printlongversion);
91 bool printgitversion;
parseFlag(
"--git-version",printgitversion);
96 if(printuserdoc) fprintf(out,
"%s\n",userdoc.c_str());
97 if(printdeveloperdoc) fprintf(out,
"%s\n",developerdoc.c_str());
std::string getMakefile()
std::string getPlumedRoot()
int main(int argc, char **argv)
This main uses only the interface published in Plumed.h.
Class containing wrappers to MPI.
std::string getVersionLong()
This class holds the keywords and their documentation.
std::string getVersionGit()