summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bin/dconf-update.vala14
-rw-r--r--bin/dconf.vala2
2 files changed, 14 insertions, 2 deletions
diff --git a/bin/dconf-update.vala b/bin/dconf-update.vala
index 55a8231..520e02d 100644
--- a/bin/dconf-update.vala
+++ b/bin/dconf-update.vala
@@ -251,7 +251,19 @@ void dconf_compile (string[] args) throws GLib.Error {
extern const string CONFIG_SYSCONFDIR;
void dconf_update (string[] args) throws GLib.Error {
- update_all (CONFIG_SYSCONFDIR + "/dconf/db");
+ var index = 2;
+ var dbpath = CONFIG_SYSCONFDIR + "/dconf/db";
+
+ if (args[index] != null) {
+ dbpath = args[index];
+ index ++;
+ }
+
+ if (args[index] != null) {
+ throw new OptionError.FAILED ("too many arguments");
+ }
+
+ update_all (dbpath);
}
// vim:noet ts=4 sw=4
diff --git a/bin/dconf.vala b/bin/dconf.vala
index 1f0109c..6448808 100644
--- a/bin/dconf.vala
+++ b/bin/dconf.vala
@@ -64,7 +64,7 @@ void show_help (bool requested, string? command) {
case "update":
description = "Update the system dconf databases";
- synopsis = "";
+ synopsis = " [DIR] ";
break;
case "watch":