summaryrefslogtreecommitdiff
path: root/cli/cli/options.cli
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2022-09-16 18:39:30 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2022-09-20 12:38:32 +0300
commitd90cabcb1f6ecb0de2c4d2f32b9d8ccb45f0156f (patch)
treea0e78d5c2feeb0d9601aab5d40a7b0b58929bc9a /cli/cli/options.cli
parent1486a4f2333d28b1335211acb1e072caecb62761 (diff)
Add --generate-dep option
Diffstat (limited to 'cli/cli/options.cli')
-rw-r--r--cli/cli/options.cli26
1 files changed, 26 insertions, 0 deletions
diff --git a/cli/cli/options.cli b/cli/cli/options.cli
index 03a0053..211e01f 100644
--- a/cli/cli/options.cli
+++ b/cli/cli/options.cli
@@ -199,6 +199,18 @@ class options
"Generate documentation in the plain text format, similar to usage."
};
+ bool --generate-dep
+ {
+ "Generate \cb{make} dependency information. This option triggers the
+ creation of the \cb{.d} file containing the dependencies of the generated
+ files on the main \cb{.cli} file as well as all the \cb{.cli} files that
+ it includes or sources, transitively. Paths specified with the
+ \cb{--*-prologue-file} and \cb{--*-epilogue-file} options are also
+ added as dependencies. Note, however, that paths specified with the
+ \cb{--options-file} option are not added (since they may or may not
+ contain options that affect the output)."
+ };
+
bool --stdout
{
"Write output to STDOUT instead of a file. This option is not valid
@@ -586,6 +598,20 @@ class options
the generated text file."
};
+ std::string --dep-suffix = ".d"
+ {
+ "<suffix>",
+ "Use <suffix> instead of the default \cb{.d} to construct the name of the
+ generated dependency file. See also \cb{--dep-file}."
+ };
+
+ std::string --dep-file
+ {
+ "<path>",
+ "Use <path> as the generated dependency file path instead of deriving it
+ from the input file name."
+ };
+
std::string --option-prefix = "-"
{
"<prefix>",