From b2c3c70742162e12d45be5465521703968ffa9d9 Mon Sep 17 00:00:00 2001 From: OniriCorpe Date: Mon, 1 Jan 2024 00:56:50 +0100 Subject: [PATCH] add --after= in the usage section of ynh_read_var_in_file and ynh_write_var_in_file --- helpers/utils | 2 ++ 1 file changed, 2 insertions(+) diff --git a/helpers/utils b/helpers/utils index 9c92e65b9..b73e5ad46 100644 --- a/helpers/utils +++ b/helpers/utils @@ -611,6 +611,7 @@ ynh_replace_vars() { # usage: ynh_read_var_in_file --file=PATH --key=KEY # | arg: -f, --file= - the path to the file # | arg: -k, --key= - the key to get +# | arg: -a, --after= - the line just before the key (in case of multiple lines with the name of the key in the file) # # This helpers match several var affectation use case in several languages # We don't use jq or equivalent to keep comments and blank space in files @@ -714,6 +715,7 @@ ynh_read_var_in_file() { # | arg: -f, --file= - the path to the file # | arg: -k, --key= - the key to set # | arg: -v, --value= - the value to set +# | arg: -a, --after= - the line just before the key (in case of multiple lines with the name of the key in the file) # # Requires YunoHost version 4.3 or higher. ynh_write_var_in_file() {