aboutsummaryrefslogtreecommitdiffstats
path: root/cli
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2015-03-30 02:24:29 +0200
committerGuilhem Moulin <guilhem@fripost.org>2015-03-30 02:24:29 +0200
commit3d18927234445d5355fb05914c203d6dafa3d656 (patch)
tree32dfaa9830dd9c4a8fe4767353f27ef6cc4851e4 /cli
parentc2e536c9ce1be626731bfc177a15ad5d6c45caaf (diff)
Document the configuration syntax.
Diffstat (limited to 'cli')
-rwxr-xr-xcli/icevault2
-rw-r--r--cli/icevault.18
2 files changed, 7 insertions, 3 deletions
diff --git a/cli/icevault b/cli/icevault
index e4c517a..8a313ca 100755
--- a/cli/icevault
+++ b/cli/icevault
@@ -129,7 +129,7 @@ sub loadConfig() {
chomp;
s/#.*//; # ignore comments
next if /^\s*$/; # ignore empty and blank lines
- /^([-\@a-zA-Z0-9.]+)(?:\s*=\s*)(\p{Print}+)/ or error "Can't parse config line: C<%s>", $_;
+ /^([-\@a-zA-Z0-9.]+)\s*=\s*(\p{Graph}\p{Print}*)/ or error "Can't parse config line: C<%s>", $_;
$CONFIG{$1} //= $2;
}
close $CONFIG;
diff --git a/cli/icevault.1 b/cli/icevault.1
index d1a2084..81c8322 100644
--- a/cli/icevault.1
+++ b/cli/icevault.1
@@ -173,8 +173,12 @@ Show the version number and exit.
\fBicevault\fR reads it configuration from
\fI$XDG_CONFIG_HOME/icevault\fR, or \fI~/.config/icevault\fR if
-XDG_CONFIG_HOME is unset.
-Empty lines and comments (starting with a "#" characters are ignored).
+the XDG_CONFIG_HOME environment variable is unset.
+Options given on the command line override those found in the
+configuration file.
+The syntax of the configuration file is a serie of
+\fIOPTION\fR=\fIVALUE\fR lines;
+everything after a "#" is considered a comment and ignored.
Valid options are:
.TP