diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2015-03-30 02:24:29 +0200 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2015-03-30 02:26:08 +0200 |
commit | 20ad6baf1a834372514bfc964de88087dd20cce4 (patch) | |
tree | 3cd7b6acfb76b65d1723792273049259d5dfe7dd /cli | |
parent | 18b99372afec1085e51c3a0fbae46d6d7781f651 (diff) |
Document the configuration syntax.
Diffstat (limited to 'cli')
-rwxr-xr-x | cli/icevault | 2 | ||||
-rw-r--r-- | cli/icevault.1 | 8 |
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 |