config-getvar: fix the help message (incorrect list of default files)

Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
This commit is contained in:
Davide Madrisan 2012-11-07 22:24:08 +01:00
parent 15825d0a4b
commit f929f20486
4 changed files with 16 additions and 1 deletions

View File

@ -9,6 +9,14 @@ Fri Nov 09 2012 Davide Madrisan <davide.madrisan(a)gmail.com>
* po/it/spec-create - Davide Madrisan: * po/it/spec-create - Davide Madrisan:
Updated. Updated.
+ bugfix
* plugins/config-getvar, lib/libcfg.lib - Davide Madrisan:
Fix the help message (incorrect list of default files).
+ update
* po/it/config-getvar - Davide Madrisan:
Updated.
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
Changes in version 1.14.0 Changes in version 1.14.0

View File

@ -21,6 +21,9 @@ default_cfg=(\
`ls /etc/@package@.conf /etc/@package@.d/*.conf \ `ls /etc/@package@.conf /etc/@package@.d/*.conf \
~/.@package@ ~/.@package@.d/*.conf 2>/dev/null`) ~/.@package@ ~/.@package@.d/*.conf 2>/dev/null`)
default_cfg_strlist="/etc/@package@.conf /etc/@package@.d/*.conf"
default_cfg_user_strlist="~/.@package@ ~/.@package@.d/*.conf"
# check if the user configurations file for autospec is present # check if the user configurations file for autospec is present
function config.check4user() { function config.check4user() {
local user_data=$(getent passwd 2>/dev/null | grep "x:$(id -u):") local user_data=$(getent passwd 2>/dev/null | grep "x:$(id -u):")

View File

@ -56,7 +56,8 @@ function usage() {
"$"where the above options mean"": "$"where the above options mean"":
--eval "$"Print the value of the configuration variable <var>"" --eval "$"Print the value of the configuration variable <var>""
-C, --config "$"Use an alternate configuration file"" <conf_file>"" -C, --config "$"Use an alternate configuration file"" <conf_file>""
"$"Default files:"" ${default_cfg[0]}, ${default_cfg[1]}"" "$"Default files:"" $default_cfg_strlist""
"$"Default user files:"" $default_cfg_user_strlist""
"$"Operation modes"": "$"Operation modes"":
-h, --help "$"Print this help, then exit"" -h, --help "$"Print this help, then exit""

View File

@ -51,6 +51,9 @@ msgstr "Utilizza un file di configurazione alternativo"
msgid "Default files:" msgid "Default files:"
msgstr "File di default:" msgstr "File di default:"
msgid "Default user files:"
msgstr "File di default utente:"
msgid "Operation modes" msgid "Operation modes"
msgstr "Modalità operative" msgstr "Modalità operative"