[vala/tintou/deprecated-driver] valadoc: Specify that the driver argument is deprecated
- From: Corentin Noël <corentinnoel src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/tintou/deprecated-driver] valadoc: Specify that the driver argument is deprecated
- Date: Fri, 18 Jan 2019 11:49:05 +0000 (UTC)
commit 3350f4a7329eefed77264660f124b5e50b3b3f06
Author: Corentin Noël <corentin elementary io>
Date: Fri Jan 18 12:46:52 2019 +0100
valadoc: Specify that the driver argument is deprecated
valadoc/valadoc.vala | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/valadoc/valadoc.vala b/valadoc/valadoc.vala
index d05da55d6..d11d82799 100644
--- a/valadoc/valadoc.vala
+++ b/valadoc/valadoc.vala
@@ -90,7 +90,7 @@ public class ValaDoc : Object {
{ "vapidir", 0, 0, OptionArg.FILENAME_ARRAY, ref vapi_directories, "Look for package bindings
in DIRECTORY", "DIRECTORY..." },
{ "pkg", 0, 0, OptionArg.STRING_ARRAY, ref packages, "Include binding for PACKAGE",
"PACKAGE..." },
- { "driver", 0, 0, OptionArg.STRING, ref driverpath, "Name of an driver or path to a custom
driver", null },
+ { "driver", 0, 0, OptionArg.STRING, ref driverpath, "Name of an driver or path to a custom
driver (deprecated, not used anymore)", null },
{ "importdir", 0, 0, OptionArg.FILENAME_ARRAY, ref import_directories, "Look for external
documentation in DIRECTORY", "DIRECTORY..." },
{ "import", 0, 0, OptionArg.STRING_ARRAY, ref import_packages, "Include binding for PACKAGE",
"PACKAGE..." },
@@ -353,6 +353,10 @@ public class ValaDoc : Object {
}
}
+ if (driverpath != null) {
+ stdout.printf ("The --driver argument is deprecated and won't have any effect\n");
+ }
+
foreach (unowned string dir in alternative_resource_dirs) {
if (!FileUtils.test(dir, FileTest.IS_DIR)) {
reporter.simple_error (null, "alternative resource directory '%s' does not
exist.".printf (dir));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]