diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2010-09-08 21:23:37 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2010-09-08 21:23:37 +0200 |
commit | ff5bb2accee87c24ee64e8fdcf5169e674c4b7b4 (patch) | |
tree | 321a74c1f48331cb44e3b90943501646c5024836 /libcommon/common/options.cli | |
parent | b3b1fac433a20e5ab6abb3729ecc5473a658718b (diff) |
Add suppor for VC++ build
Diffstat (limited to 'libcommon/common/options.cli')
-rw-r--r-- | libcommon/common/options.cli | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/libcommon/common/options.cli b/libcommon/common/options.cli new file mode 100644 index 0000000..5b87d70 --- /dev/null +++ b/libcommon/common/options.cli @@ -0,0 +1,58 @@ +// file : libcommon/common/options.cli +// author : Boris Kolpackov <boris@codesynthesis.com> +// copyright : Copyright (c) 2009-2010 Code Synthesis Tools CC +// license : GNU GPL v2; see accompanying LICENSE file + +include <string>; + +namespace cli +{ + class mysql_options + { + bool --help {"Print usage information and exit."}; + + std::string --user + { + "<name>", + "MySQL database user." + }; + + std::string --passwd + { + "<str>", + "MySQL database password" + }; + + std::string --db-name + { + "<name>", + "MySQL database name." + }; + + std::string --host + { + "<addr>", + "MySQL database host name or address (localhost by default)." + }; + + unsigned int --port = 0 + { + "<integer>", + "MySQL database port number." + }; + + std::string --socket + { + "<name>", + "MySQL database socket name." + }; + + std::string --options-file + { + "<file>", + "Read additional options from <file>. Each option appearing on a separate + line optionally followed by space and an option value. Empty lines and + lines starting with \cb{#} are ignored." + }; + }; +} |