diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2012-09-12 14:28:03 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2012-09-12 14:28:03 +0200 |
commit | c0931400a1c5f02cf145c90fd7e34216836efd88 (patch) | |
tree | 5e13c5864e5f3c944a316f9189eb87976c8908c0 /odb/options.cli | |
parent | f01ad68661d62af62087b7b1ae29628f028e9eaa (diff) |
Implement --output-name, --generate-schema-only, and --at-once options
Diffstat (limited to 'odb/options.cli')
-rw-r--r-- | odb/options.cli | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/odb/options.cli b/odb/options.cli index 8705283..e9d76dd 100644 --- a/odb/options.cli +++ b/odb/options.cli @@ -81,6 +81,13 @@ class options Use the \cb{--schema-format} option to alter the default schema format." }; + bool --generate-schema-only + { + "Generate only the database schema. Note that this option is only valid + when generating schema as a standalone SQL file (see \cb{--schema-format} + for details)." + }; + std::set< ::schema_format> --schema-format { "<format>", @@ -156,6 +163,18 @@ class options profile." }; + bool --at-once + { + "Generate code for all the input files as well as for all the files that + they include at once. The result is a single set of source/schema files + that contain all the generated code. If more than one input file is + specified together with this option, then the \cb{--output-name} option + must also be specified in order to provide the base name for the output + files. In this case, the directory part of such a base name is used as + the location of the combined file. This can be important for the + \cb{#include} directive resolution." + }; + qname --schema { "<schema>", @@ -193,6 +212,13 @@ class options "Write the generated files to <dir> instead of the current directory." }; + std::string --output-name + { + "<name>", + "Use <name> instead of the input file to construct the names of the + generated files." + }; + std::string --odb-file-suffix = "-odb" { "<suffix>", |